FreeRTOS port on GAP8/RISC-V
|
Data Fields | |
struct pi_task * | hw_buffer [2] |
struct pi_task * | fifo_head |
struct pi_task * | fifo_tail |
struct i2c_pending_transfer_s * | pending |
uint32_t | nb_open |
uint32_t | i2c_cmd_index |
pi_freq_cb_t | i2c_freq_cb |
struct i2c_cs_data_s * | cs_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 |
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().
uint8_t i2c_itf_data_s::device_id |
I2C interface ID.
Referenced by __pi_i2c_close(), __pi_i2c_copy(), __pi_i2c_copy_exec_read(), __pi_i2c_copy_exec_write(), __pi_i2c_detect(), __pi_i2c_freq_cb(), __pi_i2c_open(), and __pi_i2c_send_stop_cmd().
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] |
RX + TX
Referenced by __pi_i2c_handler(), __pi_i2c_hw_fifo_empty(), __pi_i2c_hw_fifo_enqueue(), __pi_i2c_hw_fifo_pop(), and __pi_i2c_open().
uint32_t i2c_itf_data_s::i2c_cmd_index |
Number of commands in i2c_cmd_seq.
Referenced by __pi_i2c_open().
uint8_t i2c_itf_data_s::i2c_cmd_seq[__PI_I2C_CMD_BUFF_SIZE] |
Command sequence.
Referenced by __pi_i2c_copy_exec_read(), __pi_i2c_copy_exec_write(), __pi_i2c_detect(), __pi_i2c_handle_pending_transfer(), and __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 |
Set if a stop cmd seq should be sent.
Referenced by __pi_i2c_copy_exec_read(), __pi_i2c_copy_exec_write(), __pi_i2c_detect(), __pi_i2c_handle_pending_transfer(), __pi_i2c_handler(), __pi_i2c_open(), and __pi_i2c_send_stop_cmd().
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().
struct i2c_pending_transfer_s* i2c_itf_data_s::pending |
RX + TX.
Referenced by __pi_i2c_close(), __pi_i2c_copy_exec_read(), __pi_i2c_copy_exec_write(), __pi_i2c_detect(), __pi_i2c_handle_pending_transfer(), __pi_i2c_handler(), and __pi_i2c_open().