LibTiePie
0.4.2
Library for interfacing TiePie engineering instruments
|
Functions | |
bool8_t | I2CRead (TpDeviceHandle_t hDevice, uint16_t wAddress, void *pBuffer, uint32_t dwSize, bool8_t bStop) |
Read data from the I2C bus. | |
bool8_t | I2CReadByte (TpDeviceHandle_t hDevice, uint16_t wAddress, uint8_t *pValue) |
Read one byte from the I2C bus. | |
bool8_t | I2CReadWord (TpDeviceHandle_t hDevice, uint16_t wAddress, uint16_t *pValue) |
Read one word from the I2C bus. | |
bool8_t I2CRead | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
void * | pBuffer, | ||
uint32_t | dwSize, | ||
bool8_t | bStop | ||
) |
Read data from the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
pBuffer | Pointer to buffer for read data. |
dwSize | Buffer size in bytes. |
bStop | If BOOL8_TRUE an I2C stop is generated after the transaction, if BOOL8_FALSE no I2C stop is generated after the transaction. |
bool8_t I2CReadByte | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint8_t * | pValue | ||
) |
Read one byte from the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
pValue | Pointer to buffer for read data. |
bool8_t I2CReadWord | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint16_t * | pValue | ||
) |
Read one word from the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
pValue | Pointer to buffer for read data. |