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

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)
 

Macro Definition Documentation

#define MUTEX

Function Documentation

void pi_i2c_close ( struct pi_device *  device)
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 
)
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 
)
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 
)