theCore C++ embedded framework

Encapsulates pin usage. More...

#include </home/travis/build/forGGe/theCore/platform/tm4c/export/platform/gpio_device.hpp>

Static Public Member Functions

static void set ()
 Sets output pin level to high. More...
 
static void reset ()
 Sets output pin level to low. More...
 
static void toggle ()
 Toggles pin level. More...
 
static bool get ()
 Gets level on a pin. More...
 
static void set ()
 Sets output pin level to high. More...
 
static void reset ()
 Sets output pin level to low. More...
 
static void toggle ()
 Toggles pin level. More...
 
static bool get ()
 Gets level on a pin. More...
 

Static Public Attributes

static constexpr auto port = Port
 Advertised platform port. More...
 
static constexpr auto pin = Pin
 Advertised platform pin. More...
 

Detailed Description

template<gpio_port Port, gpio_num Pin>
class ecl::gpio< Port, Pin >

Encapsulates pin usage.

Template Parameters
PortGPIO port on STM32 device.
PinPin within given port.

Member Function Documentation

◆ set()

template<gpio_port Port, gpio_num Pin>
static void ecl::gpio< Port, Pin >::set ( )
static

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

Toggles pin level.

◆ get()

template<gpio_port Port, gpio_num Pin>
static bool ecl::gpio< Port, Pin >::get ( )
static

Gets level on a pin.

Returns
True if level is high, false if level is low.

Field Documentation

◆ 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

Advertised platform pin.


The documentation for this class was generated from the following file: