Thunderbots Project
Loading...
Searching...
No Matches
GpioSysfs Class Reference

#include <gpio_sysfs.h>

Inheritance diagram for GpioSysfs:
Collaboration diagram for GpioSysfs:

Public Member Functions

 GpioSysfs (const std::string &gpio_number, GpioDirection direction, GpioState initial_state)
 
void setValue (GpioState state) override
 
GpioState getValue () override
 

Detailed Description

GPIO with the sysfs interface

Deprecated in Linux kernels 4.8 and later but still available on some systems.

Member Function Documentation

◆ getValue()

GpioState getValue ( )
overridevirtual

Get the current state of the gpio

Implements Gpio.

◆ setValue()

void setValue ( GpioState  state)
overridevirtual

Set the value to the provided state

Parameters
stateThe state

Implements Gpio.


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