FreeRTOS port on GAP8/RISC-V
|
Macros | |
#define | MUTEX |
Functions | |
void | pi_i2c_conf_init (pi_i2c_conf_t *conf) |
int | pi_i2c_open (struct pi_device *device) |
void | pi_i2c_close (struct pi_device *device) |
void | pi_i2c_ioctl (struct pi_device *device, uint32_t cmd, void *arg) |
int | pi_i2c_read (struct pi_device *device, uint8_t *rx_buff, int length, pi_i2c_xfer_flags_e flags) |
void | pi_i2c_read_async (struct pi_device *device, uint8_t *rx_buff, int length, pi_i2c_xfer_flags_e flags, pi_task_t *task) |
int | pi_i2c_write (struct pi_device *device, uint8_t *tx_data, int length, pi_i2c_xfer_flags_e flags) |
void | pi_i2c_write_async (struct pi_device *device, uint8_t *tx_data, int length, pi_i2c_xfer_flags_e flags, pi_task_t *task) |
int | pi_i2c_get_request_status (pi_task_t *task) |
int | pi_i2c_detect (struct pi_device *device, struct pi_i2c_conf *conf, uint8_t *rx_data) |
#define MUTEX |
void pi_i2c_close | ( | struct pi_device * | device | ) |
References __pi_i2c_close(), i2c_cs_data_s::device_id, and I2C_TRACE.
void pi_i2c_conf_init | ( | pi_i2c_conf_t * | conf | ) |
References __pi_i2c_conf_init().
int pi_i2c_detect | ( | struct pi_device * | device, |
struct pi_i2c_conf * | conf, | ||
uint8_t * | rx_data | ||
) |
References __pi_i2c_detect(), I2C_TRACE, pi_task_block(), pi_task_destroy(), and pi_task_wait_on().
int pi_i2c_get_request_status | ( | pi_task_t * | task | ) |
Referenced by pi_i2c_read(), and pi_i2c_write().
void pi_i2c_ioctl | ( | struct pi_device * | device, |
uint32_t | cmd, | ||
void * | arg | ||
) |
References __pi_i2c_ioctl(), and I2C_TRACE.
int pi_i2c_open | ( | struct pi_device * | device | ) |
References __pi_i2c_open(), and I2C_TRACE.
int pi_i2c_read | ( | struct pi_device * | device, |
uint8_t * | rx_buff, | ||
int | length, | ||
pi_i2c_xfer_flags_e | flags | ||
) |
void pi_i2c_read_async | ( | struct pi_device * | device, |
uint8_t * | rx_buff, | ||
int | length, | ||
pi_i2c_xfer_flags_e | flags, | ||
pi_task_t * | task | ||
) |
References __pi_i2c_copy(), i2c_cs_data_s::device_id, I2C_TRACE, and RX_CHANNEL.
Referenced by pi_i2c_read(), and pi_i2c_read_timeout().
int pi_i2c_write | ( | struct pi_device * | device, |
uint8_t * | tx_data, | ||
int | length, | ||
pi_i2c_xfer_flags_e | flags | ||
) |
void pi_i2c_write_async | ( | struct pi_device * | device, |
uint8_t * | tx_data, | ||
int | length, | ||
pi_i2c_xfer_flags_e | flags, | ||
pi_task_t * | task | ||
) |
References __pi_i2c_copy(), i2c_cs_data_s::device_id, I2C_TRACE, and TX_CHANNEL.
Referenced by pi_i2c_write(), and pi_i2c_write_timeout().