|
mraa
0.9.6
Low Level Skeleton Library for Communication on GNU/Linux platforms
|
This file defines the C++ iio interface for libmraa
Public Member Functions | |
| Iio (int device) | |
| Iio (const std::string &deviceName) | |
| ~Iio () | |
| std::string | getDeviceName () const |
| int | readInt (const std::string &attributeName) const |
| float | readFloat (const std::string &attributeName) const |
| void | writeInt (const std::string &attributeName, int value) const |
| void | writeFloat (const std::string &attributeName, float value) const |
| void | registerEventHandler (IioHandler *handler) const |
|
inline |
Iio Constructor, takes a device number which will map directly to sysfs e.g. device 0 maps to /sys/bus/iio/devices/iio:device0
| device | IIO device number |
| std::invalid_argument | if initialization fails |

|
inline |
Iio Constructor
| deviceName | IIO device name |
| std::invalid_argument | if initialization fails |

|
inline |
Get device name
|
inline |
Read an int value from specified attribute.
| attributeName | attribute mame |
| std::invalid_argument | if read fails |
|
inline |
Read a float value from specified attribute.
| attributeName | attribute mame |
| std::invalid_argument | if read fails |
|
inline |
Write an int value to specified attribute.
| attributeName | attribute mame |
| value | int value |
| std::invalid_argument | if write fails |
|
inline |
Write a float value to specified attribute.
| attributeName | attribute mame |
| value | float value |
| std::invalid_argument | if write fails |
|
inline |
Register event handler.
| handler | handler class that implements IioHandler |
| std::invalid_argument | on failure |
1.8.6