Ultibo API
C/C++ API for Ultibo Core
Loading...
Searching...
No Matches
_I2CGPIO_DEVICE Struct Reference

#include <i2cgpio.h>

Data Fields

I2C_DEVICE i2c
GPIO_DEVICEgpio
 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.

Field Documentation

◆ i2c

◆ gpio

GPIO_DEVICE* gpio

The GPIO device this device is connected to.

◆ sda

uint32_t sda

GPIO pin for the SDA line.

◆ scl

uint32_t scl

GPIO pin for the SCL line.

◆ delay

uint32_t delay

Clock and Data delay in microseconds.

◆ timeout

uint32_t timeout

Clock timeout in milliseconds.

◆ outputonly

LONGBOOL outputonly

Clock line is output only, no test for SCL high.

◆ opendrain

LONGBOOL opendrain

Clock and Data are open drain, no need to simulate by switching direction.

◆ ignorenak

LONGBOOL ignorenak

If True Ignore NAK responses and continue.


The documentation for this struct was generated from the following file: