Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
pwm_dt_spec Struct Reference

Container for PWM information specified in devicetree. More...

#include <pwm.h>

Data Fields

const struct devicedev
 PWM device instance.
 
uint32_t channel
 Channel number.
 
uint32_t period
 Period in nanoseconds.
 
pwm_flags_t flags
 Flags.
 

Detailed Description

Container for PWM information specified in devicetree.

This type contains a pointer to a PWM device, channel number (controlled by the PWM device), the PWM signal period in nanoseconds and the flags applicable to the channel. Note that not all PWM drivers support flags. In such case, flags will be set to 0.

See also
PWM_DT_SPEC_GET_BY_NAME
PWM_DT_SPEC_GET_BY_NAME_OR
PWM_DT_SPEC_GET_BY_IDX
PWM_DT_SPEC_GET_BY_IDX_OR
PWM_DT_SPEC_GET
PWM_DT_SPEC_GET_OR

Field Documentation

◆ channel

uint32_t pwm_dt_spec::channel

Channel number.

◆ dev

const struct device* pwm_dt_spec::dev

PWM device instance.

◆ flags

pwm_flags_t pwm_dt_spec::flags

Flags.

◆ period

uint32_t pwm_dt_spec::period

Period in nanoseconds.


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