![]() |
M480 BSP V3.05.005
The Board Support Package for M480 Series
|
M480 series EPWM driver source file. More...
#include "NuMicro.h"
Go to the source code of this file.
Functions | |
uint32_t | EPWM_ConfigCaptureChannel (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32UnitTimeNsec, uint32_t u32CaptureEdge) |
Configure EPWM capture and get the nearest unit time. More... | |
uint32_t | EPWM_ConfigOutputChannel (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle) |
This function Configure EPWM generator and get the nearest frequency in edge aligned(up counter type) auto-reload mode. More... | |
void | EPWM_Start (EPWM_T *epwm, uint32_t u32ChannelMask) |
Start EPWM module. More... | |
void | EPWM_Stop (EPWM_T *epwm, uint32_t u32ChannelMask) |
Stop EPWM module. More... | |
void | EPWM_ForceStop (EPWM_T *epwm, uint32_t u32ChannelMask) |
Stop EPWM generation immediately by clear channel enable bit. More... | |
void | EPWM_EnableADCTrigger (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Enable selected channel to trigger ADC. More... | |
void | EPWM_DisableADCTrigger (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable selected channel to trigger ADC. More... | |
int32_t | EPWM_EnableADCTriggerPrescale (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Prescale, uint32_t u32PrescaleCnt) |
Enable and configure trigger ADC prescale. More... | |
void | EPWM_DisableADCTriggerPrescale (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable Trigger ADC prescale function. More... | |
void | EPWM_ClearADCTriggerFlag (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Clear selected channel trigger ADC flag. More... | |
uint32_t | EPWM_GetADCTriggerFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get selected channel trigger ADC flag. More... | |
void | EPWM_EnableDACTrigger (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Enable selected channel to trigger DAC. More... | |
void | EPWM_DisableDACTrigger (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable selected channel to trigger DAC. More... | |
void | EPWM_ClearDACTriggerFlag (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Condition) |
Clear selected channel trigger DAC flag. More... | |
uint32_t | EPWM_GetDACTriggerFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get selected channel trigger DAC flag. More... | |
void | EPWM_EnableFaultBrake (EPWM_T *epwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u32BrakeSource) |
This function enable fault brake of selected channel(s) More... | |
void | EPWM_EnableCapture (EPWM_T *epwm, uint32_t u32ChannelMask) |
Enable capture of selected channel(s) More... | |
void | EPWM_DisableCapture (EPWM_T *epwm, uint32_t u32ChannelMask) |
Disable capture of selected channel(s) More... | |
void | EPWM_EnableOutput (EPWM_T *epwm, uint32_t u32ChannelMask) |
Enables EPWM output generation of selected channel(s) More... | |
void | EPWM_DisableOutput (EPWM_T *epwm, uint32_t u32ChannelMask) |
Disables EPWM output generation of selected channel(s) More... | |
void | EPWM_EnablePDMA (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32RisingFirst, uint32_t u32Mode) |
Enables PDMA transfer of selected channel for EPWM capture. More... | |
void | EPWM_DisablePDMA (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disables PDMA transfer of selected channel for EPWM capture. More... | |
void | EPWM_EnableDeadZone (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Duration) |
Enable Dead zone of selected channel. More... | |
void | EPWM_DisableDeadZone (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable Dead zone of selected channel. More... | |
void | EPWM_EnableCaptureInt (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Enable capture interrupt of selected channel. More... | |
void | EPWM_DisableCaptureInt (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Disable capture interrupt of selected channel. More... | |
void | EPWM_ClearCaptureIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32Edge) |
Clear capture interrupt of selected channel. More... | |
uint32_t | EPWM_GetCaptureIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get capture interrupt of selected channel. More... | |
void | EPWM_EnableDutyInt (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType) |
Enable duty interrupt of selected channel. More... | |
void | EPWM_DisableDutyInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable duty interrupt of selected channel. More... | |
void | EPWM_ClearDutyIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear duty interrupt flag of selected channel. More... | |
uint32_t | EPWM_GetDutyIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get duty interrupt flag of selected channel. More... | |
void | EPWM_EnableFaultBrakeInt (EPWM_T *epwm, uint32_t u32BrakeSource) |
This function enable fault brake interrupt. More... | |
void | EPWM_DisableFaultBrakeInt (EPWM_T *epwm, uint32_t u32BrakeSource) |
This function disable fault brake interrupt. More... | |
void | EPWM_ClearFaultBrakeIntFlag (EPWM_T *epwm, uint32_t u32BrakeSource) |
This function clear fault brake interrupt of selected source. More... | |
uint32_t | EPWM_GetFaultBrakeIntFlag (EPWM_T *epwm, uint32_t u32BrakeSource) |
This function get fault brake interrupt flag of selected source. More... | |
void | EPWM_EnablePeriodInt (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType) |
Enable period interrupt of selected channel. More... | |
void | EPWM_DisablePeriodInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable period interrupt of selected channel. More... | |
void | EPWM_ClearPeriodIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear period interrupt of selected channel. More... | |
uint32_t | EPWM_GetPeriodIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get period interrupt of selected channel. More... | |
void | EPWM_EnableZeroInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable zero interrupt of selected channel. More... | |
void | EPWM_DisableZeroInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable zero interrupt of selected channel. More... | |
void | EPWM_ClearZeroIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear zero interrupt of selected channel. More... | |
uint32_t | EPWM_GetZeroIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get zero interrupt of selected channel. More... | |
void | EPWM_EnableAcc (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32IntFlagCnt, uint32_t u32IntAccSrc) |
Enable interrupt flag accumulator of selected channel. More... | |
void | EPWM_DisableAcc (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable interrupt flag accumulator of selected channel. More... | |
void | EPWM_EnableAccInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable interrupt flag accumulator interrupt of selected channel. More... | |
void | EPWM_DisableAccInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable interrupt flag accumulator interrupt of selected channel. More... | |
void | EPWM_ClearAccInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear interrupt flag accumulator interrupt of selected channel. More... | |
uint32_t | EPWM_GetAccInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get interrupt flag accumulator interrupt of selected channel. More... | |
void | EPWM_EnableAccPDMA (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable accumulator PDMA of selected channel. More... | |
void | EPWM_DisableAccPDMA (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable accumulator PDMA of selected channel. More... | |
void | EPWM_EnableAccStopMode (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable interrupt flag accumulator stop mode of selected channel. More... | |
void | EPWM_DisableAccStopMode (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable interrupt flag accumulator stop mode of selected channel. More... | |
void | EPWM_ClearFTDutyIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear free trigger duty interrupt flag of selected channel. More... | |
uint32_t | EPWM_GetFTDutyIntFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get free trigger duty interrupt flag of selected channel. More... | |
void | EPWM_EnableLoadMode (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) |
Enable load mode of selected channel. More... | |
void | EPWM_DisableLoadMode (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32LoadMode) |
Disable load mode of selected channel. More... | |
void | EPWM_ConfigSyncPhase (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32SyncSrc, uint32_t u32Direction, uint32_t u32StartPhase) |
Configure synchronization phase of selected channel. More... | |
void | EPWM_EnableSyncPhase (EPWM_T *epwm, uint32_t u32ChannelMask) |
Enable SYNC phase of selected channel(s) More... | |
void | EPWM_DisableSyncPhase (EPWM_T *epwm, uint32_t u32ChannelMask) |
Disable SYNC phase of selected channel(s) More... | |
void | EPWM_EnableSyncNoiseFilter (EPWM_T *epwm, uint32_t u32ClkCnt, uint32_t u32ClkDivSel) |
Enable EPWM SYNC_IN noise filter function. More... | |
void | EPWM_DisableSyncNoiseFilter (EPWM_T *epwm) |
Disable EPWM SYNC_IN noise filter function. More... | |
void | EPWM_EnableSyncPinInverse (EPWM_T *epwm) |
Enable EPWM SYNC input pin inverse function. More... | |
void | EPWM_DisableSyncPinInverse (EPWM_T *epwm) |
Disable EPWM SYNC input pin inverse function. More... | |
void | EPWM_SetClockSource (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32ClkSrcSel) |
Set EPWM clock source. More... | |
void | EPWM_EnableBrakeNoiseFilter (EPWM_T *epwm, uint32_t u32BrakePinNum, uint32_t u32ClkCnt, uint32_t u32ClkDivSel) |
Enable EPWM brake noise filter function. More... | |
void | EPWM_DisableBrakeNoiseFilter (EPWM_T *epwm, uint32_t u32BrakePinNum) |
Disable EPWM brake noise filter function. More... | |
void | EPWM_EnableBrakePinInverse (EPWM_T *epwm, uint32_t u32BrakePinNum) |
Enable EPWM brake pin inverse function. More... | |
void | EPWM_DisableBrakePinInverse (EPWM_T *epwm, uint32_t u32BrakePinNum) |
Disable EPWM brake pin inverse function. More... | |
void | EPWM_SetBrakePinSource (EPWM_T *epwm, uint32_t u32BrakePinNum, uint32_t u32SelAnotherModule) |
Set EPWM brake pin source. More... | |
void | EPWM_SetLeadingEdgeBlanking (EPWM_T *epwm, uint32_t u32TrigSrcSel, uint32_t u32TrigType, uint32_t u32BlankingCnt, uint32_t u32BlankingEnable) |
Set EPWM leading edge blanking function. More... | |
uint32_t | EPWM_GetWrapAroundFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get the time-base counter reached its maximum value flag of selected channel. More... | |
void | EPWM_ClearWrapAroundFlag (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear the time-base counter reached its maximum value flag of selected channel. More... | |
void | EPWM_EnableFaultDetect (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32AfterPrescaler, uint32_t u32ClkSel) |
Enable fault detect of selected channel. More... | |
void | EPWM_DisableFaultDetect (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable fault detect of selected channel. More... | |
void | EPWM_EnableFaultDetectOutput (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable fault detect output of selected channel. More... | |
void | EPWM_DisableFaultDetectOutput (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable fault detect output of selected channel. More... | |
void | EPWM_EnableFaultDetectDeglitch (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32DeglitchSmpCycle) |
Enable fault detect deglitch function of selected channel. More... | |
void | EPWM_DisableFaultDetectDeglitch (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable fault detect deglitch function of selected channel. More... | |
void | EPWM_EnableFaultDetectMask (EPWM_T *epwm, uint32_t u32ChannelNum, uint32_t u32MaskCnt) |
Enable fault detect mask function of selected channel. More... | |
void | EPWM_DisableFaultDetectMask (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable fault detect mask function of selected channel. More... | |
void | EPWM_EnableFaultDetectInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Enable fault detect interrupt of selected channel. More... | |
void | EPWM_DisableFaultDetectInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Disable fault detect interrupt of selected channel. More... | |
void | EPWM_ClearFaultDetectInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Clear fault detect interrupt of selected channel. More... | |
uint32_t | EPWM_GetFaultDetectInt (EPWM_T *epwm, uint32_t u32ChannelNum) |
Get fault detect interrupt of selected channel. More... | |
M480 series EPWM driver source file.
SPDX-License-Identifier: Apache-2.0
Definition in file epwm.c.