26 #include "pwm_pal_cfg.h"
29 #if (defined (PWM_OVER_FTM))
35 #if (defined (PWM_OVER_EMIOS))
36 #include "emios_common.h"
37 #include "emios_mc_driver.h"
38 #include "emios_pwm_driver.h"
39 #include "emios_hw_access.h"
43 #if (defined (PWM_OVER_ETIMER))
44 #include "etimer_driver.h"
45 #include "etimer_hw_access.h"
90 #if defined PWM_OVER_FTM
101 } pwm_ftm_timebase_t;
104 #if defined PWM_OVER_EMIOS
117 } pwm_emios_timebase_name_t;
126 pwm_emios_timebase_name_t name;
127 emios_clock_internal_ps_t internalPrescaler;
128 } pwm_emios_timebase_t;
131 #if (defined (PWM_OVER_ETIMER))
141 etimer_input_config_t pwmClkSrc;
143 } pwm_etimer_timebase_t;
180 #if defined(__cplusplus)
235 #if defined(__cplusplus)
This structure includes the configuration for each channel Implements : pwm_channel_t_Class.
status_t PWM_UpdatePeriod(const pwm_instance_t *const instance, uint8_t channel, uint32_t period)
Update period for specific a specific channel. This function changes period for all channels which sh...
This structure is the configuration for initialization of PWM channels. Implements : pwm_global_confi...
status_t PWM_Init(const pwm_instance_t *const instance, const pwm_global_config_t *config)
Initialize PWM channels based on config parameter.
pwm_polarity_t
Defines the polarity of pwm channels Implements : pwm_polarity_t_Class.
uint8_t numberOfPwmChannels
status_t PWM_Deinit(const pwm_instance_t *const instance)
Uninitialised PWM instance.
ftm_clock_ps_t
FlexTimer pre-scaler factor selection for the clock source. In quadrature decoder mode set FTM_CLOCK_...
status_t
Status return codes. Common error codes will be a unified enumeration (C enum) that will contain all ...
bool enableComplementaryChannel
ftm_clock_source_t
FlexTimer clock source selection.
pwm_complementarty_mode_t complementaryChannelPolarity
pwm_complementarty_mode_t
Defines the polarity of complementary pwm channels relative to main channel Implements : pwm_compleme...
ftm_deadtime_ps_t
FlexTimer pre-scaler factor for the dead-time insertion.
pwm_channel_type_t channelType
pwm_channel_t * pwmChannels
pwm_channel_type_t
Defines the channel types Implements : pwm_channel_type_t_Class.
status_t PWM_UpdateDuty(const pwm_instance_t *const instance, uint8_t channel, uint32_t duty)
Update duty cycle. The measurement unit for duty is clock ticks.
status_t PWM_OverwriteOutputChannels(const pwm_instance_t *const instance, uint32_t channelsMask, uint32_t channelsValues)
This function change the output value for some channels. channelsMask select which channels will be o...
Structure storing PAL instance information.