FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap9/pmsis/drivers/udma/i2c/i2c_internal.c File Reference

Functions

 __attribute__ ((section(".text")))
 
static void __pi_i2c_send_request_from_irq (struct i2c_itf_data *itf_data, pi_task_t *task)
 
static void __pi_i2c_handle_error (int device_id, struct i2c_itf_data *itf_data)
 
static void __i2c_open_prepare_write_buf (uint32_t *write_buffer, struct pi_i2c_conf *conf)
 internal helper function for preparing write command buffer More...
 
static void __i2c_open_prepare_read_buf (uint32_t *read_buffer, struct pi_i2c_conf *conf)
 internal helper function for preparing read command buffer More...
 
static void __i2c_open_prepare_w_r_buf (uint32_t *w_r_buffer, struct pi_i2c_conf *conf)
 internal helper function for preparing write&read command buffer More...
 
int __pi_i2c_open (struct i2c_slave_data **slave_data, struct pi_i2c_conf *conf)
 
void __pi_i2c_close (struct i2c_slave_data *slave_data)
 
static void __pi_i2c_baudrate_set (struct i2c_itf_data *driver_data)
 
void __pi_i2c_timeout_abort (void *arg)
 
static void __pi_i2c_udma_timeout_rx_set (struct i2c_itf_data *driver_data, uint8_t timeout_id)
 
static void __pi_i2c_udma_timeout_tx_set (struct i2c_itf_data *driver_data, uint8_t timeout_id)
 
void __pi_i2c_ioctl (struct i2c_slave_data *slave_data, uint32_t cmd, void *arg)
 

Variables

struct i2c_itf_data__global_i2c_itf_data [UDMA_NB_I2C]
 

Function Documentation

__attribute__ ( (section(".text"))  )
static void __i2c_open_prepare_w_r_buf ( uint32_t *  w_r_buffer,
struct pi_i2c_conf *  conf 
)
inlinestatic
static void __pi_i2c_baudrate_set ( struct i2c_itf_data driver_data)
static

Referenced by __pi_i2c_ioctl().

static void __pi_i2c_udma_timeout_rx_set ( struct i2c_itf_data driver_data,
uint8_t  timeout_id 
)
static

References i2c_itf_data::rx_timeout_id.

Referenced by __pi_i2c_ioctl().

static void __pi_i2c_udma_timeout_tx_set ( struct i2c_itf_data driver_data,
uint8_t  timeout_id 
)
static

References i2c_itf_data::tx_timeout_id.

Referenced by __pi_i2c_ioctl().

Variable Documentation

struct i2c_itf_data* __global_i2c_itf_data[UDMA_NB_I2C]