9 #include "eFlexPwmGlobal.h"
211 m_config.enableDebugMode = enable;
222 return m_config.enableDebugMode;
enum _pwm_load_frequency pwm_load_frequency_t
PWM load frequency selection.
enum _pwm_clock_source pwm_clock_source_t
PWM clock source selection.
enum _pwm_clock_prescale pwm_clock_prescale_t
PWM prescaler factor selection for clock source.
enum _pwm_force_output_trigger pwm_force_output_trigger_t
Options that can trigger a PWM FORCE_OUT.
enum _pwm_reload_source_select pwm_reload_source_select_t
PWM reload source select.
enum _pwm_register_reload pwm_register_reload_t
Options available on how to load the buffered-registers with new values.
enum _pwm_init_source pwm_init_source_t
PWM counter initialization options.
enum _pwm_mode pwm_mode_t
PWM operation mode.
enum _pwm_chnl_pair_operation pwm_chnl_pair_operation_t
Options available for the PWM A & B pair operation.
void enableWaitMode(bool enable)
enable Wait Mode
void setPairOperation(pwm_chnl_pair_operation_t pairOperation)
Set the channel pair in indepedent or complementary mode.
bool debugModeEnabled() const
Debug mode, default false.
void setInitializationControl(pwm_init_source_t initializationControl)
Set the Option to initialize the counter.
pwm_load_frequency_t reloadFrequency() const
Specifies when to reload, default kPWM_LoadEveryOportunity.
uint32_t pwmFreqHz() const
PWM signal frequency in Hz, default 5000.
void setPwmFreqHz(uint32_t pwmFreqHz)
Set the PWM signal frequency in Hz.
void setReloadLogic(pwm_register_reload_t reloadLogic)
Set the PWM Reload logic setup.
void setReloadFrequency(pwm_load_frequency_t reloadFrequency)
Specifies when to reload.
Config()
Construct a new Config object with the default settings.
void enableDebugMode(bool enable)
enable Debug Mode
pwm_register_reload_t reloadLogic() const
PWM Reload logic setup, default kPWM_ReloadImmediate.
void setReloadSelect(pwm_reload_source_select_t reloadSelect)
Set the reload source select.
void setForceTrigger(pwm_force_output_trigger_t forceTrigger)
Specify which signal will trigger a FORCE_OUT.
pwm_init_source_t initializationControl() const
Reload source select, default kPWM_Initialize_LocalSync.
void setPrescale(pwm_clock_prescale_t prescale)
Set the Pre-scaler to divide down the clock.
pwm_chnl_pair_operation_t pairOperation() const
Channel pair in indepedent or complementary mode, default kPWM_Independent.
void setMode(pwm_mode_t mode)
Set the PWM operation mode.
pwm_clock_source_t clockSource() const
Clock source for the counter, default kPWM_BusClock.
pwm_clock_prescale_t prescale() const
Pre-scaler to divide down the clock, default kPWM_Prescale_Divide_1.
void setClockSource(pwm_clock_source_t clockSource)
Select the Clock source for the counter.
bool waitModeEnabled() const
Wait mode, default false.
pwm_reload_source_select_t reloadSelect() const
Option to initialize the counter, default kPWM_LocalReload.
pwm_mode_t mode() const
PWM operation mode, default CenterAligned.
pwm_force_output_trigger_t forceTrigger() const
Specify which signal will trigger a FORCE_OUT, default kPWM_Force_Local.
pwm_load_frequency_t reloadFrequency
pwm_clock_source_t clockSource
pwm_force_output_trigger_t forceTrigger
pwm_chnl_pair_operation_t pairOperation
pwm_clock_prescale_t prescale
pwm_register_reload_t reloadLogic
pwm_reload_source_select_t reloadSelect
pwm_init_source_t initializationControl