|
VSF Documented
|
#include "../driver.h"#include "hal/vsf_hal.h"#include "../vendor/plf/aic8800/src/driver/sysctrl/reg_sysctrl.h"#include "../vendor/plf/aic8800/src/driver/sysctrl/sysctrl_api.h"#include "../vendor/plf/aic8800/src/driver/i2cm/reg_i2cm.h"#include "hal/driver/common/i2c/i2c_template.inc"Data Structures | |
| struct | vsf_hw_i2c_const_t |
| struct | vsf_hw_i2c_t |
Macros | |
| #define | VSF_HW_I2C_CFG_MULTI_CLASS VSF_I2C_CFG_MULTI_CLASS |
| #define | VSF_HW_I2C_REQEUST_BUFFER_SIZE 3 |
| #define | VSF_I2C_CFG_CAPABILITY_MAX_TRANSFER_SIZE 16 |
| #define | VSF_I2C_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
| #define | VSF_I2C_CFG_REIMPLEMENT_API_CTRL DISABLED |
| #define | VSF_I2C_CFG_IMP_PREFIX vsf_hw |
| #define | VSF_I2C_CFG_IMP_UPCASE_PREFIX VSF_HW |
| #define | VSF_I2C_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
| typedef struct vsf_hw_i2c_const_t | vsf_hw_i2c_const_t |
| typedef struct vsf_hw_i2c_t | vsf_hw_i2c_t |
| #define VSF_HW_I2C_CFG_MULTI_CLASS VSF_I2C_CFG_MULTI_CLASS |
| #define VSF_HW_I2C_REQEUST_BUFFER_SIZE 3 |
| #define VSF_I2C_CFG_CAPABILITY_MAX_TRANSFER_SIZE 16 |
| #define VSF_I2C_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
| #define VSF_I2C_CFG_REIMPLEMENT_API_CTRL DISABLED |
| #define VSF_I2C_CFG_IMP_PREFIX vsf_hw |
| #define VSF_I2C_CFG_IMP_UPCASE_PREFIX VSF_HW |
| #define VSF_I2C_CFG_IMP_LV0 | ( | __IDX, | |
| __HAL_OP | |||
| ) |
| typedef struct vsf_hw_i2c_const_t vsf_hw_i2c_const_t |
| typedef struct vsf_hw_i2c_t vsf_hw_i2c_t |
| vsf_err_t vsf_hw_i2c_init | ( | vsf_hw_i2c_t * | hw_i2c_ptr, |
| vsf_i2c_cfg_t * | cfg_ptr | ||
| ) |
| void vsf_hw_i2c_fini | ( | vsf_hw_i2c_t * | hw_i2c_ptr | ) |
| fsm_rt_t vsf_hw_i2c_enable | ( | vsf_hw_i2c_t * | hw_i2c_ptr | ) |
| fsm_rt_t vsf_hw_i2c_disable | ( | vsf_hw_i2c_t * | hw_i2c_ptr | ) |
| void vsf_hw_i2c_irq_enable | ( | vsf_hw_i2c_t * | hw_i2c_ptr, |
| vsf_i2c_irq_mask_t | irq_mask | ||
| ) |
| void vsf_hw_i2c_irq_disable | ( | vsf_hw_i2c_t * | hw_i2c_ptr, |
| vsf_i2c_irq_mask_t | irq_mask | ||
| ) |
| vsf_i2c_status_t vsf_hw_i2c_status | ( | vsf_hw_i2c_t * | hw_i2c_ptr | ) |
| fsm_rt_t vsf_hw_i2c_master_fifo_transfer | ( | vsf_hw_i2c_t * | hw_i2c_ptr, |
| uint16_t | address, | ||
| vsf_i2c_cmd_t | cmd, | ||
| uint_fast16_t | count, | ||
| uint8_t * | buffer_ptr, | ||
| vsf_i2c_cmd_t * | cur_cmd_ptr, | ||
| uint_fast16_t * | offset_ptr | ||
| ) |
| vsf_err_t vsf_hw_i2c_master_request | ( | vsf_hw_i2c_t * | hw_i2c_ptr, |
| uint16_t | address, | ||
| vsf_i2c_cmd_t | cmd, | ||
| uint_fast16_t | count, | ||
| uint8_t * | buffer | ||
| ) |
| uint_fast32_t vsf_hw_i2c_master_get_transferred_count | ( | vsf_hw_i2c_t * | hw_i2c_ptr | ) |
| uint_fast16_t vsf_hw_i2c_slave_fifo_transfer | ( | vsf_hw_i2c_t * | i2c_ptr, |
| bool | transmit_or_receive, | ||
| uint_fast16_t | count, | ||
| uint8_t * | buffer_ptr | ||
| ) |
| vsf_err_t vsf_hw_i2c_slave_request | ( | vsf_hw_i2c_t * | i2c_ptr, |
| bool | transmit_or_receive, | ||
| uint_fast16_t | count, | ||
| uint8_t * | buffer_ptr | ||
| ) |
| uint_fast16_t vsf_hw_i2c_slave_get_transferred_count | ( | vsf_hw_i2c_t * | i2c_ptr | ) |
| vsf_i2c_capability_t vsf_hw_i2c_capability | ( | vsf_hw_i2c_t * | i2c_ptr | ) |