#include <owwl.h>
Public Attributes | |
| int | device_type |
| device_data_union | device_data |
| int | device_subtype |
| int | index |
| int | in_use |
| void * | user_data |
| char *(* | str )(struct owwl_data_ *self, char *buffer, int bufflen, int unit_type, int precision, int arg) |
| double(* | val )(struct owwl_data_ *self, int unit_type, int arg) |
Data are stored in an array of "owwl_data". Each item contains a union of data structures for the various data types. Functions to convert data to strings or doubles are provided.
|
|
A union of all possible device data structures |
|
|
Some devices have sub-types. For example, a temperature might come from a hygrometer |
|
|
The type of device held in the struct |
|
|
Is this an up-to-date in-use data item? |
|
|
The index value, running from 0, e.g. thermometer 0, &c. |
|
|
Function to convert one arg of the data item to a string, with given unit type and precision |
|
|
For unspecified use by user program |
|
|
Function to convert one arg of the data item to a double, with given unit type |
1.4.6