A limit switch object. More...
Data Fields | |
unsigned int | count |
The current count of consecutively high or low signals. | |
INT_VOID_F | function |
The signal function which returns zero for off/low and non-zero for on/high. | |
unsigned int | limit |
The limit to switch states. | |
LS_STATE | prev |
The previous state of the signal. | |
LS_STATE | state |
The current state of the signal. |
A limit switch object.
Definition at line 22 of file limit_switch.h.
unsigned int LIMIT_SWITCH::count |
The current count of consecutively high or low signals.
Definition at line 24 of file limit_switch.h.
Referenced by ls_init_switch(), and ls_update().
INT_VOID_F LIMIT_SWITCH::function |
The signal function which returns zero for off/low and non-zero for on/high.
Definition at line 27 of file limit_switch.h.
Referenced by ls_init_switch(), and ls_update().
unsigned int LIMIT_SWITCH::limit |
The limit to switch states.
Definition at line 23 of file limit_switch.h.
Referenced by ls_init_switch(), and ls_update().
LS_STATE LIMIT_SWITCH::prev |
The previous state of the signal.
Definition at line 25 of file limit_switch.h.
Referenced by ls_init_switch(), and ls_update().
LS_STATE LIMIT_SWITCH::state |
The current state of the signal.
Definition at line 26 of file limit_switch.h.
Referenced by ls_get_state(), ls_init_switch(), and ls_update().