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 in Hz; must be non-zero for sl_si91x_pwm_set_configuration.
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#
frequency#
uint32_t sl_pwm_config_t::frequency
PWM frequency in Hz; must be non-zero for sl_si91x_pwm_set_configuration.
base_time_counter_initial_value#
uint32_t sl_pwm_config_t::base_time_counter_initial_value
PWM base time counter initial value.
channel_timer_selection#
uint8_t sl_pwm_config_t::channel_timer_selection
PWM channel timer selection.