FreeRTOS port on GAP8/RISC-V
|
Enumerations | |
enum | pi_i2c_mode_e |
Functions | |
static void | hal_udma_i2c_rx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_i2c_rx_dest_get (uint32_t device_id) |
static void | hal_udma_i2c_tx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_i2c_tx_dest_get (uint32_t device_id) |
static void | hal_udma_i2c_cmd_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_i2c_cmd_dest_get (uint32_t device_id) |
static void | hal_udma_i2c_slave_rx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_i2c_slave_rx_dest_get (uint32_t device_id) |
static void | hal_udma_i2c_slave_tx_dest_set (uint32_t device_id, int32_t udma_chan_id) |
static uint32_t | hal_udma_i2c_slave_tx_dest_get (uint32_t device_id) |
static uint32_t | hal_udma_i2c_get_event_by_id (int device_id, int event_id) |
static void | hal_udma_i2c_set_event_by_id (int device_id, int event_id) |
static void | hal_udma_i2c_clr_event_by_id (int device_id, int event_id) |
static void | hal_udma_i2c_clr_event_mask (int device_id, uint32_t mask) |
static uint32_t | hal_udma_i2c_get_event (int device_id) |
static void | hal_udma_i2c_enqueue (int device_id, void *addr, uint32_t size, udma_channel_e channel) |
static uint32_t | hal_udma_i2c_get_bytes_left (int device_id, udma_channel_e channel) |
static void | hal_udma_i2c_channel_stop (int device_id, udma_channel_e channel) |
static void | hal_udma_i2c_slave_channel_stop (int device_id, udma_channel_e channel) |
static void | hal_udma_i2c_slave_enqueue (int device_id, void *addr, uint32_t size, udma_channel_e channel) |
#define __I2C_NACK_STOP |
#define CMD_FOLL_ADDR | ( | match_id, | |
push_en, | |||
addr_10_bit, | |||
slave_addr, | |||
mask, | |||
sof, | |||
eof | |||
) |
Referenced by __pi_i2c_slave_open().
#define I2C_CHAN_ADDR_REG |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CHAN_CFG_REG |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CHAN_SIZE_REG |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CMD_EVENT | ( | T | ) |
#define I2C_CMD_LEAD_SEND_IMM | ( | T | ) |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_w_r_buf().
#define I2C_CMD_LEAD_SEND_IMM_ADDR | ( | IS_10BITS, | |
T | |||
) |
Referenced by __i2c_open_prepare_read_buf(), __i2c_open_prepare_w_r_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CMD_LEAD_START | ( | T | ) |
#define I2C_CMD_MISC_RECEIVE | ( | T | ) |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_w_r_buf().
#define I2C_CMD_MISC_RECEIVE_LAST | ( | T | ) |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_w_r_buf().
#define I2C_CMD_MISC_SEND | ( | T | ) |
Referenced by __i2c_open_prepare_w_r_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CMD_MISC_WAIT | ( | T | ) |
Referenced by __i2c_open_prepare_read_buf(), and __i2c_open_prepare_write_buf().
#define I2C_CMD_NOP | ( | T | ) |
#define I2C_CMD_RPT | ( | T | ) |
#define I2C_CMD_STOP | ( | T | ) |
#define I2C_CMD_TIMING | ( | T | ) |
Referenced by __i2c_prepare_timing(), and __i2c_slave_prepare_timing().
#define I2C_CMD_UDMA_RX_CHAN_CFG | ( | T | ) |
Referenced by __i2c_open_prepare_read_buf().
#define I2C_CMD_UDMA_TX_CHAN_CFG | ( | T | ) |
Referenced by __i2c_open_prepare_write_buf().
#define I2C_FLAG_CMD_EVENT_I |
Referenced by __pi_i2c_open(), and __pi_i2c_slave_open().
#define I2C_FLAG_FOLL_PURGE_EVENT_O |
Referenced by __pi_i2c_slave_handle_error(), and __pi_i2c_slave_unlock().
#define I2C_FLAG_FOLL_UNLOCK_EVENT_O |
Referenced by __pi_i2c_slave_handle_error(), and __pi_i2c_slave_unlock().
#define I2C_FLAG_PRESC_DIV10_EVENT_O |
Referenced by __pi_i2c_open(), and __pi_i2c_slave_open().
#define I2C_FLAG_PURGE_EVENT_O |
Referenced by __pi_i2c_handle_error().
#define I2C_FLAG_SOFT_RESET_EVENT |
#define I2C_FLAG_UNLOCK_EVENT_O |
Referenced by __pi_i2c_handle_error().
#define I2C_STATUS_ERROR_ARLO_EVENT |
Referenced by __pi_i2c_handle_error().
#define I2C_STATUS_ERROR_FRAMING_EVENT |
Referenced by __pi_i2c_handle_error().
#define I2C_STATUS_ERROR_NACK_EVENT |
Referenced by __pi_i2c_handle_error().
#define I2C_STATUS_FOLL_EOF_RCV_EVENT |
Referenced by __pi_i2c_slave_unlock().
#define I2C_STATUS_FOLL_EOF_SND_EVENT |
Referenced by __pi_i2c_slave_unlock().
#define I2C_STATUS_FOLL_ERROR_ARLO_EVENT |
Referenced by __pi_i2c_slave_handle_error().
#define I2C_STATUS_FOLL_ERROR_FRAMING_EVENT |
Referenced by __pi_i2c_slave_handle_error().
enum pi_i2c_mode_e |
|
inlinestatic |
References CMD_CHANNEL, hal_udma_core_lin_get(), hal_udma_i2c_cmd_dest_get(), hal_udma_i2c_rx_dest_get(), hal_udma_i2c_tx_dest_get(), RX_CHANNEL, TX_CHANNEL, udma_core_lin_addrgen_cfg_ctrl_set(), and UDMA_CORE_LIN_ADDRGEN_CFG_CTRL_STOP_BIT.
Referenced by __pi_i2c_handle_error(), and __pi_i2c_timeout_abort().
|
inlinestatic |
set value of event in i2c event register
References udma_i2c, and udma_i2c_status_reg_idx_set().
Referenced by __pi_i2c_open(), and __pi_i2c_slave_open().
|
inlinestatic |
clr all bits in the mask
References udma_i2c, and udma_i2c_status_reg_idx_set().
Referenced by __pi_i2c_handle_error(), __pi_i2c_slave_handle_error(), __pi_i2c_slave_unlock(), and __pi_i2c_timeout_abort().
|
inlinestatic |
References udma_i2c, and udma_i2c_udma_cmd_dest_reg_idx_get().
Referenced by hal_udma_i2c_channel_stop(), hal_udma_i2c_enqueue(), hal_udma_i2c_get_bytes_left(), hal_udma_i2c_slave_channel_stop(), and hal_udma_i2c_slave_enqueue().
|
inlinestatic |
CMD_DEST Register.
References udma_i2c, and udma_i2c_udma_cmd_dest_reg_idx_set().
Referenced by __pi_i2c_open(), and __pi_i2c_slave_open().
|
inlinestatic |
References CMD_CHANNEL, hal_udma_core_lin_enqueue(), hal_udma_core_lin_get(), hal_udma_i2c_cmd_dest_get(), hal_udma_i2c_rx_dest_get(), hal_udma_i2c_tx_dest_get(), RX_CHANNEL, and TX_CHANNEL.
Referenced by __pi_i2c_open(), __pi_i2c_read(), __pi_i2c_send_request_from_irq(), __pi_i2c_slave_open(), __pi_i2c_write(), __pi_i2c_write_dual(), and __pi_i2c_write_read().
|
inlinestatic |
|
inlinestatic |
References udma_i2c, and udma_i2c_status_reg_idx_get().
|
inlinestatic |
get_current value of event in i2c event register
References udma_i2c, and udma_i2c_status_reg_idx_get().
Referenced by __pi_i2c_handle_error(), __pi_i2c_open(), __pi_i2c_slave_handle_error(), and __pi_i2c_slave_open().
|
inlinestatic |
References udma_i2c, and udma_i2c_lead_udma_rx_dest_reg_idx_get().
Referenced by hal_udma_i2c_channel_stop(), and hal_udma_i2c_enqueue().
|
inlinestatic |
RX_DEST Register.
References udma_i2c, and udma_i2c_lead_udma_rx_dest_reg_idx_set().
Referenced by __pi_i2c_open().
|
inlinestatic |
set value of event in i2c event register
References udma_i2c, udma_i2c_status_reg_idx_get(), and udma_i2c_status_reg_idx_set().
Referenced by __pi_i2c_open(), and __pi_i2c_slave_open().
|
inlinestatic |
References CMD_CHANNEL, hal_udma_core_lin_get(), hal_udma_i2c_cmd_dest_get(), hal_udma_i2c_slave_rx_dest_get(), hal_udma_i2c_slave_tx_dest_get(), RX_CHANNEL, TX_CHANNEL, udma_core_lin_addrgen_cfg_ctrl_set(), and UDMA_CORE_LIN_ADDRGEN_CFG_CTRL_STOP_BIT.
Referenced by __pi_i2c_slave_stop_rx(), and __pi_i2c_slave_stop_tx().
|
inlinestatic |
|
inlinestatic |
References udma_i2c, and udma_i2c_foll_udma_rx_dest_reg_idx_get().
Referenced by hal_udma_i2c_get_bytes_left(), hal_udma_i2c_slave_channel_stop(), and hal_udma_i2c_slave_enqueue().
|
inlinestatic |
SLAVE RX_DEST Register.
References udma_i2c, and udma_i2c_foll_udma_rx_dest_reg_idx_set().
Referenced by __pi_i2c_slave_open().
|
inlinestatic |
References udma_i2c, and udma_i2c_foll_udma_tx_dest_reg_idx_get().
Referenced by hal_udma_i2c_get_bytes_left(), hal_udma_i2c_slave_channel_stop(), and hal_udma_i2c_slave_enqueue().
|
inlinestatic |
SLAVE TX_DEST Register.
References udma_i2c, and udma_i2c_foll_udma_tx_dest_reg_idx_set().
Referenced by __pi_i2c_slave_open().
|
inlinestatic |
References udma_i2c, and udma_i2c_lead_udma_tx_dest_reg_idx_get().
Referenced by hal_udma_i2c_channel_stop(), and hal_udma_i2c_enqueue().
|
inlinestatic |
TX_DEST Register.
References udma_i2c, and udma_i2c_lead_udma_tx_dest_reg_idx_set().
Referenced by __pi_i2c_open().