Soletta™ Framework
|
A configuration struct for an IIO channel. More...
#include <sol-iio.h>
Data Fields | |
uint16_t | api_version |
The API version. More... | |
int | offset |
Channel offset, to be added to raw readings. More... | |
double | scale |
Channel scale, to be applied to raw readings. More... | |
bool | use_custom_offset |
If true, will use user defined offset on member offset of this struct. More... | |
A configuration struct for an IIO channel.
uint16_t sol_iio_channel_config::api_version |
The API version.
int sol_iio_channel_config::offset |
Channel offset, to be added to raw readings.
Some devices share offset among all channels, so changing one will change all. If, in this case, different channels set different offsets the result is unknown.
Referenced by main().
double sol_iio_channel_config::scale |
Channel scale, to be applied to raw readings.
-1 uses device default. Some devices share scale among all channels, so changing one will change all. If, in this case, different channels set different scales the result is unknown.
Referenced by main().
bool sol_iio_channel_config::use_custom_offset |