|
Open Model Railroad Network (OpenMRN)
|
GPIO Pin definition structure with no actual pin behind it. More...
#include <LoggingGPIO.hxx>
Static Public Member Functions | |
| static bool | get () |
| Returns the input pin level. | |
| static bool | is_output () |
| Returns whether this is an output pin or not. | |
| static constexpr const Gpio * | instance () |
Static Public Member Functions inherited from LoggingPin< message > | |
| 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. | |
Additional Inherited Members | |
Static Protected Attributes inherited from LoggingPin< message > | |
| 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 will always return false.
Definition at line 85 of file LoggingGPIO.hxx.
|
inlinestatic |
Returns the input pin level.
Definition at line 88 of file LoggingGPIO.hxx.
|
inlinestaticconstexpr |
Definition at line 100 of file LoggingGPIO.hxx.
|
inlinestatic |
Returns whether this is an output pin or not.
Definition at line 94 of file LoggingGPIO.hxx.