Go to the source code of this file.
Generic state machine framework
Definition in file ocs_sm.c.
Macros | |
| #define | RETEVT(x) case x: return #x; |
Functions | |
| int | ocs_sm_post_event (ocs_sm_ctx_t *ctx, ocs_sm_event_t evt, void *data) |
| Post an event to a context. More... | |
| void | ocs_sm_transition (ocs_sm_ctx_t *ctx, ocs_sm_function_t state, void *data) |
| Transition to a new state. More... | |
| void | ocs_sm_disable (ocs_sm_ctx_t *ctx) |
| Disable further state machine processing. More... | |
| const char * | ocs_sm_event_name (ocs_sm_event_t evt) |
Variables | |
| const char * | ocs_sm_id [] |
| #define RETEVT | ( | x | ) | case x: return #x; |
| void ocs_sm_disable | ( | ocs_sm_ctx_t * | ctx | ) |
| const char* ocs_sm_event_name | ( | ocs_sm_event_t | evt | ) |
| int ocs_sm_post_event | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_event_t | evt, | ||
| void * | data | ||
| ) |
| void ocs_sm_transition | ( | ocs_sm_ctx_t * | ctx, |
| ocs_sm_function_t | state, | ||
| void * | data | ||
| ) |