Encapsulates pin usage.
More...
#include </home/travis/build/forGGe/theCore/platform/tm4c/export/platform/gpio_device.hpp>
|
static constexpr auto | port = Port |
| Advertised platform port. More...
|
|
static constexpr auto | pin = Pin |
| Advertised platform pin. More...
|
|
template<gpio_port Port, gpio_num Pin>
class ecl::gpio< Port, Pin >
Encapsulates pin usage.
- Template Parameters
-
Port | GPIO port on STM32 device. |
Pin | Pin within given port. |
◆ set()
template<gpio_port Port, gpio_num Pin>
Sets output pin level to high.
◆ reset()
template<gpio_port Port, gpio_num Pin>
static void ecl::gpio< Port, Pin >::reset |
( |
| ) |
|
|
static |
Sets output pin level to low.
◆ toggle()
template<gpio_port Port, gpio_num Pin>
static void ecl::gpio< Port, Pin >::toggle |
( |
| ) |
|
|
static |
◆ get()
template<gpio_port Port, gpio_num Pin>
Gets level on a pin.
- Returns
- True if level is high, false if level is low.
◆ port
template<gpio_port Port, gpio_num Pin>
static constexpr auto ecl::gpio< Port, Pin >::port = Port |
|
static |
Advertised platform port.
◆ pin
template<gpio_port Port, gpio_num Pin>
static constexpr auto ecl::gpio< Port, Pin >::pin = Pin |
|
static |
The documentation for this class was generated from the following file: