42#define I2C_EVENT_RXSTARTED(i2c) MMIO32((i2c) + 0x14C)
43#define I2C_EVENT_TXSTARTED(i2c) MMIO32((i2c) + 0x150)
44#define I2C_EVENT_LASTRX(i2c) MMIO32((i2c) + 0x15C)
45#define I2C_EVENT_LASTTX(i2c) MMIO32((i2c) + 0x160)
47#define I2C_RXDPTR(i2c) MMIO32((i2c) + 0x534)
48#define I2C_RXDMAXCNT(i2c) MMIO32((i2c) + 0x538)
49#define I2C_RXDAMOUNT(i2c) MMIO32((i2c) + 0x53C)
50#define I2C_RXDLIST(i2c) MMIO32((i2c) + 0x540)
51#define I2C_TXDPTR(i2c) MMIO32((i2c) + 0x544)
52#define I2C_TXDMAXCNT(i2c) MMIO32((i2c) + 0x548)
53#define I2C_TXDAMOUNT(i2c) MMIO32((i2c) + 0x54C)
54#define I2C_TXDLIST(i2c) MMIO32((i2c) + 0x550)
61#define I2C_SHORTS_LASTTX_STARTRX (1 << 7)
64#define I2C_SHORTS_LASTTX_SUSPEND (1 << 8)
67#define I2C_SHORTS_LASTTX_STOP (1 << 9)
70#define I2C_SHORTS_LASTRX_STARTTX (1 << 10)
73#define I2C_SHORTS_LASTRX_STOP (1 << 12)
79#define I2C_INTEN_SUSPENDED (1 << 18)
80#define I2C_INTEN_RXSTARTED (1 << 19)
81#define I2C_INTEN_TXSTARTED (1 << 20)
82#define I2C_INTEN_LASTRX (1 << 23)
83#define I2C_INTEN_LASTTX (1 << 24)
92#define I2C_MODE_MASTER (6)
void i2c_set_rx_buffer(uint32_t i2c, uint8_t *buffer, uint8_t len)
Configure I2C receive buffer properties.
void i2c_set_tx_buffer(uint32_t i2c, const uint8_t *buffer, uint8_t len)
Configure I2C transmit buffer properties.