Bridle API 4.1.99
A Zephyr based application framework
Loading...
Searching...
No Matches
i2c_sc18is604_xfr_cb_work Struct Reference

Data structure for tracking a asynchronous I2C transfer. More...

Data Fields

struct k_work work_init_msg
 Work items performing the transfer.
 
struct k_work work_buffer_readout
 
struct k_work work_finish_msg
 
const struct device * dev
 Device performing this transfer.
 
bool owns_lock
 Whether this transfer holds the transaction lock.
 
struct k_poll_signal signal
 Signal used during processing to await individual message transfers.
 
uint8_t msg_index
 Index of the message currently being processed.
 
struct i2c_msg * msgs
 Messages to be processed.
 
uint8_t num_msgs
 Number of messages to be processed.
 
uint16_t addr
 I2C bus address the messages should be sent to.
 
i2c_callback_t cb
 User callback to be called once all messages are processed.
 
void * userdata
 User provided data for the callback.
 

Detailed Description

Data structure for tracking a asynchronous I2C transfer.

Field Documentation

◆ addr

uint16_t i2c_sc18is604_xfr_cb_work::addr

I2C bus address the messages should be sent to.

◆ cb

i2c_callback_t i2c_sc18is604_xfr_cb_work::cb

User callback to be called once all messages are processed.

◆ dev

const struct device* i2c_sc18is604_xfr_cb_work::dev

Device performing this transfer.

◆ msg_index

uint8_t i2c_sc18is604_xfr_cb_work::msg_index

Index of the message currently being processed.

◆ msgs

struct i2c_msg* i2c_sc18is604_xfr_cb_work::msgs

Messages to be processed.

◆ num_msgs

uint8_t i2c_sc18is604_xfr_cb_work::num_msgs

Number of messages to be processed.

◆ owns_lock

bool i2c_sc18is604_xfr_cb_work::owns_lock

Whether this transfer holds the transaction lock.

◆ signal

struct k_poll_signal i2c_sc18is604_xfr_cb_work::signal

Signal used during processing to await individual message transfers.

◆ userdata

void* i2c_sc18is604_xfr_cb_work::userdata

User provided data for the callback.

◆ work_buffer_readout

struct k_work i2c_sc18is604_xfr_cb_work::work_buffer_readout

◆ work_finish_msg

struct k_work i2c_sc18is604_xfr_cb_work::work_finish_msg

◆ work_init_msg

struct k_work i2c_sc18is604_xfr_cb_work::work_init_msg

Work items performing the transfer.


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