|
Open Model Railroad Network (OpenMRN)
|
Static GPIO implementation for the NXP LPC microcontrollers. More...
#include <Lpc17xx40xxGPIO.hxx>
Static Public Member Functions | |
| static constexpr uint8_t | port () |
| static constexpr uint8_t | pin () |
| static void | set (bool value) |
| Sets the output pin to a given level. | |
| static void | toggle () |
| Toggles the output pin level. | |
| static bool | get () |
| static constexpr const Gpio * | instance () |
| static bool | is_output () |
Static Protected Member Functions | |
| static void | set_output () |
| Configures pin as output. | |
| static void | set_input () |
| Configures pin as input. | |
Static GPIO implementation for the NXP LPC microcontrollers.
| PORT | is the port number (like 0, 1, 2). E.g. for P1.12 this is 1. |
| PIN | is the number of th epin in the port. E.g. for P1.12 this is 12. |
Definition at line 49 of file Lpc17xx40xxGPIO.hxx.
|
inlinestatic |
Definition at line 73 of file Lpc17xx40xxGPIO.hxx.
|
inlinestaticconstexpr |
Definition at line 80 of file Lpc17xx40xxGPIO.hxx.
|
inlinestatic |
Definition at line 86 of file Lpc17xx40xxGPIO.hxx.
|
inlinestaticconstexpr |
Definition at line 57 of file Lpc17xx40xxGPIO.hxx.
|
inlinestaticconstexpr |
Definition at line 52 of file Lpc17xx40xxGPIO.hxx.
|
inlinestatic |
Sets the output pin to a given level.
Definition at line 62 of file Lpc17xx40xxGPIO.hxx.
|
inlinestaticprotected |
Configures pin as input.
Definition at line 98 of file Lpc17xx40xxGPIO.hxx.
|
inlinestaticprotected |
Configures pin as output.
Definition at line 93 of file Lpc17xx40xxGPIO.hxx.
|
inlinestatic |
Toggles the output pin level.
Definition at line 67 of file Lpc17xx40xxGPIO.hxx.