|
Open Model Railroad Network (OpenMRN)
|
GPIO Pin definition structure with no actual pin behind it. More...
#include <LoggingGPIO.hxx>
Static Public Member Functions | |
| static void | hw_init () |
| Empty. No initialization needed. | |
| static void | hw_set_to_safe () |
| Empty. No initialization needed. | |
| static void | set (bool value) |
| Sets the output pin level (generating a log output). | |
| static void | toggle () |
| Toggles the output pin level. | |
| static bool | is_output () |
| Returns whether this is an output pin or not. | |
Static Protected Attributes | |
| static bool | lastValue_ = false |
| Last output value. | |
GPIO Pin definition structure with no actual pin behind it.
All writes to this pin will be logged to stdout. Reads from this pin will not compile.
Definition at line 43 of file LoggingGPIO.hxx.
|
inlinestatic |
Empty. No initialization needed.
Definition at line 46 of file LoggingGPIO.hxx.
|
inlinestatic |
Empty. No initialization needed.
Definition at line 50 of file LoggingGPIO.hxx.
|
inlinestatic |
Returns whether this is an output pin or not.
Definition at line 69 of file LoggingGPIO.hxx.
|
inlinestatic |
Sets the output pin level (generating a log output).
| value | is true if output should be HIGH. |
Definition at line 55 of file LoggingGPIO.hxx.
|
inlinestatic |
Toggles the output pin level.
Definition at line 62 of file LoggingGPIO.hxx.
|
staticprotected |
Last output value.
Definition at line 76 of file LoggingGPIO.hxx.