Skip to content

Class vl::GPIO#

ClassList > vl > GPIO

Public Types#

Type Name
enum Direction
enum Edge

Public Functions#

Type Name
GPIO (uint32_t gpio, Direction dir)
Direction direction ()
void setDirection (Direction direction)
void setValue (bool value)
bool value ()
void watchEventsStart (Edge edge, const std::function< void(bool)> & cb)
void watchEventsStop ()
virtual ~GPIO ()

Public Types Documentation#

enum Direction#

enum vl::GPIO::Direction {
    In,
    Out
};

enum Edge#

enum vl::GPIO::Edge {
    Rising,
    Falling,
    Both
};

Public Functions Documentation#

function GPIO#

vl::GPIO::GPIO (
    uint32_t gpio,
    Direction dir
) 

function direction#

Direction vl::GPIO::direction () 

function setDirection#

void vl::GPIO::setDirection (
    Direction direction
) 

function setValue#

void vl::GPIO::setValue (
    bool value
) 

function value#

bool vl::GPIO::value () 

function watchEventsStart#

void vl::GPIO::watchEventsStart (
    Edge edge,
    const std::function< void(bool)> & cb
) 

function watchEventsStop#

void vl::GPIO::watchEventsStop () 

function ~GPIO#

virtual vl::GPIO::~GPIO () 


The documentation for this class was generated from the following file docs/libvl/build/1.2.5/doxygen/source/vl/gpio.h