RADLib
RADical C++ application framework
RADDevice Namespace Reference

Classes

struct  DevicePaths
 Filesystem roots used for real devices or test fixtures. More...
 
class  I2CDevice
 Parity-free I2C device wrapper using /dev/i2c-* and I2C_SLAVE ioctl. More...
 
class  SPIDevice
 SPI device wrapper using /dev/spidev* and SPI_IOC_MESSAGE. More...
 
class  GpioPin
 GPIO sysfs helper. More...
 
class  PwmChannel
 PWM sysfs channel helper. More...
 
class  AdcChannel
 IIO ADC channel reader. More...
 
class  Watchdog
 Linux watchdog wrapper. More...
 
class  Led
 LED sysfs helper. More...
 

Enumerations

enum class  GpioDirection { In , Out }
 GPIO direction. More...
 
enum class  GpioEdge { None , Rising , Falling , Both }
 GPIO edge trigger mode. More...
 

Functions

std::vector< std::string > listLeds (const DevicePaths &paths={})
 Lists LED device names. More...
 
std::vector< std::string > listIioDevices (const DevicePaths &paths={})
 Lists visible IIO device directory names. More...
 

Enumeration Type Documentation

◆ GpioDirection

GPIO direction.

Enumerator
In 

Input pin.

Out 

Output pin.

◆ GpioEdge

enum RADDevice::GpioEdge
strong

GPIO edge trigger mode.

Enumerator
None 

No edge trigger.

Rising 

Rising edge.

Falling 

Falling edge.

Both 

Both edges.

Function Documentation

◆ listIioDevices()

std::vector<std::string> RADDevice::listIioDevices ( const DevicePaths paths = {})

Lists visible IIO device directory names.

◆ listLeds()

std::vector<std::string> RADDevice::listLeds ( const DevicePaths paths = {})

Lists LED device names.