# I2cMsg - [Overview](#section1938170583165632) - [Summary](#section208689179165632) - [Data Fields](#pub-attribs) - [Details](#section1058882627165632) - [Field](#section1489406453165632) - [addr](#a8f9fae2a615957552b2c409b868e91cd) - [buf](#a7b32a5e6322edb302cea3faf698953a0) - [flags](#adfecd4720506fef0a87d0abd45d1f201) - [len](#aa3951709930c577af6f5ee4cf53b6dad) ## **Overview** **Related Modules:** [I2C](i2c.md) **Description:** Defines the I2C transfer message used during custom transfers. Attention : This structure does not limit the data transfer length specified by **len**. The specific I2C controller determines the maximum length allowed. The device address **addr** indicates the original device address and does not need to contain the read/write flag bit. **Since:** 1.0 ## **Summary** ## Data Fields

Variable Name

Description

addr

uint16_t

buf

uint8_t *

len

uint16_t

flags

uint16_t

## **Details** ## **Field ** ## addr ``` uint16_t I2cMsg::addr ``` **Description:** Address of the I2C device ## buf ``` uint8_t* I2cMsg::buf ``` **Description:** Address of the buffer for storing transferred data ## flags ``` uint16_t I2cMsg::flags ``` ## len ``` uint16_t I2cMsg::len ``` **Description:** Length of the transferred data