Thunderbots Project
Loading...
Searching...
No Matches
Gpio Class Referenceabstract

#include <gpio.h>

Inheritance diagram for Gpio:

Public Member Functions

virtual void setValue (GpioState state)=0
 
virtual GpioState getValue ()=0
 

Detailed Description

An abstract interface for interacting with General Purpose Input/Output (GPIO) pins

Member Function Documentation

◆ getValue()

virtual GpioState getValue ( )
pure virtual

Get the current state of the gpio

Implemented in GpioCharDev, and GpioSysfs.

◆ setValue()

virtual void setValue ( GpioState  state)
pure virtual

Set the value to the provided state

Parameters
stateThe state

Implemented in GpioCharDev, and GpioSysfs.


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