DL_MCPWM_TimeBaseConfig
Module: Driverlib (AM13E230X) APIs / Driverlib MCPWM API
MCPWM Time Base configuration structure.
#include <dl_mcpwm.h>
Public Attributes
Name |
|
|---|---|
uint16_t |
|
uint16_t |
|
bool |
|
uint16_t |
|
Public Attributes Documentation
variable clockDivider
DL_MCPWM_CLOCK_DIVIDER clockDivider;
Configure clock prescale/divider. Configures TBCTL.CLKDIV
Valid values: DL_MCPWM_CLOCK_DIVIDER
variable counterMode
DL_MCPWM_TIME_BASE_COUNT_MODE counterMode;
Select Time Base Counter mode. Configures TBCTL.CTR_MODE
Valid values: DL_MCPWM_TIME_BASE_COUNT_MODE
variable counterDirectionAfterSync
DL_MCPWM_SYNC_COUNT_MODE counterDirectionAfterSync;
Direction of counter after Sync. Configures TBCTL.PHSDIR
Valid values: DL_MCPWM_SYNC_COUNT_MODE
variable periodValue
uint16_t periodValue;
Set Time Base Period. Configures TBCTL.TBPRD and TBCTL.TBPRDS
Valid values: 16 bit unsigned period value in cycles
variable initialCounterValue
uint16_t initialCounterValue;
Configures initial value of TBCTR.TBCTR
Valid values: 16 bit unsigned integer
variable enablePhaseShift
bool enablePhaseShift;
Enable phase shift load. Configures TBCTL.PHSEN
true : enable phase shift loading
false : disable phase shift loading
variable phaseShiftValue
uint16_t phaseShiftValue;
Configure Phase Shift count. Configures TBCTL.TBPHS
Valid values: 16 bit unsigned phase count in cycles
variable syncInSource
DL_MCPWM_SYNC_IN_PULSE_SOURCE syncInSource;
Select Sync In pulse source. Configures TBCTL.SYNCISEL
Valid values: DL_MCPWM_SYNC_IN_PULSE_SOURCE
variable syncPerSource
DL_MCPWM_SYNCPERSEL_SOURCE syncPerSource;
Select SYNCPER source. Configures TBCTL.SYNCPERSEL
Valid values: DL_MCPWM_SYNCPERSEL_SOURCE
variable syncOutPulseMode
DL_MCPWM_SYNC_OUT_PULSE_MODE syncOutPulseMode;
Select Sync Out pulse source. Configures TBCTL.SYNCOSEL
Valid values: DL_MCPWM_SYNC_OUT_PULSE_MODE
variable emulationMode
DL_MCPWM_EMULATION_MODE emulationMode;
Set emulation mode. Configures TBCTL.FREE_SOFT
Valid values: DL_MCPWM_EMULATION_MODE