![]() |
Nano102_112 Series BSP
V3.03.002
The Board Support Package for Nano102_112 Series
|
Nano 102/112 series PWM driver source file. More...
#include "Nano1X2Series.h"
Go to the source code of this file.
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_EnableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
This function enable selected channel to trigger ADC. More... | |
void | PWM_DisableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum) |
This function disable selected channel to trigger ADC. More... | |
void | PWM_ClearADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
This function clear selected channel trigger ADC flag. More... | |
uint32_t | PWM_GetADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function get selected channel trigger ADC flag. 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_ClearDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function clears duty interrupt flag of selected channel. More... | |
uint32_t | PWM_GetDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
This function get duty 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... | |
Nano 102/112 series PWM driver source file.
Definition in file pwm.c.