Shared class that defines static functions used by both GpioInputPin, GpioOutputPin and GpioHwPin.
More...
#include <TivaGPIO.hxx>
|
| 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 () |
| |
template<class Defs>
struct GpioShared< Defs >
Shared class that defines static functions used by both GpioInputPin, GpioOutputPin and GpioHwPin.
Definition at line 155 of file TivaGPIO.hxx.
◆ get()
- Returns
- current value of an input pin, if true HIGH, of false LOW.
Definition at line 186 of file TivaGPIO.hxx.
◆ instance()
- Returns
- static Gpio ovject instance that controls this output pin.
Definition at line 203 of file TivaGPIO.hxx.
◆ lock()
Used to lock special consideration pins such as JTAG or NMI pins.
Definition at line 171 of file TivaGPIO.hxx.
◆ ptr_address()
template<class Defs >
| static constexpr uint32_t GpioShared< Defs >::ptr_address |
( |
| ) |
|
|
inlinestaticconstexpr |
- Returns
- the IO address of the port that controls the specific pin.
Definition at line 197 of file TivaGPIO.hxx.
◆ set()
Sets the output pin to a specified value;.
- Parameters
-
| value | if true, output is set to HIGH otherwise LOW. |
Definition at line 181 of file TivaGPIO.hxx.
◆ toggle()
Changes the value of an output pin.
Definition at line 191 of file TivaGPIO.hxx.
◆ unlock()
Used to unlock special consideration pins such as JTAG or NMI pins.
Definition at line 162 of file TivaGPIO.hxx.
The documentation for this struct was generated from the following file: