|
uint8_t | addr |
|
const uint8_t * | tx_data |
| Data for mater write/slave read.
|
|
uint8_t * | rx_data |
| Data for master read/slave write.
|
|
unsigned | tx_len |
| Length of tx data.
|
|
unsigned | rx_len |
| Length of rx.
|
|
unsigned | tx_num |
| Number of tx bytes sent.
|
|
unsigned | rx_num |
| Number of rx bytes sent.
|
|
i2c_state_t | state |
| Read or Write.
|
|
int | restart |
|
i2c_autoflush_disable_t | sw_autoflush_disable |
| Enable/Disable autoflush.
|
|
void(* | callback )(i2c_req_t *, int) |
| Callback for asynchronous request. More...
|
|
◆ addr
I2C 7-bit Address left aligned, bit 7 to bit 1. Only supports 7-bit addressing. LSb of the given address will be used as the read/write bit, the addr
will not be shifted. Used for both master and slave transactions.
◆ restart
0 to send a stop bit at the end of the transaction, otherwise send a restart. Only used in master trasnactions.Restart or stop bit indicator.
- 0 to send a stop bit at the end of the transaction
- Non-zero to send a restart at end of the transaction
- Note
- Only used for Master transactions.
◆ callback
void(* i2c_req_t::callback) (i2c_req_t *, int) |
- Parameters
-
i2c_req_t* | Pointer to the transaction request. |
int | Error code. |
The documentation for this struct was generated from the following file: