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

Functions

void pi_i2c_slave_conf_init (pi_i2c_slave_conf_t *conf)
 
void pi_i2c_slave_conf_set_addr0 (struct pi_i2c_slave_conf *conf, uint16_t addr, uint8_t mask, uint8_t is_10_bit, uint8_t eof, uint8_t sof)
 
void pi_i2c_slave_conf_set_addr1 (struct pi_i2c_slave_conf *conf, uint16_t addr, uint8_t mask, uint8_t is_10_bit, uint8_t eof, uint8_t sof)
 
void pi_i2c_slave_set_rx_channel (void *handle, void *l2_addr, uint32_t size)
 
void pi_i2c_slave_set_tx_channel (void *handle, void *l2_addr, uint32_t size)
 
int pi_i2c_slave_open (struct pi_device *device)
 
void pi_i2c_slave_close (struct pi_device *device)
 
void pi_i2c_slave_unlock (void *handle, int is_rd)
 
void pi_i2c_slave_set_rx (void *handle, void *l2_addr, uint32_t size)
 
void pi_i2c_slave_set_tx (void *handle, void *l2_addr, uint32_t size)
 
void pi_i2c_slave_stop_rx (void *handle)
 
void pi_i2c_slave_stop_tx (void *handle)
 

Function Documentation

void pi_i2c_slave_close ( struct pi_device *  device)
void pi_i2c_slave_conf_init ( pi_i2c_slave_conf_t *  conf)
void pi_i2c_slave_conf_set_addr0 ( struct pi_i2c_slave_conf *  conf,
uint16_t  addr,
uint8_t  mask,
uint8_t  is_10_bit,
uint8_t  eof,
uint8_t  sof 
)

accessors

void pi_i2c_slave_conf_set_addr1 ( struct pi_i2c_slave_conf *  conf,
uint16_t  addr,
uint8_t  mask,
uint8_t  is_10_bit,
uint8_t  eof,
uint8_t  sof 
)
int pi_i2c_slave_open ( struct pi_device *  device)

device func

References __pi_i2c_slave_open().

void pi_i2c_slave_set_rx ( void *  handle,
void *  l2_addr,
uint32_t  size 
)
void pi_i2c_slave_set_rx_channel ( void *  handle,
void *  l2_addr,
uint32_t  size 
)
void pi_i2c_slave_set_tx ( void *  handle,
void *  l2_addr,
uint32_t  size 
)
void pi_i2c_slave_set_tx_channel ( void *  handle,
void *  l2_addr,
uint32_t  size 
)
void pi_i2c_slave_stop_rx ( void *  handle)
void pi_i2c_slave_stop_tx ( void *  handle)
void pi_i2c_slave_unlock ( void *  handle,
int  is_rd 
)