|
Open Model Railroad Network (OpenMRN)
|
Defines a GPIO output pin. More...
#include <ArduinoGpio.hxx>
Static Public Member Functions | |
| static void | set_output () |
| Sets pin to output. | |
| static void | set_input () |
| Sets pin to input. | |
| static void | set_pullup_on () |
| Turns on pullup. | |
| static void | set_pullup_off () |
| Turns off pullup. | |
| static void | set_on () |
| Sets output to HIGH. | |
| static void | set_off () |
| Sets output to LOW. | |
| static bool | get () |
| static void | set (bool value) |
| Set output pin level. | |
| static void | toggle () |
| Toggles output pin value. | |
| static bool | is_output () |
| static constexpr const Gpio * | instance () |
Defines a GPIO output pin.
Writes to this structure will change the output level of the pin. Reads will return the pin's current level.
The pin is set to output at initialization time, with the level defined by ‘SAFE_VALUE’.
Do not use this class directly. Use GPIO_PIN instead.
Definition at line 55 of file ArduinoGpio.hxx.
|
inlinestatic |
Definition at line 95 of file ArduinoGpio.hxx.
|
inlinestaticconstexpr |
Definition at line 141 of file ArduinoGpio.hxx.
|
inlinestatic |
Definition at line 120 of file ArduinoGpio.hxx.
|
inlinestatic |
Set output pin level.
| value | is the level to set to. |
Definition at line 101 of file ArduinoGpio.hxx.
|
inlinestatic |
Sets pin to input.
Definition at line 65 of file ArduinoGpio.hxx.
|
inlinestatic |
Sets output to LOW.
Definition at line 89 of file ArduinoGpio.hxx.
|
inlinestatic |
Sets output to HIGH.
Definition at line 83 of file ArduinoGpio.hxx.
|
inlinestatic |
Sets pin to output.
Definition at line 59 of file ArduinoGpio.hxx.
|
inlinestatic |
Turns off pullup.
Definition at line 77 of file ArduinoGpio.hxx.
|
inlinestatic |
Turns on pullup.
Definition at line 71 of file ArduinoGpio.hxx.
|
inlinestatic |
Toggles output pin value.
Definition at line 114 of file ArduinoGpio.hxx.