![]() |
OkoLib
library for accessing Okolab devices
|
Functions | |
| oko_res_type | oko_DeviceGetPortName (uint32_t deviceh, char *port) |
| Get the Port Name of the specified device. More... | |
| oko_res_type | oko_DeviceConnectionStatus (uint32_t deviceh, uint32_t *conn) |
| Get the connection status of the current device. More... | |
| oko_res_type | oko_DeviceSetChecksumUsage (uint32_t deviceh, bool use_checksum) |
| Set the checksum usage flag of the current device. More... | |
| oko_res_type | oko_DeviceGetChecksumUsage (uint32_t deviceh, bool *use_checksum) |
| Get the checksum usage flag of the current device. More... | |
| oko_res_type | oko_DeviceGetChecksumAvailable (uint32_t deviceh, bool *checksum) |
| Check if the communication protocol of the specified device supports checksum. More... | |
| oko_res_type oko_DeviceConnectionStatus | ( | uint32_t | deviceh, |
| uint32_t * | conn | ||
| ) |
Get the connection status of the current device.
| [in] | deviceh | A valid device handle. |
| [out] | conn | A value describing the connection status (0=off, 1=0n) |
| oko_res_type oko_DeviceGetChecksumAvailable | ( | uint32_t | deviceh, |
| bool * | checksum | ||
| ) |
Check if the communication protocol of the specified device supports checksum.
| [in] | deviceh | A valid device handle. |
| [out] | checksum | true if checksum is available |
| oko_res_type oko_DeviceGetChecksumUsage | ( | uint32_t | deviceh, |
| bool * | use_checksum | ||
| ) |
Get the checksum usage flag of the current device.
| [in] | deviceh | A valid device handle. |
| [out] | use_checksum | variable where is stored the desired info |
| oko_res_type oko_DeviceGetPortName | ( | uint32_t | deviceh, |
| char * | port | ||
| ) |
Get the Port Name of the specified device.
| [in] | deviceh | A valid device handle. |
| [out] | port | The serial port name, pre-allocated by the caller (eg. 'COM1' on Windows and '/dev/ttyS0' on Linux). |
| oko_res_type oko_DeviceSetChecksumUsage | ( | uint32_t | deviceh, |
| bool | use_checksum | ||
| ) |
Set the checksum usage flag of the current device.
| [in] | deviceh | A valid device handle. |
| [in] | use_checksum | set checksum usage |