VSF Documented
|
#include "../driver.h"
#include "./kernel/vsf_kernel.h"
#include "../vendor/plf/aic8800/src/driver/gpadc/gpadc_api.h"
#include "../vendor/plf/aic8800/src/driver/aic1000lite_regs/aic1000Lite_iomux.h"
#include "../vendor/plf/aic8800/src/driver/aic1000lite_regs/aic1000Lite_msadc.h"
#include "../vendor/plf/aic8800/src/driver/aic1000lite_regs/aic1000Lite_analog_reg.h"
#include "../vendor/plf/aic8800/src/driver/aic1000lite_regs/aic1000Lite_rtc_core.h"
#include "../vendor/plf/aic8800/src/driver/aic1000lite_regs/aic1000Lite_sys_ctrl.h"
#include "../vendor/plf/aic8800/src/driver/pmic/pmic_api.h"
#include "hal/driver/common/adc/adc_template.inc"
Data Structures | |
struct | vsf_hw_adc_request_t |
struct | vsf_hw_adc_t |
Macros | |
#define | __VSF_EDA_CLASS_INHERIT__ |
#define | VSF_HW_ADC_CFG_MULTI_CLASS VSF_ADC_CFG_MULTI_CLASS |
#define | VSF_AIC8800_ADC_CFG_EDA_PRIORITY vsf_prio_0 |
#define | VSF_ADC_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define | VSF_ADC_CFG_IMP_PREFIX vsf_hw |
#define | VSF_ADC_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define | VSF_ADC_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct vsf_hw_adc_request_t | vsf_hw_adc_request_t |
typedef struct vsf_hw_adc_t | vsf_hw_adc_t |
Functions | |
vsf_err_t | vsf_hw_adc_init (vsf_hw_adc_t *hw_adc_ptr, vsf_adc_cfg_t *cfg_ptr) |
void | vsf_hw_adc_fini (vsf_hw_adc_t *hw_adc_ptr) |
fsm_rt_t | vsf_hw_adc_enable (vsf_hw_adc_t *hw_adc_ptr) |
fsm_rt_t | vsf_hw_adc_disable (vsf_hw_adc_t *hw_adc_ptr) |
void | vsf_hw_adc_irq_enable (vsf_hw_adc_t *hw_adc_ptr, vsf_adc_irq_mask_t irq_mask) |
void | vsf_hw_adc_irq_disable (vsf_hw_adc_t *hw_adc_ptr, vsf_adc_irq_mask_t irq_mask) |
vsf_adc_status_t | vsf_hw_adc_status (vsf_hw_adc_t *hw_adc_ptr) |
vsf_err_t | vsf_hw_adc_channel_request_once (vsf_hw_adc_t *hw_adc_ptr, vsf_adc_channel_cfg_t *channel_cfg_ptr, void *buffer_ptr) |
vsf_err_t | vsf_hw_adc_channel_config (vsf_hw_adc_t *hw_adc_ptr, vsf_adc_channel_cfg_t *channel_cfgs_ptr, uint32_t channel_cfgs_cnt) |
vsf_err_t | vsf_hw_adc_channel_request (vsf_hw_adc_t *hw_adc_ptr, void *buffer_ptr, uint_fast32_t count) |
vsf_adc_capability_t | vsf_hw_adc_capability (vsf_hw_adc_t *adc_ptr) |
#define __VSF_EDA_CLASS_INHERIT__ |
#define VSF_HW_ADC_CFG_MULTI_CLASS VSF_ADC_CFG_MULTI_CLASS |
#define VSF_AIC8800_ADC_CFG_EDA_PRIORITY vsf_prio_0 |
#define VSF_ADC_CFG_REIMPLEMENT_API_CAPABILITY ENABLED |
#define VSF_ADC_CFG_IMP_PREFIX vsf_hw |
#define VSF_ADC_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define VSF_ADC_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct vsf_hw_adc_request_t vsf_hw_adc_request_t |
typedef struct vsf_hw_adc_t vsf_hw_adc_t |
vsf_err_t vsf_hw_adc_init | ( | vsf_hw_adc_t * | hw_adc_ptr, |
vsf_adc_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_adc_fini | ( | vsf_hw_adc_t * | hw_adc_ptr | ) |
fsm_rt_t vsf_hw_adc_enable | ( | vsf_hw_adc_t * | hw_adc_ptr | ) |
fsm_rt_t vsf_hw_adc_disable | ( | vsf_hw_adc_t * | hw_adc_ptr | ) |
void vsf_hw_adc_irq_enable | ( | vsf_hw_adc_t * | hw_adc_ptr, |
vsf_adc_irq_mask_t | irq_mask | ||
) |
void vsf_hw_adc_irq_disable | ( | vsf_hw_adc_t * | hw_adc_ptr, |
vsf_adc_irq_mask_t | irq_mask | ||
) |
vsf_adc_status_t vsf_hw_adc_status | ( | vsf_hw_adc_t * | hw_adc_ptr | ) |
vsf_err_t vsf_hw_adc_channel_request_once | ( | vsf_hw_adc_t * | hw_adc_ptr, |
vsf_adc_channel_cfg_t * | channel_cfg_ptr, | ||
void * | buffer_ptr | ||
) |
vsf_err_t vsf_hw_adc_channel_config | ( | vsf_hw_adc_t * | hw_adc_ptr, |
vsf_adc_channel_cfg_t * | channel_cfgs_ptr, | ||
uint32_t | channel_cfgs_cnt | ||
) |
vsf_err_t vsf_hw_adc_channel_request | ( | vsf_hw_adc_t * | hw_adc_ptr, |
void * | buffer_ptr, | ||
uint_fast32_t | count | ||
) |
vsf_adc_capability_t vsf_hw_adc_capability | ( | vsf_hw_adc_t * | adc_ptr | ) |