LIMIT_SWITCH Struct Reference

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.

Detailed Description

A limit switch object.

Definition at line 22 of file limit_switch.h.


Field Documentation

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().

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().

The previous state of the signal.

Definition at line 25 of file limit_switch.h.

Referenced by ls_init_switch(), and ls_update().

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().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 29 16:36:15 2010 by  doxygen 1.6.3