Files | |
| file | hicom.h |
| HiCom board type and function declarations. | |
Functions | |
| int | HiCom_Find (HiComInterface_t *board, int *count) |
| Enumerate HiCom boards Scans USB ports for connected HiCom boards. More... | |
| int | HiCom_Connect (HiComInterface_t *board) |
| Connect a HiCom instance Tries to connect to an interface that has been discovered with HiCom_Find() previously. More... | |
| int | HiCom_Disconnect (HiComInterface_t *board) |
| Disconnect a HicomBoard. More... | |
| int | HiCom_SetPower (HiComInterface_t *board, bool on) |
| Switch sensor power supply on or off. More... | |
| int | HiCom_I2CWrite (HiComInterface_t *board, uint8_t slAddr, uint8_t *wData1, int wSize1, uint8_t *wData2, int wSize2) |
| int | HiCom_I2CRead (HiComInterface_t *board, uint8_t slAddr, uint8_t *wData, int wSize, uint8_t *rData, int rSize) |
| char const * | HiCom_GetErrorString (int error, int scope, char *buf, int bufLen) |
Data Structures | |
| struct | HiComInterface_t |
Macros | |
| #define | HICOM_NAME "Dual RS232-HS A" |
| #define | HICOM_I2C_SPEED 100000 |
Typedefs | |
| typedef FT_STATUS | HiComStatus_t |
| typedef FT_HANDLE | HiComHandle_t |
Enumerations | |
| enum | HiComErrorScope_t { iesFTDI = 0x21 } |
| int HiCom_Connect | ( | HiComInterface_t * | board | ) |
Connect a HiCom instance Tries to connect to an interface that has been discovered with HiCom_Find() previously.
| board | Pointer to HiCom board discovered by HiCom_Find() |
| int HiCom_Disconnect | ( | HiComInterface_t * | board | ) |
Disconnect a HicomBoard.
| board | Pointer to HiCom board to be disconnected |
| int HiCom_Find | ( | HiComInterface_t * | board, |
| int * | count | ||
| ) |
Enumerate HiCom boards Scans USB ports for connected HiCom boards.
| board | pointer to a buffer storing board information |
| count | [in] maximum count of boards to be stored [out] actual number of boards stored |
| char const* HiCom_GetErrorString | ( | int | error, |
| int | scope, | ||
| char * | buf, | ||
| int | bufLen | ||
| ) |
Generate a descriptive error message
| [in] | error | Error code |
| [in] | scope | Error scope |
| int HiCom_I2CRead | ( | HiComInterface_t * | board, |
| uint8_t | slAddr, | ||
| uint8_t * | wData, | ||
| int | wSize, | ||
| uint8_t * | rData, | ||
| int | rSize | ||
| ) |
HiCom implementation of HAL_t::i2cRead
| int HiCom_I2CWrite | ( | HiComInterface_t * | board, |
| uint8_t | slAddr, | ||
| uint8_t * | wData1, | ||
| int | wSize1, | ||
| uint8_t * | wData2, | ||
| int | wSize2 | ||
| ) |
HiCom implementation of HAL_t::i2cWrite
| int HiCom_SetPower | ( | HiComInterface_t * | board, |
| bool | on | ||
| ) |
Switch sensor power supply on or off.
| board | Pointer to HiCom board to be operated |