Functions |
BYTE | U2C_GetDeviceCount () |
| How many I2CBridge devices are currently attached. More...
|
U2C_RESULT | U2C_GetSerialNum (HANDLE hDevice, long *pSerialNum) |
| Get I2CBridge device Serial Number. More...
|
U2C_RESULT | U2C_IsHandleValid (HANDLE hDevice) |
| Check device handle. More...
|
HANDLE | U2C_OpenDevice (BYTE nDevice) |
| Open I2CBridge device. More...
|
HANDLE | U2C_OpenDeviceBySerialNum (long nSerialNum) |
| Open I2CBridge by Serial Number. More...
|
U2C_RESULT | U2C_CloseDevice (HANDLE hDevice) |
| Close device. More...
|
U2C_RESULT | U2C_GetFirmwareVersion (HANDLE hDevice, PU2C_VESION_INFO pVersion) |
| Get FW Version. More...
|
U2C_RESULT | U2C_GetDriverVersion (HANDLE hDevice, PU2C_VERSION_INFO pVersion) |
| Get Driver Version. More...
|
U2C_VERSION_INFO | U2C_GetDllVersion () |
| Get dll/so Version. More...
|
U2C_RESULT | U2C_SetI2cFreq (HANDLE hDevice, BYTE Frequency) |
| Select I2C speed. More...
|
U2C_RESULT | U2C_GetI2cFreq (HANDLE hDevice, BYTE *pFrequency) |
| Get I2C speed. More...
|
U2C_RESULT | U2C_Read (HANDLE hDevice, PU2C_TRANSACTION pTransaction) |
| I2C Read. More...
|
U2C_RESULT | U2C_Write (HANDLE hDevice, PU2C_TRANSACTION pTransaction) |
| I2C Write. More...
|
U2C_RESULT | U2C_RW_Pack (HANDLE hDevice, PU2C_TRANSACTION_PACK pTransaction, int count) |
| Execute I2C transactions pack. More...
|
U2C_RESULT | U2C_ScanDevices (HANDLE hDevice, PU2C_SLAVE_ADDR_LIST pList) |
| Scan slave devices. More...
|
U2C_RESULT | U2C_Start (HANDLE hDevice) |
| Generate I2C Start. More...
|
U2C_RESULT | U2C_RepeatedStart (HANDLE hDevice) |
| Generate repeated Start. More...
|
U2C_RESULT | U2C_Stop (HANDLE hDevice) |
| Generate Stop condition. More...
|
U2C_RESULT | U2C_PutByte (HANDLE hDevice, BYTE Data) |
| Shift out byte. More...
|
U2C_RESULT | U2C_GetByte (HANDLE hDevice, BYTE *pData) |
| Shift in byte. More...
|
U2C_RESULT | U2C_PutByteWithAck (HANDLE hDevice, BYTE Data) |
| Shift out byte and get ACK. More...
|
U2C_RESULT | U2C_GetByteWithAck (HANDLE hDevice, BYTE *pData, BOOL bAck) |
| Shift in byte and generate ACK/NAK. More...
|
U2C_RESULT | U2C_PutAck (HANDLE hDevice, BOOL bAck) |
| Generate ACK/NAK. More...
|
U2C_RESULT | U2C_GetAck (HANDLE hDevice) |
| Get ACK from Slave. More...
|
U2C_RESULT | U2C_ReadScl (HANDLE hDevice, U2C_LINE_STATE *pState) |
| Get SCL line state. More...
|
U2C_RESULT | U2C_ReadSda (HANDLE hDevice, U2C_LINE_STATE *pState) |
| Get SDA line state. More...
|
U2C_RESULT | U2C_ReleaseScl (HANDLE hDevice) |
| Release SCL. More...
|
U2C_RESULT | U2C_ReleaseSda (HANDLE hDevice) |
| Release SCL. More...
|
U2C_RESULT | U2C_DropScl (HANDLE hDevice) |
| Pull down SCL. More...
|
U2C_RESULT | U2C_DropSda (HANDLE hDevice) |
| Pull down SDA. More...
|
U2C_RESULT | U2C_SetIoDirection (HANDLE hDevice, ULONG Value, ULONG Mask) |
| Configure GPIO direction. More...
|
U2C_RESULT | U2C_GetIoDirection (HANDLE hDevice, ULONG *pValue,) |
| Get GPIO direction. More...
|
U2C_RESULT | U2C_IoWrite (HANDLE hDevice, ULONG Value, ULONG Mask) |
| Set GPIO output state. More...
|
U2C_RESULT | U2C_IoRead (HANDLE hDevice, ULONG *pValue,) |
| Get GPIO state. More...
|
U2C_RESULT | U2C_SetSingleIoDirection (HANDLE hDevice, ULONG IoNumber, BOOL bOutput) |
| Set pin direction. More...
|
U2C_RESULT | U2C_GetSingleIoDirection (HANDLE hDevice, ULONG IoNumber, BOOL *pbOutput) |
| Get pin direction. More...
|
U2C_RESULT | U2C_SingleIoWrite (HANDLE hDevice, ULONG IoNumber, BOOL Value) |
| Set pin output value. More...
|
U2C_RESULT | U2C_SingleIoRead (HANDLE hDevice, ULONG IoNumber, BOOL *pValue) |
| Get pin input value. More...
|
U2C_RESULT | U2C_SpiSetConfig (HANDLE hDevice, BYTE CPOL, BYTE CPHA) |
| Configure SPI. More...
|
U2C_RESULT | U2C_SpiGetConfig (HANDLE hDevice, BYTE *pCPOL, BYTE *pCPHA) |
| Get SPI configuration. More...
|
U2C_RESULT | U2C_SpiSetFreq (HANDLE hDevice, BYTE Frequency) |
| Set SPI speed. More...
|
U2C_RESULT | U2C_SpiGetFreq (HANDLE hDevice, BYTE *pFrequency) |
| Get SPI speed. More...
|
U2C_RESULT | U2C_SpiReadWrite (HANDLE hDevice, BYTE *pOutBuffer, BYTE *pInBuffer, unsigned short Length) |
| Shift in/out byte stream. More...
|
U2C_RESULT | U2C_SpiWrite (HANDLE hDevice, BYTE *pOutBuffer, unsigned short Length) |
| Shift out byte stream. More...
|
U2C_RESULT | U2C_SpiRead (HANDLE hDevice, BYTE *pInBuffer, unsigned short Length) |
| Shift in byte stream. More...
|