![]() |
NUC472_NUC442_BSP V3.03.005
The Board Support Package for NUC472/NUC442
|
NUC472/NUC442 EPWM driver header file. More...
Go to the source code of this file.
Macros | |
#define | EPWM_CHANNEL_NUM |
#define | EPWM_CH0 |
#define | EPWM_CH1 |
#define | EPWM_CH2 |
#define | EPWM_CH3 |
#define | EPWM_CH4 |
#define | EPWM_CH5 |
#define | EPWM_CH_0_MASK |
#define | EPWM_CH_1_MASK |
#define | EPWM_CH_2_MASK |
#define | EPWM_CH_3_MASK |
#define | EPWM_CH_4_MASK |
#define | EPWM_CH_5_MASK |
#define | EPWM_CH_6_MASK |
#define | EPWM_CLK_DIV_1 |
#define | EPWM_CLK_DIV_2 |
#define | EPWM_CLK_DIV_4 |
#define | EPWM_CLK_DIV_16 |
#define | EPWM_EDGE_ALIGNED |
#define | EPWM_CENTER_ALIGNED |
#define | EPWM_BRK0_BKP0 |
#define | EPWM_BRK0_CPO0 |
#define | EPWM_BRK0_CPO1 |
#define | EPWM_BRK0_CPO2 |
#define | EPWM_BRK1_LVDBKEN |
#define | EPWM_BK1SEL_BKP1 |
#define | EPWM_BK1SEL_CPO0 |
#define | EPWM_BK1SEL_CPO1 |
#define | EPWM_BK1SEL_CPO2 |
#define | EPWM_PERIOD_INT_UNDERFLOW |
#define | EPWM_PERIOD_INT_MATCH_CNR |
#define | EPWM_MODE_INDEPENDENT |
#define | EPWM_MODE_COMPLEMENTARY |
#define | EPWM_MODE_SYNCHRONIZED |
#define | EPWM_ENABLE_COMPLEMENTARY_MODE(pwm) |
This macro enable complementary mode. More... | |
#define | EPWM_DISABLE_COMPLEMENTARY_MODE(pwm) |
This macro disable complementary mode, and enable independent mode. More... | |
#define | EPWM_ENABLE_GROUP_MODE(pwm) |
This macro enable group mode. More... | |
#define | EPWM_DISABLE_GROUP_MODE(pwm) |
This macro disable group mode. More... | |
#define | EPWM_ENABLE_SYNC_MODE(pwm) |
This macro enable synchronous mode. More... | |
#define | EPWM_DISABLE_SYNC_MODE(pwm) |
This macro disable synchronous mode, and enable independent mode. More... | |
#define | EPWM_ENABLE_OUTPUT_INVERTER(pwm, u32ChannelMask) |
This macro enable output inverter of specified channel(s) More... | |
#define | EPWM_MASK_OUTPUT(pwm, u32ChannelMask, u32LevelMask) |
This macro mask output output logic to high or low. More... | |
#define | EPWM_SET_DIVIDER(pwm, u32ChannelNum, u32Divider) |
This macro set the divider of the selected channel. More... | |
#define | EPWM_SET_CMR(pwm, u32ChannelNum, u32CMR) |
This macro set the duty of the selected channel. More... | |
#define | EPWM_SET_CNR(pwm, u32ChannelNum, u32CNR) |
This macro set the period of the selected channel. More... | |
#define | EPWM_SET_ALIGNED_TYPE(pwm, u32ChannelMask, u32AlignedType) |
This macro set the PWM aligned type. More... | |
Functions | |
uint32_t | EPWM_ConfigOutputChannel (EPWM_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... | |
void | EPWM_Start (EPWM_T *pwm, uint32_t u32ChannelMask) |
This function start PWM module. More... | |
void | EPWM_Stop (EPWM_T *pwm, uint32_t u32ChannelMask) |
This function stop PWM module. More... | |
void | EPWM_ForceStop (EPWM_T *pwm, uint32_t u32ChannelMask) |
This function stop PWM generation immediately by clear channel enable bit. More... | |
void | EPWM_EnableFaultBrake (EPWM_T *pwm, uint32_t u32ChannelMask, uint32_t u32LevelMask, uint32_t u32BrakeSource) |
This function enable fault brake of selected channels. More... | |
void | EPWM_ClearFaultBrakeFlag (EPWM_T *pwm, uint32_t u32BrakeSource) |
This function clear fault brake flag. More... | |
void | EPWM_EnableOutput (EPWM_T *pwm, uint32_t u32ChannelMask) |
This function enables PWM output generation of selected channels. More... | |
void | EPWM_DisableOutput (EPWM_T *pwm, uint32_t u32ChannelMask) |
This function disables PWM output generation of selected channels. More... | |
void | EPWM_EnableDeadZone (EPWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Duration) |
This function enable Dead zone of selected channel. More... | |
void | EPWM_DisableDeadZone (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function disable Dead zone of selected channel. More... | |
void | EPWM_EnableDutyInt (EPWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntDutyType) |
This function enable duty interrupt of selected channel. More... | |
void | EPWM_DisableDutyInt (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function disable duty interrupt of selected channel. More... | |
void | EPWM_ClearDutyIntFlag (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function clears duty interrupt flag of selected channel. More... | |
uint32_t | EPWM_GetDutyIntFlag (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function get duty interrupt flag of selected channel. More... | |
void | EPWM_EnableFaultBrakeInt (EPWM_T *pwm, uint32_t u32BrakeSource) |
This function enable fault brake interrupt. More... | |
void | EPWM_DisableFaultBrakeInt (EPWM_T *pwm, uint32_t u32BrakeSource) |
This function disable fault brake interrupt. More... | |
void | EPWM_ClearFaultBrakeIntFlag (EPWM_T *pwm, uint32_t u32BrakeSource) |
This function clear fault brake interrupt of selected source. More... | |
uint32_t | EPWM_GetFaultBrakeIntFlag (EPWM_T *pwm, uint32_t u32BrakeSource) |
This function get fault brake interrupt of selected source. More... | |
void | EPWM_EnablePeriodInt (EPWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32IntPeriodType) |
This function enable period interrupt of selected channel. More... | |
void | EPWM_DisablePeriodInt (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function disable period interrupt of selected channel. More... | |
void | EPWM_ClearPeriodIntFlag (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function clear period interrupt of selected channel. More... | |
uint32_t | EPWM_GetPeriodIntFlag (EPWM_T *pwm, uint32_t u32ChannelNum) |
This function get period interrupt of selected channel. More... | |
NUC472/NUC442 EPWM driver header file.
Definition in file epwm.h.