nrfx 3.3
Data Fields
nrfx_pwm_config_t Struct Reference

PWM driver configuration structure. More...

#include <nrfx_pwm.h>

Data Fields

uint32_t output_pins [NRF_PWM_CHANNEL_COUNT]
 Pin numbers for individual output channels (optional).
 
bool pin_inverted [NRF_PWM_CHANNEL_COUNT]
 Inverted pin polarity (idle state = 1).
 
uint8_t irq_priority
 Interrupt priority.
 
nrf_pwm_clk_t base_clock
 Base clock frequency.
 
nrf_pwm_mode_t count_mode
 Operating mode of the pulse generator counter.
 
uint16_t top_value
 Value up to which the pulse generator counter counts.
 
nrf_pwm_dec_load_t load_mode
 Mode of loading sequence data from RAM.
 
nrf_pwm_dec_step_t step_mode
 Mode of advancing the active sequence.
 
bool skip_gpio_cfg
 Skip the GPIO configuration.
 
bool skip_psel_cfg
 Skip pin selection configuration.
 

Detailed Description

PWM driver configuration structure.

Field Documentation

◆ output_pins

uint32_t nrfx_pwm_config_t::output_pins[NRF_PWM_CHANNEL_COUNT]

Pin numbers for individual output channels (optional).

Use NRF_PWM_PIN_NOT_CONNECTED if a given output channel is not needed.

◆ skip_gpio_cfg

bool nrfx_pwm_config_t::skip_gpio_cfg

Skip the GPIO configuration.

When this flag is set, the user is responsible for providing the proper configuration of the output pins, as the driver does not touch it at all.

◆ skip_psel_cfg

bool nrfx_pwm_config_t::skip_psel_cfg

Skip pin selection configuration.

When set to true, the driver does not modify pin select registers in the peripheral. Those registers are supposed to be set up externally before the driver is initialized.

Note
When both GPIO configuration and pin selection are to be skipped, the structure fields that specify pins can be omitted, as they are ignored anyway.

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

Documentation feedback | Developer Zone | Subscribe | Updated