AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
state.h
1 
21 #ifndef _AVRIO_STATE_H_
22 #define _AVRIO_STATE_H_
23 #include <avrio/defs.h>
24 
25 __BEGIN_C_DECLS
26 /* ========================================================================== */
46 typedef volatile uint8_t xState;
47 
54 void vStateWait(xState * pxState, uint8_t ucValue);
55 
64 void vStateSwitch(xState * pxState, uint8_t ucFrom, uint8_t ucTo);
65 
71 void vStateSet(xState * pxState, uint8_t ucValue);
72 
78 uint8_t xStateGet (xState * pxState);
79 
87 int8_t xStateTrywait(xState * pxState, uint8_t ucValue);
88 
96 int8_t xStateTryswitch(xState * pxState, uint8_t ucFrom, uint8_t ucTo);
97 
102 /* ========================================================================== */
103 __END_C_DECLS
104 #endif /* _AVRIO_STATE_H_ */
uint8_t xStateGet(xState *pxState)
Lit la valeur d&#39;une machine d&#39;état de façon atomique.
void vStateSet(xState *pxState, uint8_t ucValue)
Affecte la valeur d&#39;une machine d&#39;état de façon atomique.
int8_t xStateTrywait(xState *pxState, uint8_t ucValue)
xStateTrywait est une variante non bloquante de vStateWait().
int8_t xStateTryswitch(xState *pxState, uint8_t ucFrom, uint8_t ucTo)
xStateTryswitch est une variante non bloquante de vStateSwitch().
void vStateWait(xState *pxState, uint8_t ucValue)
vStateWait suspend le thread appelant jusqu&#39;à ce que le compteur de la machine d&#39;état pointée par pxS...
volatile uint8_t xState
Le type xState est une variable atomique qui peut évoluer entre 0 et 255.
Definition: state.h:46
void vStateSwitch(xState *pxState, uint8_t ucFrom, uint8_t ucTo)
vStateSwitch suspend le thread appelant jusqu&#39;à ce que le compteur de la machine d&#39;état pointée par p...