Zephyr Project API 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
i2c_msg Struct Reference

One I2C Message. More...

#include <i2c.h>

Data Fields

uint8_tbuf
 Data buffer in bytes.
 
uint32_t len
 Length of buffer in bytes.
 
uint8_t flags
 Flags for this message.
 

Detailed Description

One I2C Message.

This defines one I2C message to transact on the I2C bus.

Note
Some of the configurations supported by this API may not be supported by specific SoC I2C hardware implementations, in particular features related to bus transactions intended to read or write data from different buffers within a single transaction. Invocations of i2c_transfer() may not indicate an error when an unsupported configuration is encountered. In some cases drivers will generate separate transactions for each message fragment, with or without presence of I2C_MSG_RESTART in flags.

Field Documentation

◆ buf

uint8_t* i2c_msg::buf

Data buffer in bytes.

◆ flags

uint8_t i2c_msg::flags

Flags for this message.

◆ len

uint32_t i2c_msg::len

Length of buffer in bytes.


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