![]() |
![]() |
![]() |
![]() |
Perform an I2C master write/read transaction
#include <gf/gf.h>
int gf_i2c_writeread ( gf_dev_t gdev,
int busno,
int slaveaddr,
uint8_t * odata,
int obytes,
uint8_t * idata,
int ibytes );
gf
This function performs an I2C master write/read transaction. The transaction performed is what the I2C specification refers to as a combined transfer format. This is typically used to write a register or memory subaddress to the device, followed by a read transfer from that register/memory.
![]() |
Threads should not call this function between calls to gf_draw_begin() and gf_draw_end(), or a deadlock will occur. |
QNX Graphics Framework
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
![]() |
![]() |
![]() |
![]() |