![]() |
NANO103 BSP V3.01.004
The Board Support Package for Nano103 Series
|
Nano 103 PWM driver source file. More...
#include "Nano103.h"
Go to the source code of this file.
Functions | |
uint32_t | PWM_ConfigCaptureChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, uint32_t u32CaptureEdge) |
Configure PWM capture and get the nearest unit time. More... | |
uint32_t | PWM_ConfigOutputChannel (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle) |
This function Configure PWM generator and get the nearest frequency in edge aligned auto-reload mode. More... | |
void | PWM_Start (PWM_T *pwm, uint32_t u32ChannelMask) |
Start PWM module. More... | |
void | PWM_Stop (PWM_T *pwm, uint32_t u32ChannelMask) |
Stop PWM module. More... | |
void | PWM_ForceStop (PWM_T *pwm, uint32_t u32ChannelMask) |
Stop PWM generation immediately by clear channel enable bit. More... | |
void | PWM_EnableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Enable selected channel to trigger ADC. More... | |
void | PWM_DisableADCTrigger (PWM_T *pwm, uint32_t u32ChannelNum) |
Disable selected channel to trigger ADC. More... | |
void | PWM_ClearADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Clear selected channel trigger ADC flag. More... | |
uint32_t | PWM_GetADCTriggerFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get selected channel trigger ADC flag. More... | |
void | PWM_EnableFaultBrake (PWM_T *pwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u32BrakeSource) |
This function enable fault brake of selected channel(s) More... | |
void | PWM_EnableCapture (PWM_T *pwm, uint32_t u32ChannelMask) |
Enable capture of selected channel(s) More... | |
void | PWM_DisableCapture (PWM_T *pwm, uint32_t u32ChannelMask) |
Disable capture of selected channel(s) More... | |
void | PWM_EnableOutput (PWM_T *pwm, uint32_t u32ChannelMask) |
Enables PWM output generation of selected channel(s) More... | |
void | PWM_DisableOutput (PWM_T *pwm, uint32_t u32ChannelMask) |
Disables PWM output generation of selected channel(s) More... | |
void | PWM_EnableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Duration) |
Enable Dead zone of selected channel. More... | |
void | PWM_DisableDeadZone (PWM_T *pwm, uint32_t u32ChannelNum) |
Disable Dead zone of selected channel. More... | |
void | PWM_EnableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Enable capture interrupt of selected channel. More... | |
void | PWM_DisableCaptureInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Disable capture interrupt of selected channel. More... | |
void | PWM_ClearCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Clear capture interrupt of selected channel. More... | |
uint32_t | PWM_GetCaptureIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get capture interrupt of selected channel. More... | |
void | PWM_EnableDutyInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType) |
Enable duty interrupt of selected channel. More... | |
void | PWM_DisableDutyInt (PWM_T *pwm, uint32_t u32ChannelNum) |
Disable duty interrupt of selected channel. More... | |
void | PWM_ClearDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Clear duty interrupt flag of selected channel. More... | |
uint32_t | PWM_GetDutyIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get duty interrupt flag of selected channel. More... | |
void | PWM_EnableLoadMode (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) |
Enable load mode of selected channel. More... | |
void | PWM_DisableLoadMode (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) |
Disable load mode of selected channel. More... | |
void | PWM_EnableFaultBrakeInt (PWM_T *pwm, uint32_t u32BrakeSource) |
This function enable fault brake interrupt. More... | |
void | PWM_DisableFaultBrakeInt (PWM_T *pwm, uint32_t u32BrakeSource) |
This function disable fault brake interrupt. More... | |
void | PWM_ClearFaultBrakeIntFlag (PWM_T *pwm, uint32_t u32BrakeSource) |
This function clear fault brake interrupt of selected source. More... | |
uint32_t | PWM_GetFaultBrakeIntFlag (PWM_T *pwm, uint32_t u32BrakeSource) |
This function get fault brake interrupt flag of selected source. More... | |
void | PWM_EnablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType) |
Enable period interrupt of selected channel. More... | |
void | PWM_DisablePeriodInt (PWM_T *pwm, uint32_t u32ChannelNum) |
Disable period interrupt of selected channel. More... | |
void | PWM_ClearPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Clear period interrupt of selected channel. More... | |
uint32_t | PWM_GetPeriodIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get period interrupt of selected channel. More... | |
void | PWM_EnableZeroInt (PWM_T *pwm, uint32_t u32ChannelNum) |
Enable zero interrupt of selected channel. More... | |
void | PWM_DisableZeroInt (PWM_T *pwm, uint32_t u32ChannelNum) |
Disable zero interrupt of selected channel. More... | |
void | PWM_ClearZeroIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Clear zero interrupt of selected channel. More... | |
uint32_t | PWM_GetZeroIntFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get zero interrupt of selected channel. More... | |
void | PWM_SetClockSource (PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32ClkSrcSel) |
Set PWM clock source. More... | |
void | PWM_EnableBrakeNoiseFilter (PWM_T *pwm, uint32_t u32BrakePinNum, uint32_t u32ClkCnt, uint32_t u32ClkDivSel) |
Enable PWM brake noise filter function. More... | |
void | PWM_DisableBrakeNoiseFilter (PWM_T *pwm, uint32_t u32BrakePinNum) |
Disable PWM brake noise filter function. More... | |
void | PWM_EnableBrakePinInverse (PWM_T *pwm, uint32_t u32BrakePinNum) |
Enable PWM brake pin inverse function. More... | |
void | PWM_DisableBrakePinInverse (PWM_T *pwm, uint32_t u32BrakePinNum) |
Disable PWM brake pin inverse function. More... | |
void | PWM_SetBrakePinSource (PWM_T *pwm, uint32_t u32BrakePinNum, uint32_t u32SelAnotherModule) |
Set PWM brake pin source. More... | |
uint32_t | PWM_GetWrapAroundFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Get the time-base counter reached its maximum value flag of selected channel. More... | |
void | PWM_ClearWrapAroundFlag (PWM_T *pwm, uint32_t u32ChannelNum) |
Clear the time-base counter reached its maximum value flag of selected channel. More... | |
Nano 103 PWM driver source file.
Definition in file pwm.c.