![]() |
NANO100_BSP V3.04.002
The Board Support Package for Nano100BN Series
|
NANO100 series PWM driver header file. More...
Go to the source code of this file.
Macros | |
#define | PWM_CHANNEL_NUM |
#define | PWM_CH0 |
#define | PWM_CH1 |
#define | PWM_CH2 |
#define | PWM_CH3 |
#define | PWM_CH_0_MASK |
#define | PWM_CH_1_MASK |
#define | PWM_CH_2_MASK |
#define | PWM_CH_3_MASK |
#define | PWM_CLK_DIV_1 |
#define | PWM_CLK_DIV_2 |
#define | PWM_CLK_DIV_4 |
#define | PWM_CLK_DIV_8 |
#define | PWM_CLK_DIV_16 |
#define | PWM_EDGE_ALIGNED |
#define | PWM_CENTER_ALIGNED |
#define | PWM_RISING_LATCH_INT_ENABLE |
#define | PWM_FALLING_LATCH_INT_ENABLE |
#define | PWM_RISING_FALLING_LATCH_INT_ENABLE |
#define | PWM_RISING_LATCH_INT_FLAG |
#define | PWM_FALLING_LATCH_INT_FLAG |
#define | PWM_RISING_FALLING_LATCH_INT_FLAG |
#define | PWM_RISING_LATCH_PDMA_ENABLE |
#define | PWM_FALLING_LATCH_PDMA_ENABLE |
#define | PWM_RISING_FALLING_LATCH_PDMA_ENABLE |
#define | PWM_CAP_PDMA_RFORDER_R |
#define | PWM_CAP_PDMA_RFORDER_F |
#define | PWM_ENABLE_OUTPUT_INVERTER(pwm, u32ChannelMask) |
This macro enable output inverter of specified channel(s) More... | |
#define | PWM_GET_CAPTURE_RISING_DATA(pwm, u32ChannelNum) |
This macro get captured rising data. More... | |
#define | PWM_GET_CAPTURE_FALLING_DATA(pwm, u32ChannelNum) |
This macro get captured falling data. More... | |
#define | PWM_SET_PRESCALER(pwm, u32ChannelNum, u32Prescaler) |
This macro set the prescaler of the selected channel. More... | |
#define | PWM_SET_DIVIDER(pwm, u32ChannelNum, u32Divider) |
This macro set the divider of the selected channel. More... | |
#define | PWM_SET_CMR(pwm, u32ChannelNum, u32CMR) |
This macro set the duty of the selected channel. More... | |
#define | PWM_SET_CNR(pwm, u32ChannelNum, u32CNR) |
This macro set the period of the selected channel. More... | |
Functions | |
uint32_t | PWM_ConfigOutputChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle) |
This function config PWM generator and get the nearest frequency in edge aligned auto-reload mode. More... | |
uint32_t | PWM_ConfigCaptureChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, uint32_t u32CaptureEdge) |
This function config PWM capture and get the nearest unit time. More... | |
void | PWM_Start (PWM_T *pwm, uint32_t u32ChannelMask) |
This function start PWM module. More... | |
void | PWM_Stop (PWM_T *pwm, uint32_t u32ChannelMask) |
This function stop PWM module. More... | |
void | PWM_ForceStop (PWM_T *pwm, uint32_t u32ChannelMask) |
This function stop PWM generation immediately by clear channel enable bit. More... | |
void | PWM_EnableCapture (PWM_T *pwm, uint32_t u32ChannelMask) |
This function enables PWM capture of selected channels. More... | |
void | PWM_DisableCapture (PWM_T *pwm, uint32_t u32ChannelMask) |
This function disables PWM capture of selected channels. More... | |
void | PWM_EnableOutput (PWM_T *pwm, uint32_t u32ChannelMask) |
This function enables PWM output generation of selected channels. More... | |
void | PWM_DisableOutput (PWM_T *pwm, uint32_t u32ChannelMask) |
This function disables PWM output generation of selected channels. More... | |
void | PWM_EnableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Duration) |
This function enable Dead zone of selected channel. More... | |
void | PWM_DisableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum) |
This function disable Dead zone of selected channel. More... | |
void | PWM_EnableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
This function enable capture interrupt of selected channel. More... | |
void | PWM_DisableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
This function disable capture interrupt of selected channel. More... | |
void | PWM_ClearCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
This function clear capture interrupt flag of selected channel. More... | |
uint32_t | PWM_GetCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function get capture interrupt flag of selected channel. More... | |
void | PWM_EnablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType) |
This function enable period interrupt of selected channel. More... | |
void | PWM_DisablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum) |
This function disable period interrupt of selected channel. More... | |
void | PWM_ClearPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function clear period interrupt of selected channel. More... | |
uint32_t | PWM_GetPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function get period interrupt of selected channel. More... | |
void | PWM_EnablePDMA (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32RisingFirst, uint32_t u32Mode) |
This function enable capture PDMA of selected channel. More... | |
void | PWM_DisablePDMA (PWM_T *pwm, uint32_t u32ChannelNum) |
This function disable capture PDMA of selected channel. More... | |
NANO100 series PWM driver header file.
Definition in file pwm.h.