mikroSDK Reference Manual
hal_pwm_config_t Struct Reference

PWM HAL config structure, consisted of the following fields: More...

Data Fields

hal_pin_name_t pin
 
uint32_t freq_hz
 

Detailed Description

The context structure for storing HAL configuration. User shall define the values stored within.

Warning
The following example describes how to fill a hal_pwm_config_t structure. Take into consideration that different hardware might not have the same pin. Make sure to accommodate pin name based on your hardware specifics.

Example

hal_pwm_config_t hal_pwm_cfg;
hal_pwm_cfg.pin = MIKROBUS_1_PWM;
hal_pwm_cfg.freq_hz = 5000;

Field Documentation

◆ pin

hal_pin_name_t hal_pwm_config_t::pin

PWM pin name.

◆ freq_hz

uint32_t hal_pwm_config_t::freq_hz

PWM Frequency in Hz.

hal_pwm_config_t
PWM HAL config structure, consisted of the following fields:
Definition: hal_pwm.h:89
hal_pwm_config_t::freq_hz
uint32_t freq_hz
Definition: hal_pwm.h:92
hal_pwm_config_t::pin
hal_pin_name_t pin
Definition: hal_pwm.h:91