Structure to hold the parameters of timer configurations.

This structure defines the configuration parameters for the PWM timer. It includes settings for channel selection, frequency, polarity, mode, initial counter value, duty cycle, base timer mode, and channel timer selection.

Public Attributes#

PWM channel selection (ch0 to ch3).

uint32_t

PWM frequency.

boolean_t

PWM output polarity for the low side.

boolean_t

PWM output polarity for the high side.

boolean_t

PWM mode (independent/complementary).

uint32_t

PWM base time counter initial value.

uint8_t

PWM duty cycle.

uint8_t

PWM base timer mode.

uint8_t

PWM channel timer selection.

Public Attribute Documentation#

channel#

sl_pwm_channel_t sl_pwm_config_t::channel

PWM channel selection (ch0 to ch3).


Definition at line 384 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

frequency#

uint32_t sl_pwm_config_t::frequency

PWM frequency.


Definition at line 385 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

is_polarity_low#

boolean_t sl_pwm_config_t::is_polarity_low

PWM output polarity for the low side.


Definition at line 386 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

is_polarity_high#

boolean_t sl_pwm_config_t::is_polarity_high

PWM output polarity for the high side.


Definition at line 387 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

is_mode#

boolean_t sl_pwm_config_t::is_mode

PWM mode (independent/complementary).


Definition at line 388 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

base_time_counter_initial_value#

uint32_t sl_pwm_config_t::base_time_counter_initial_value

PWM base time counter initial value.


Definition at line 389 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

duty_cycle#

uint8_t sl_pwm_config_t::duty_cycle

PWM duty cycle.


Definition at line 390 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

base_timer_mode#

uint8_t sl_pwm_config_t::base_timer_mode

PWM base timer mode.


Definition at line 391 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h

channel_timer_selection#

uint8_t sl_pwm_config_t::channel_timer_selection

PWM channel timer selection.


Definition at line 392 of file components/device/silabs/si91x/mcu/drivers/unified_api/inc/sl_si91x_pwm.h