Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_iio_channel_config Struct Reference

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...
 

Detailed Description

A configuration struct for an IIO channel.

See Also
sol_iio_add_channel()
Examples:
/src/samples/iio+network/iio-gyroscope-console-and-mqtt-publish.c.

Field Documentation

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.

Examples:
/src/samples/iio+network/iio-gyroscope-console-and-mqtt-publish.c.

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

If true, will use user defined offset on member offset of this struct.

Examples:
/src/samples/iio+network/iio-gyroscope-console-and-mqtt-publish.c.

Referenced by main().


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