|
Open Model Railroad Network (OpenMRN)
|
Static GPIO implementation for the STM32 microcontrollers. More...
#include <Stm32Gpio.hxx>
Static Public Member Functions | |
| static GPIO_TypeDef * | port () |
| static uint16_t | pin () |
| static void | set (bool value) |
| Sets the output pin to a given level. | |
| static bool | get () |
| Sets the output pin to a given level. | |
| static void | toggle () |
| Changes the output pin level. | |
| static constexpr const Gpio * | instance () |
| static bool | is_output () |
Static GPIO implementation for the STM32 microcontrollers.
Do not use directly: use GPIO_PIN macro.
| PORT | is the port base address pointer (e.g. GPIOC) |
| PIN | is the GPIO_PIN_# value for the pin number. |
| PIN_NUM | is the number of the pin in the port. Zero-based. |
Definition at line 49 of file Stm32Gpio.hxx.
|
inlinestatic |
Sets the output pin to a given level.
Definition at line 86 of file Stm32Gpio.hxx.
|
inlinestaticconstexpr |
Definition at line 99 of file Stm32Gpio.hxx.
|
inlinestatic |
Definition at line 105 of file Stm32Gpio.hxx.
|
inlinestatic |
Definition at line 58 of file Stm32Gpio.hxx.
|
inlinestatic |
Definition at line 52 of file Stm32Gpio.hxx.
|
inlinestatic |
Sets the output pin to a given level.
Definition at line 64 of file Stm32Gpio.hxx.
|
inlinestatic |
Changes the output pin level.
Definition at line 92 of file Stm32Gpio.hxx.