|
FIU Serial Library 1.0.0
FIU Serial Library
|
C-style interfaced to the library. More...
Classes | |
| struct | FiuFirmwareVersion |
| FIU firmware version. More... | |
Typedefs | |
| typedef void * | FiuClientHandle |
| FIU client handle. | |
Functions | |
| FIU_API unsigned int | FiuClient_Version () |
| Get the version of the library as an unsigned base 10 integer. | |
| FIU_API const char * | FiuClient_ErrorMessage (int error) |
| Get a message describing an error code returned by the library. | |
| FIU_API int | FiuClient_Init (FiuClientHandle *handle_out) |
| Initialize an FIU client. | |
| FIU_API void | FiuClient_Destroy (FiuClientHandle *handle) |
| Destroy an FIU client. | |
| FIU_API int | FiuClient_Open (FiuClientHandle handle, const char *port) |
| Open a serial connection to the FIU. | |
| FIU_API int | FiuClient_Close (FiuClientHandle handle) |
| Close the serial port. | |
| FIU_API int | FiuClient_SetBoxID (FiuClientHandle handle, uint8_t box_id) |
| Set the target box ID. | |
| FIU_API int | FiuClient_GetBoxID (FiuClientHandle handle, uint8_t *box_id_out) |
| Get the target box ID. | |
| FIU_API int | FiuClient_SetChannelState (FiuClientHandle handle, unsigned int channel, uint8_t state) |
| Set the state of a channel. | |
| FIU_API int | FiuClient_SetAllChannelStates (FiuClientHandle handle, uint8_t state) |
| Set the state of all channels. | |
| FIU_API int | FiuClient_GetChannelStates (FiuClientHandle handle, uint8_t states_out[], unsigned int states_len) |
| Get the states of all 24 channels. | |
| FIU_API int | FiuClient_GetFirmwareVersion (FiuClientHandle handle, FiuFirmwareVersion *version_out) |
| Get the firmware version loaded onto the FIU. | |
| FIU_API int | FiuClient_SetSoftwareInterlock (FiuClientHandle handle, bool en) |
| Set the state of the software interlock. | |
| FIU_API int | FiuClient_GetInterlockState (FiuClientHandle handle, bool *interlock_out) |
| Get the system interlock state. | |
C-style interfaced to the library.