FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
i2c_itf_data_s Struct Reference

Data Fields

struct pi_task * hw_buffer [2]
 
struct pi_task * fifo_head
 
struct pi_task * fifo_tail
 
struct i2c_pending_transfer_spending
 
uint32_t nb_open
 
uint32_t i2c_cmd_index
 
pi_freq_cb_t i2c_freq_cb
 
struct i2c_cs_data_scs_list
 
uint8_t i2c_cmd_seq [__PI_I2C_CMD_BUFF_SIZE]
 
uint8_t i2c_stop_send
 
uint8_t i2c_stop_seq [__PI_I2C_STOP_CMD_SIZE]
 
uint8_t device_id
 
uint8_t nb_events
 

Field Documentation

struct i2c_cs_data_s* i2c_itf_data_s::cs_list

List of i2c associated to this itf.

Referenced by __pi_i2c_cs_data_add(), __pi_i2c_cs_data_remove(), __pi_i2c_freq_cb(), and __pi_i2c_open().

struct pi_task* i2c_itf_data_s::fifo_head

Head of SW fifo waiting transfers.

Referenced by __pi_i2c_open(), __pi_i2c_task_fifo_enqueue(), and __pi_i2c_task_fifo_pop().

struct pi_task* i2c_itf_data_s::fifo_tail

Tail of SW fifo waiting transfers.

Referenced by __pi_i2c_open(), and __pi_i2c_task_fifo_enqueue().

struct pi_task* i2c_itf_data_s::hw_buffer[2]
uint32_t i2c_itf_data_s::i2c_cmd_index

Number of commands in i2c_cmd_seq.

Referenced by __pi_i2c_open().

pi_freq_cb_t i2c_itf_data_s::i2c_freq_cb

Callback associated to frequency changes.

Referenced by __pi_i2c_close(), and __pi_i2c_open().

uint8_t i2c_itf_data_s::i2c_stop_send
uint8_t i2c_itf_data_s::i2c_stop_seq[__PI_I2C_STOP_CMD_SIZE]

Command STOP sequence.

Referenced by __pi_i2c_open(), and __pi_i2c_send_stop_cmd().

uint8_t i2c_itf_data_s::nb_events

Number of events received.

Referenced by __pi_i2c_handler(), and __pi_i2c_open().

uint32_t i2c_itf_data_s::nb_open

Number of devices opened.

Referenced by __pi_i2c_close(), and __pi_i2c_open().