De_ES 2113
Make a dice
 
Loading...
Searching...
No Matches
Main.h File Reference
#include "stdint.h"
#include "stdbool.h"
Include dependency graph for Main.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  appData
 

Macros

#define DISPLAYTIME   3000
 
#define STEPON   3
 
#define DISPLAY_UP   1000
 
#define DISPLAY_ON   1000
 
#define DISPLAY_DODW   1000
 
#define STEPPWM   10
 
#define STEPWMSEC   (DISPLAY_ON/STEPPWM)
 
#define TIMERATIO   1000
 

Enumerations

enum  sens { RAMPUP , RAMPSTATIC , RAMPDOWN }
 
enum  states {
  APP_INIT , APP_WAIT_FOR_INT , APP_CALC , APP_DISPLAY ,
  APP_DELAY , APP_KILL
}
 

Functions

void APP_WaitStart (uint16_t waitingTime)
 Lance une attente bloquante pendant un temps donné (ms).
 
void APP_TMR1_CallBack ()
 Callback du timer 1, décrémente le délai stocké dans AppData.
 
bool APP_WaitStart_noBlocking ()
 Lance une attente non bloquante (fonction expérimentale).
 
void SetStates (states newstate)
 Change l'état courant de l'application.
 
void APP_CORETIMER_CALLBACK (void)
 Callback du core timer pour gérer la variation de RC.
 

Macro Definition Documentation

◆ DISPLAY_DODW

#define DISPLAY_DODW   1000

◆ DISPLAY_ON

#define DISPLAY_ON   1000

◆ DISPLAY_UP

#define DISPLAY_UP   1000

◆ DISPLAYTIME

#define DISPLAYTIME   3000

◆ STEPON

#define STEPON   3

◆ STEPPWM

#define STEPPWM   10

◆ STEPWMSEC

#define STEPWMSEC   (DISPLAY_ON/STEPPWM)

◆ TIMERATIO

#define TIMERATIO   1000

Enumeration Type Documentation

◆ sens

enum sens
Enumerator
RAMPUP 
RAMPSTATIC 
RAMPDOWN 

◆ states

enum states
Enumerator
APP_INIT 
APP_WAIT_FOR_INT 
APP_CALC 
APP_DISPLAY 
APP_DELAY 
APP_KILL 

Function Documentation

◆ APP_CORETIMER_CALLBACK()

void APP_CORETIMER_CALLBACK ( void )

Callback du core timer pour gérer la variation de RC.

◆ APP_TMR1_CallBack()

void APP_TMR1_CallBack ( void )

Callback du timer 1, décrémente le délai stocké dans AppData.

End of File

◆ APP_WaitStart()

void APP_WaitStart ( uint16_t waitingTime_ms)

Lance une attente bloquante pendant un temps donné (ms).

Parameters
waitingTimeDurée d'attente en millisecondes

Lance une attente bloquante pendant un temps donné (ms).

Parameters
waitingTime_msDurée d'attente en millisecondes
Here is the call graph for this function:
Here is the caller graph for this function:

◆ APP_WaitStart_noBlocking()

bool APP_WaitStart_noBlocking ( )

Lance une attente non bloquante (fonction expérimentale).

Returns
true si attente terminée, false sinon

◆ SetStates()

void SetStates ( states newstate)

Change l'état courant de l'application.

Parameters
newstateNouvel état à appliquer
Here is the caller graph for this function: