VSF Documented
|
#include "../driver.h"
#include "hal/vsf_hal.h"
#include "hal/driver/AIC/AIC8800/vendor/plf/aic8800/src/driver/pmic/pmic_api.h"
#include "hal/driver/AIC/AIC8800/vendor/plf/aic8800/src/driver/sysctrl/sysctrl_api.h"
#include "hal/driver/AIC/AIC8800/vendor/plf/aic8800/src/driver/ticker/reg_timer.h"
#include "hal/driver/common/timer/timer_template.inc"
Data Structures | |
struct | AIC_TIM_REG_T |
struct | vsf_hw_timer_const_t |
struct | vsf_hw_timer_t |
Macros | |
#define | VSF_HW_TIMER_CFG_MULTI_CLASS VSF_TIMER_CFG_MULTI_CLASS |
#define | TIMER_CLOCK_FREQ (26000000U) |
#define | VSF_TIMER_CFG_CAPABILITY_IRQ_MASK VSF_TIMER_IRQ_ALL_BITS_MASK |
#define | VSF_TIMER_CFG_CAPABILITY_TIMER_BITLEN 32 |
#define | VSF_TIMER_CFG_CAPABILITY_SUPPORT_PWM 0 |
#define | VSF_TIMER_CFG_CAPABILITY_PWM_CHANNEL_CNT 0 |
#define | VSF_TIMER_CFG_IMP_PREFIX vsf_hw |
#define | VSF_TIMER_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define | VSF_TIMER_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct AIC_TIM_REG_T | AIC_TIM_REG_T |
typedef struct vsf_hw_timer_const_t | vsf_hw_timer_const_t |
typedef struct vsf_hw_timer_t | vsf_hw_timer_t |
Functions | |
vsf_err_t | vsf_hw_timer_init (vsf_hw_timer_t *timer_ptr, vsf_timer_cfg_t *cfg_ptr) |
void | vsf_hw_timer_fini (vsf_hw_timer_t *timer_ptr) |
fsm_rt_t | vsf_hw_timer_enable (vsf_hw_timer_t *timer_ptr) |
fsm_rt_t | vsf_hw_timer_disable (vsf_hw_timer_t *timer_ptr) |
void | vsf_hw_timer_irq_enable (vsf_hw_timer_t *timer_ptr, vsf_timer_irq_mask_t irq_mask) |
void | vsf_hw_timer_irq_disable (vsf_hw_timer_t *timer_ptr, vsf_timer_irq_mask_t irq_mask) |
vsf_err_t | vsf_hw_timer_set_period (vsf_hw_timer_t *timer_ptr, uint32_t period) |
#define VSF_HW_TIMER_CFG_MULTI_CLASS VSF_TIMER_CFG_MULTI_CLASS |
#define TIMER_CLOCK_FREQ (26000000U) |
#define VSF_TIMER_CFG_CAPABILITY_IRQ_MASK VSF_TIMER_IRQ_ALL_BITS_MASK |
#define VSF_TIMER_CFG_CAPABILITY_TIMER_BITLEN 32 |
#define VSF_TIMER_CFG_CAPABILITY_SUPPORT_PWM 0 |
#define VSF_TIMER_CFG_CAPABILITY_PWM_CHANNEL_CNT 0 |
#define VSF_TIMER_CFG_IMP_PREFIX vsf_hw |
#define VSF_TIMER_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define VSF_TIMER_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct AIC_TIM_REG_T AIC_TIM_REG_T |
typedef struct vsf_hw_timer_const_t vsf_hw_timer_const_t |
typedef struct vsf_hw_timer_t vsf_hw_timer_t |
vsf_err_t vsf_hw_timer_init | ( | vsf_hw_timer_t * | timer_ptr, |
vsf_timer_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_timer_fini | ( | vsf_hw_timer_t * | timer_ptr | ) |
fsm_rt_t vsf_hw_timer_enable | ( | vsf_hw_timer_t * | timer_ptr | ) |
fsm_rt_t vsf_hw_timer_disable | ( | vsf_hw_timer_t * | timer_ptr | ) |
void vsf_hw_timer_irq_enable | ( | vsf_hw_timer_t * | timer_ptr, |
vsf_timer_irq_mask_t | irq_mask | ||
) |
void vsf_hw_timer_irq_disable | ( | vsf_hw_timer_t * | timer_ptr, |
vsf_timer_irq_mask_t | irq_mask | ||
) |
vsf_err_t vsf_hw_timer_set_period | ( | vsf_hw_timer_t * | timer_ptr, |
uint32_t | period | ||
) |