LibTiePie
0.4.3
Library for interfacing TiePie engineering instruments
|
Functions | |
bool8_t | I2CWrite (TpDeviceHandle_t hDevice, uint16_t wAddress, void *pBuffer, uint32_t dwSize, bool8_t bStop) |
Write data to the I2C bus. | |
bool8_t | I2CWriteByte (TpDeviceHandle_t hDevice, uint16_t wAddress, uint8_t byValue) |
Write one byte to the I2C bus. | |
bool8_t | I2CWriteByteByte (TpDeviceHandle_t hDevice, uint16_t wAddress, uint8_t byValue1, uint8_t byValue2) |
Write two bytes to the I2C bus. | |
bool8_t | I2CWriteByteWord (TpDeviceHandle_t hDevice, uint16_t wAddress, uint8_t byValue1, uint16_t wValue2) |
Write one byte and one word to the I2C bus. | |
bool8_t | I2CWriteWord (TpDeviceHandle_t hDevice, uint16_t wAddress, uint16_t wValue) |
Write one word to the I2C bus. | |
bool8_t I2CWrite | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
void * | pBuffer, | ||
uint32_t | dwSize, | ||
bool8_t | bStop | ||
) |
Write data to the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
pBuffer | Pointer to write buffer. |
dwSize | Length of write buffer 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 I2CWriteByte | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint8_t | byValue | ||
) |
Write one byte to the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
byValue | Byte value to write. |
bool8_t I2CWriteByteByte | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint8_t | byValue1, | ||
uint8_t | byValue2 | ||
) |
Write two bytes to the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
byValue1 | First byte value to write. |
byValue2 | Second byte value to write. |
bool8_t I2CWriteByteWord | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint8_t | byValue1, | ||
uint16_t | wValue2 | ||
) |
Write one byte and one word to the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
byValue1 | Byte value to write. |
wValue2 | Word value to write. |
bool8_t I2CWriteWord | ( | TpDeviceHandle_t | hDevice, |
uint16_t | wAddress, | ||
uint16_t | wValue | ||
) |
Write one word to the I2C bus.
hDevice | A device handle. |
wAddress | An I2C device address. |
wValue | Word value to write. |