![]() |
Ultibo API
C/C++ API for Ultibo Core
|
#include <i2cgpio.h>
Data Fields | |
| I2C_DEVICE | i2c |
| GPIO_DEVICE * | gpio |
| The GPIO device this device is connected to. | |
| uint32_t | sda |
| GPIO pin for the SDA line. | |
| uint32_t | scl |
| GPIO pin for the SCL line. | |
| uint32_t | delay |
| Clock and Data delay in microseconds. | |
| uint32_t | timeout |
| Clock timeout in milliseconds. | |
| LONGBOOL | outputonly |
| Clock line is output only, no test for SCL high. | |
| LONGBOOL | opendrain |
| Clock and Data are open drain, no need to simulate by switching direction. | |
| LONGBOOL | ignorenak |
| If True Ignore NAK responses and continue. | |
| I2C_DEVICE i2c |
| GPIO_DEVICE* gpio |
The GPIO device this device is connected to.
| uint32_t sda |
GPIO pin for the SDA line.
| uint32_t scl |
GPIO pin for the SCL line.
| uint32_t delay |
Clock and Data delay in microseconds.
| uint32_t timeout |
Clock timeout in milliseconds.
| LONGBOOL outputonly |
Clock line is output only, no test for SCL high.
| LONGBOOL opendrain |
Clock and Data are open drain, no need to simulate by switching direction.
| LONGBOOL ignorenak |
If True Ignore NAK responses and continue.