VSF Documented
|
#include "hal/vsf_hal_cfg.h"
#include "hal/vsf_hal.h"
#include "hal/driver/common/pwm/pwm_template.inc"
Macros | |
#define | __VSF_HAL_TIMER_GPIO_PWM_CLASS_IMPLEMENT |
#define | VSF_TIMER_GPIO_CFG_PROTECT_LEVEL interrupt |
#define | __vsf_timer_gpio_protect vsf_protect(VSF_TIMER_GPIO_CFG_PROTECT_LEVEL) |
#define | __vsf_timer_gpio_unprotect vsf_unprotect(VSF_TIMER_GPIO_CFG_PROTECT_LEVEL) |
#define | VSF_TIMER_GPIO_MULTI_PWM_CFG_MULTI_CLASS VSF_TIMER_GPIO_PWM_CFG_MULTI_CLASS |
#define | VSF_TIMER_GPIO_SINGLE_PWM_CFG_MULTI_CLASS VSF_TIMER_GPIO_PWM_CFG_MULTI_CLASS |
#define | VSF_HAL_TEMPLATE_IMP_EXTERN_OP ENABLED |
#define | VSF_PWM_CFG_IMP_PREFIX vsf_timer_gpio_multi |
#define | VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_TIMER_GPIO_MULTI |
#define | VSF_PWM_CFG_IMP_EXTERN_OP ENABLED |
#define | VSF_PWM_CFG_IMP_PREFIX vsf_timer_gpio_single |
#define | VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_TIMER_GPIO_SINGLE |
#define __VSF_HAL_TIMER_GPIO_PWM_CLASS_IMPLEMENT |
#define VSF_TIMER_GPIO_CFG_PROTECT_LEVEL interrupt |
#define __vsf_timer_gpio_protect vsf_protect(VSF_TIMER_GPIO_CFG_PROTECT_LEVEL) |
#define __vsf_timer_gpio_unprotect vsf_unprotect(VSF_TIMER_GPIO_CFG_PROTECT_LEVEL) |
#define VSF_TIMER_GPIO_MULTI_PWM_CFG_MULTI_CLASS VSF_TIMER_GPIO_PWM_CFG_MULTI_CLASS |
#define VSF_TIMER_GPIO_SINGLE_PWM_CFG_MULTI_CLASS VSF_TIMER_GPIO_PWM_CFG_MULTI_CLASS |
#define VSF_HAL_TEMPLATE_IMP_EXTERN_OP ENABLED |
#define VSF_PWM_CFG_IMP_PREFIX vsf_timer_gpio_multi |
#define VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_TIMER_GPIO_MULTI |
#define VSF_PWM_CFG_IMP_EXTERN_OP ENABLED |
#define VSF_PWM_CFG_IMP_PREFIX vsf_timer_gpio_single |
#define VSF_PWM_CFG_IMP_UPCASE_PREFIX VSF_TIMER_GPIO_SINGLE |
vsf_err_t vsf_timer_gpio_multi_pwm_init | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr, |
vsf_pwm_cfg_t * | cfg_ptr | ||
) |
void vsf_timer_gpio_multi_pwm_fini | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr | ) |
fsm_rt_t vsf_timer_gpio_multi_pwm_enable | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr | ) |
fsm_rt_t vsf_timer_gpio_multi_pwm_disable | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr | ) |
vsf_err_t vsf_timer_gpio_multi_pwm_set | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr, |
uint8_t | channel, | ||
uint32_t | period, | ||
uint32_t | pulse | ||
) |
uint32_t vsf_timer_gpio_multi_pwm_get_freq | ( | vsf_timer_gpio_multi_pwm_t * | pwm_ptr | ) |
vsf_err_t vsf_timer_gpio_single_pwm_init | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr, |
vsf_pwm_cfg_t * | cfg_ptr | ||
) |
void vsf_timer_gpio_single_pwm_fini | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr | ) |
fsm_rt_t vsf_timer_gpio_single_pwm_enable | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr | ) |
fsm_rt_t vsf_timer_gpio_single_pwm_disable | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr | ) |
vsf_err_t vsf_timer_gpio_single_pwm_set | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr, |
uint8_t | channel, | ||
uint32_t | period, | ||
uint32_t | pulse | ||
) |
uint32_t vsf_timer_gpio_single_pwm_get_freq | ( | vsf_timer_gpio_single_pwm_t * | pwm_ptr | ) |