eFlexPwm
Arduino eFlexPwm library for Teensy 4.x
_pwm_config

PWM config structure. More...

#include <nxp-enums-struct.h>

Collaboration diagram for _pwm_config:

Public Attributes

bool debugModeEnabled
 
bool enableWait
 
pwm_init_source_t initializationControl
 
pwm_clock_source_t clockSource
 
pwm_clock_prescale_t prescale
 
pwm_chnl_pair_operation_t pairOperation
 
pwm_register_reload_t reloadLogic
 
pwm_reload_source_select_t reloadSelect
 
pwm_load_frequency_t reloadFrequency
 
pwm_force_output_trigger_t forceTrigger
 

Detailed Description

PWM config structure.

This structure holds the configuration settings for the PWM peripheral. To initialize this structure to reasonable defaults, call the PWM_GetDefaultConfig() function and pass a pointer to your config structure instance.

The config struct can be made const so it resides in flash

Definition at line 323 of file nxp-enums-struct.h.

Member Data Documentation

◆ clockSource

pwm_clock_source_t _pwm_config::clockSource

Clock source for the counter

Definition at line 331 of file nxp-enums-struct.h.

Referenced by eFlex::Config::clockSource(), and eFlex::Config::setClockSource().

◆ debugModeEnabled

bool _pwm_config::debugModeEnabled

true: PWM continues to run in debug mode; false: PWM is paused in debug mode

Definition at line 324 of file nxp-enums-struct.h.

◆ enableWait

bool _pwm_config::enableWait

true: PWM continues to run in WAIT mode; false: PWM is paused in WAIT mode

Definition at line 327 of file nxp-enums-struct.h.

Referenced by eFlex::Config::enableWaitMode(), and eFlex::Config::waitModeEnabled().

◆ forceTrigger

pwm_force_output_trigger_t _pwm_config::forceTrigger

Specify which signal will trigger a FORCE_OUT

Definition at line 338 of file nxp-enums-struct.h.

Referenced by eFlex::Config::forceTrigger(), and eFlex::Config::setForceTrigger().

◆ initializationControl

pwm_init_source_t _pwm_config::initializationControl

Option to initialize the counter

Definition at line 330 of file nxp-enums-struct.h.

Referenced by eFlex::Config::initializationControl(), and eFlex::Config::setInitializationControl().

◆ pairOperation

pwm_chnl_pair_operation_t _pwm_config::pairOperation

Channel pair in indepedent or complementary mode

Definition at line 333 of file nxp-enums-struct.h.

Referenced by eFlex::Config::pairOperation(), and eFlex::Config::setPairOperation().

◆ prescale

pwm_clock_prescale_t _pwm_config::prescale

Pre-scaler to divide down the clock

Definition at line 332 of file nxp-enums-struct.h.

Referenced by eFlex::Config::prescale(), and eFlex::Config::setPrescale().

◆ reloadFrequency

pwm_load_frequency_t _pwm_config::reloadFrequency

Specifies when to reload, used when user's choice is not immediate reload

Definition at line 336 of file nxp-enums-struct.h.

Referenced by eFlex::Config::reloadFrequency(), and eFlex::Config::setReloadFrequency().

◆ reloadLogic

pwm_register_reload_t _pwm_config::reloadLogic

PWM Reload logic setup

Definition at line 334 of file nxp-enums-struct.h.

Referenced by eFlex::Config::reloadLogic(), and eFlex::Config::setReloadLogic().

◆ reloadSelect

pwm_reload_source_select_t _pwm_config::reloadSelect

Reload source select

Definition at line 335 of file nxp-enums-struct.h.

Referenced by eFlex::Config::reloadSelect(), and eFlex::Config::setReloadSelect().