The tcDspPwmConfig class provides a simple initialization structure for the purposes of configuring a tcDspPwm core class instance. More...
#include <core/DspPwm.h>
Public Member Functions | |
tcDspPwmConfig (void) | |
~tcDspPwmConfig (void) | |
Public Attributes | |
bool | mbIsExternalTrigger |
[true] external triggering will be enabled | |
bool | mbIsContinuous |
[true] continuous pulse generation will be enabled | |
bool | mbEnableFCInterrupt |
[false] fixed cycle interrupts will be enabled | |
unsigned char | mnDivisorClocks |
[18] default (0 addition extended clock cycles added) | |
unsigned int | mnCycleDuration |
[1000] number of cycles for one-shot mode | |
bool | mbPulseEnables [DSP_PWM_NUMPULSES] |
[true for 0, false for 1-4] pulse 1 will be enabled | |
unsigned short | mnPulseDelay [DSP_PWM_NUMPULSES] |
[10 for pulse 1] default delay cycles | |
unsigned short | mnPulsePeriod [DSP_PWM_NUMPULSES] |
[100 for pulse 1] default period | |
unsigned short | mnPulseOnTime [DSP_PWM_NUMPULSES] |
[20 for pulse 1] default on time per period |
The tcDspPwmConfig class provides a simple initialization structure for the purposes of configuring a tcDspPwm core class instance.
The class, when created, provides a set of default settings that the tcDspPwm class will use upon construction.
MityDSP::tcDspPwmConfig::tcDspPwmConfig | ( | void | ) | [inline] |
MityDSP::tcDspPwmConfig::~tcDspPwmConfig | ( | void | ) | [inline] |
[true] external triggering will be enabled
[true] continuous pulse generation will be enabled
[false] fixed cycle interrupts will be enabled
unsigned char MityDSP::tcDspPwmConfig::mnDivisorClocks |
[18] default (0 addition extended clock cycles added)
unsigned int MityDSP::tcDspPwmConfig::mnCycleDuration |
[1000] number of cycles for one-shot mode
bool MityDSP::tcDspPwmConfig::mbPulseEnables[DSP_PWM_NUMPULSES] |
[true for 0, false for 1-4] pulse 1 will be enabled
unsigned short MityDSP::tcDspPwmConfig::mnPulseDelay[DSP_PWM_NUMPULSES] |
[10 for pulse 1] default delay cycles
unsigned short MityDSP::tcDspPwmConfig::mnPulsePeriod[DSP_PWM_NUMPULSES] |
[100 for pulse 1] default period
unsigned short MityDSP::tcDspPwmConfig::mnPulseOnTime[DSP_PWM_NUMPULSES] |
[20 for pulse 1] default on time per period