gusimplewhiteboard
wb_fsm_state_status.h File Reference
#include <gu_util.h>
#include <gusimplewhiteboard/gusimplewhiteboard.h>
Include dependency graph for wb_fsm_state_status.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  wb_fsm_state_status
 Idempotent Message publicising the state -about to be executed- (0-254) of up-to the first 128 machines (0-127). More...
 

Macros

#define STATE_BYTE_SIZE   (sizeof(gu_simple_message))
 
#define INVALIDMACHINE   255u
 
#define STATESTATUS_SET_STATE(s, machineID, state)   ((s)->_fsms[machineID] = state)
 
#define STATESTATUS_GET_STATE(s, machineID)   ((s)->_fsms[machineID])
 

Macro Definition Documentation

◆ INVALIDMACHINE

#define INVALIDMACHINE   255u

Definition at line 65 of file wb_fsm_state_status.h.

◆ STATE_BYTE_SIZE

#define STATE_BYTE_SIZE   (sizeof(gu_simple_message))

Definition at line 64 of file wb_fsm_state_status.h.

◆ STATESTATUS_GET_STATE

#define STATESTATUS_GET_STATE (   s,
  machineID 
)    ((s)->_fsms[machineID])

Definition at line 68 of file wb_fsm_state_status.h.

◆ STATESTATUS_SET_STATE

#define STATESTATUS_SET_STATE (   s,
  machineID,
  state 
)    ((s)->_fsms[machineID] = state)

Definition at line 67 of file wb_fsm_state_status.h.