SmartSnippets DA1459x SDK
Data Fields
timer_config_pwm Struct Reference

Timer PWM configuration. More...

#include <hw_timer.h>

Data Fields

HW_GPIO_PIN pin
 
HW_GPIO_PORT port
 
bool pwm_active_in_sleep
 
uint16_t frequency
 

Detailed Description

Timer PWM configuration.

See also
timer_config
hw_timer_configure_pwm
hw_timer_set_pwm_freq
hw_timer_set_pwm_duty_cycle

Field Documentation

◆ frequency

uint16_t timer_config_pwm::frequency

Defines the PWM duty cycle. duty_cycle / ( frequency + 1)

◆ pin

HW_GPIO_PIN timer_config_pwm::pin

Defines the pin of the GPIO with PWM function

◆ port

HW_GPIO_PORT timer_config_pwm::port

Defines the port of the GPIO with PWM function When true, Timer or Timer2 will keep PWM output on P1_01 or P1_06, respectively, during deep sleep

◆ pwm_active_in_sleep

bool timer_config_pwm::pwm_active_in_sleep

Defines the PWM frequency. Timer clock frequency / (frequency + 1)


The documentation for this struct was generated from the following file: