OkoLib
library for accessing Okolab devices
|
Functions | |
oko_res_type | oko_PropertyReadString (uint32_t deviceh, const char *name, char *val) |
Get the current value of a string property. More... | |
oko_res_type | oko_PropertyReadInt (uint32_t deviceh, const char *name, int32_t *val) |
Get the current value of a integer property. More... | |
oko_res_type | oko_PropertyReadDouble (uint32_t deviceh, const char *name, double *val) |
Get the current value of a double property. More... | |
oko_res_type | oko_PropertyUpdate (uint32_t deviceh, const char *name) |
Update the specified property value, reading it from the current device. More... | |
oko_res_type oko_PropertyReadDouble | ( | uint32_t | deviceh, |
const char * | name, | ||
double * | val | ||
) |
Get the current value of a double property.
[in] | deviceh | A valid device handle. |
[in] | name | The property name. |
[out] | val | Current value of the specified property. |
oko_res_type oko_PropertyReadInt | ( | uint32_t | deviceh, |
const char * | name, | ||
int32_t * | val | ||
) |
Get the current value of a integer property.
[in] | deviceh | A valid device handle. |
[in] | name | The property name. |
[out] | val | Current value of the specified property. |
oko_res_type oko_PropertyReadString | ( | uint32_t | deviceh, |
const char * | name, | ||
char * | val | ||
) |
Get the current value of a string property.
[in] | name | The property name. |
[in] | deviceh | A valid device handle. |
[out] | val | Current value of the specified property. String needs to be pre-allocated by the caller. |
oko_res_type oko_PropertyUpdate | ( | uint32_t | deviceh, |
const char * | name | ||
) |
Update the specified property value, reading it from the current device.
[in] | deviceh | A valid device handle. |
[in] | name | The property name. |