FreeRTOS port on GAP8/RISC-V
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
gap8/pmsis/include/pmsis/implem/hal/udma/udma_i2c.h File Reference

Functions

static void i2c_udma_channel_set (uint32_t device_id, udma_channel_e channel, uint32_t l2buf, uint32_t size, uint32_t cfg)
 
static void i2c_status_set (uint32_t device_id, uint32_t status)
 
static uint32_t i2c_status_get (uint32_t device_id)
 
static void i2c_setup_set (uint32_t device_id, uint32_t setup)
 
static uint32_t i2c_setup_get (uint32_t device_id)
 
static uint32_t hal_i2c_busy_get (uint32_t device_id)
 
static void hal_i2c_arbitration_set (uint32_t device_id, uint8_t value)
 
static uint32_t hal_i2c_arbitration_get (uint32_t device_id)
 
static void hal_i2c_reset_set (uint32_t device_id, uint8_t value)
 
static uint32_t hal_i2c_do_reset_get (uint32_t device_id)
 
static void hal_i2c_enqueue (uint32_t device_id, uint32_t channel, uint32_t l2buf, uint32_t size, uint32_t cfg)
 

Function Documentation

static uint32_t hal_i2c_arbitration_get ( uint32_t  device_id)
inlinestatic
static void hal_i2c_arbitration_set ( uint32_t  device_id,
uint8_t  value 
)
inlinestatic
static uint32_t hal_i2c_busy_get ( uint32_t  device_id)
inlinestatic

STATUS.

References I2C_STATUS_BUSY_MASK, and i2c_status_get().

Referenced by __pi_i2c_freq_cb().

static uint32_t hal_i2c_do_reset_get ( uint32_t  device_id)
inlinestatic
static void hal_i2c_enqueue ( uint32_t  device_id,
uint32_t  channel,
uint32_t  l2buf,
uint32_t  size,
uint32_t  cfg 
)
inlinestatic
static void hal_i2c_reset_set ( uint32_t  device_id,
uint8_t  value 
)
inlinestatic

SETUP.

References I2C_SETUP_DO_RST, and i2c_setup_set().

static uint32_t i2c_setup_get ( uint32_t  device_id)
inlinestatic

References hal_read32(), and i2c.

Referenced by hal_i2c_do_reset_get().

static void i2c_setup_set ( uint32_t  device_id,
uint32_t  setup 
)
inlinestatic

References hal_write32(), and i2c.

Referenced by hal_i2c_reset_set().

static uint32_t i2c_status_get ( uint32_t  device_id)
inlinestatic
static void i2c_status_set ( uint32_t  device_id,
uint32_t  status 
)
inlinestatic

References hal_write32(), and i2c.

Referenced by hal_i2c_arbitration_set().

static void i2c_udma_channel_set ( uint32_t  device_id,
udma_channel_e  channel,
uint32_t  l2buf,
uint32_t  size,
uint32_t  cfg 
)
inlinestatic

References i2c, and udma_enqueue_channel().

Referenced by hal_i2c_enqueue().