|
Open Model Railroad Network (OpenMRN)
|
GPIO pin in a hardware configuration (via pinmux: UART, I2C, CAN, etc). More...
#include <TivaGPIO.hxx>
Static Public Member Functions | |
| static void | hw_init () |
| Implements hw_init functionality for this pin only. | |
| static void | hw_set_to_safe () |
| Implements hw_set_to_safe functionality for this pin only. | |
| static void | set_hw () |
| Switches the GPIO pin to the hardware peripheral. | |
| static void | set_output () |
| Switches the GPIO pin to an output pin. | |
| static void | set_input (uint32_t drive_type=GPIO_PIN_TYPE_STD) |
| Switches the GPIO pin to an input pin. | |
Static Public Member Functions inherited from GpioShared< Defs > | |
| static void | unlock () |
| Used to unlock special consideration pins such as JTAG or NMI pins. | |
| static void | lock () |
| Used to lock special consideration pins such as JTAG or NMI pins. | |
| static void | set (bool value) |
| Sets the output pin to a specified value;. | |
| static bool | get () |
| static void | toggle () |
| Changes the value of an output pin. | |
| static constexpr uint32_t | ptr_address () |
| static constexpr const Gpio * | instance () |
GPIO pin in a hardware configuration (via pinmux: UART, I2C, CAN, etc).
The pin can be switched to hardware, input and output mode. In input.output mode the pin can be read and written using the usual set() and get() functions.
Do not use this class directly. Use GPIO_HWPIN instead.
Definition at line 479 of file TivaGPIO.hxx.
|
inlinestatic |
Implements hw_init functionality for this pin only.
Definition at line 488 of file TivaGPIO.hxx.
|
inlinestatic |
Implements hw_set_to_safe functionality for this pin only.
Definition at line 496 of file TivaGPIO.hxx.
|
inlinestatic |
Switches the GPIO pin to the hardware peripheral.
Definition at line 505 of file TivaGPIO.hxx.
|
inlinestatic |
Switches the GPIO pin to an input pin.
Use the get() command to retrieve the value.
| drive_type | specifies whether there should be a weak pullup (GPIO_PIN_TYPE_STD_WPU), pull-down (GPIO_PIN_TYPE_STD_WPD) or standard pin (default, GPIO_PIN_TYPE_STD) |
Definition at line 525 of file TivaGPIO.hxx.
|
inlinestatic |
Switches the GPIO pin to an output pin.
Use the set() command to define the value.
Definition at line 512 of file TivaGPIO.hxx.