VSF Documented
|
#include "../driver.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/pwm/reg_pwm.h"
#include "./i_reg_pwm.h"
#include "hal/driver/common/pwm/pwm_template.inc"
Data Structures | |
struct | vsf_hw_pwm_t |
Macros | |
#define | VSF_HW_PWM_CFG_MULTI_CLASS VSF_PWM_CFG_MULTI_CLASS |
#define | PWM_PWM_TMR_SEL(n) (((n) & 3) << 16) |
#define | PWM_MAX_FREQ (26ul * 1000 * 1000) |
#define | VSF_PWM_CFG_CAPABILITY_MIN_FREQ (PWM_MAX_FREQ / 255) |
#define | VSF_PWM_CFG_CAPABILITY_MAX_FREQ (PWM_MAX_FREQ) |
#define | VSF_PWM_CFG_IMP_PREFIX vsf_hw |
#define | VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define | VSF_PWM_CFG_IMP_LV0(__IDX, __HAL_OP) |
Typedefs | |
typedef struct vsf_hw_pwm_t | vsf_hw_pwm_t |
Functions | |
vsf_err_t | vsf_hw_pwm_init (vsf_hw_pwm_t *hw_pwm_ptr, vsf_pwm_cfg_t *cfg_ptr) |
void | vsf_hw_pwm_fini (vsf_hw_pwm_t *hw_pwm_ptr) |
fsm_rt_t | vsf_hw_pwm_enable (vsf_hw_pwm_t *hw_pwm_ptr) |
fsm_rt_t | vsf_hw_pwm_disable (vsf_hw_pwm_t *hw_pwm_ptr) |
vsf_err_t | vsf_hw_pwm_set (vsf_hw_pwm_t *hw_pwm_ptr, uint8_t channel, uint32_t period, uint32_t pulse) |
uint32_t | vsf_hw_pwm_get_freq (vsf_hw_pwm_t *hw_pwm_ptr) |
#define VSF_HW_PWM_CFG_MULTI_CLASS VSF_PWM_CFG_MULTI_CLASS |
#define PWM_PWM_TMR_SEL | ( | n | ) | (((n) & 3) << 16) |
#define PWM_MAX_FREQ (26ul * 1000 * 1000) |
#define VSF_PWM_CFG_CAPABILITY_MIN_FREQ (PWM_MAX_FREQ / 255) |
#define VSF_PWM_CFG_CAPABILITY_MAX_FREQ (PWM_MAX_FREQ) |
#define VSF_PWM_CFG_IMP_PREFIX vsf_hw |
#define VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_HW |
#define VSF_PWM_CFG_IMP_LV0 | ( | __IDX, | |
__HAL_OP | |||
) |
typedef struct vsf_hw_pwm_t vsf_hw_pwm_t |
vsf_err_t vsf_hw_pwm_init | ( | vsf_hw_pwm_t * | hw_pwm_ptr, |
vsf_pwm_cfg_t * | cfg_ptr | ||
) |
void vsf_hw_pwm_fini | ( | vsf_hw_pwm_t * | hw_pwm_ptr | ) |
fsm_rt_t vsf_hw_pwm_enable | ( | vsf_hw_pwm_t * | hw_pwm_ptr | ) |
fsm_rt_t vsf_hw_pwm_disable | ( | vsf_hw_pwm_t * | hw_pwm_ptr | ) |
vsf_err_t vsf_hw_pwm_set | ( | vsf_hw_pwm_t * | hw_pwm_ptr, |
uint8_t | channel, | ||
uint32_t | period, | ||
uint32_t | pulse | ||
) |
uint32_t vsf_hw_pwm_get_freq | ( | vsf_hw_pwm_t * | hw_pwm_ptr | ) |