no-OS
Public Attributes | List of all members
no_os_pwm_init_param Struct Reference

Structure containing the init parameters needed by the PWM generator. More...

#include <no_os_pwm.h>

Collaboration diagram for no_os_pwm_init_param:
Collaboration graph
[legend]

Public Attributes

uint32_t id
 
uint32_t period_ns
 
uint32_t duty_cycle_ns
 
uint32_t phase_ns
 
enum no_os_pwm_polarity polarity
 
struct no_os_gpio_init_parampwm_gpio
 
uint32_t irq_id
 
void(* pwm_callback )(void *arg)
 
const struct no_os_pwm_platform_opsplatform_ops
 
void * extra
 

Detailed Description

Structure containing the init parameters needed by the PWM generator.

Member Data Documentation

◆ duty_cycle_ns

uint32_t no_os_pwm_init_param::duty_cycle_ns

PWM generator duty cycle

◆ extra

void* no_os_pwm_init_param::extra

PWM extra parameters (device specific)

◆ id

uint32_t no_os_pwm_init_param::id

Pwm id (Ex. Pin number, timer_id)

◆ irq_id

uint32_t no_os_pwm_init_param::irq_id

◆ period_ns

uint32_t no_os_pwm_init_param::period_ns

PWM generator period

◆ phase_ns

uint32_t no_os_pwm_init_param::phase_ns

PWM generator phase

◆ platform_ops

const struct no_os_pwm_platform_ops* no_os_pwm_init_param::platform_ops

PWM platform specific functions

◆ polarity

enum no_os_pwm_polarity no_os_pwm_init_param::polarity

PWM generator polarity

◆ pwm_callback

void(* no_os_pwm_init_param::pwm_callback) (void *arg)

PWM callback

◆ pwm_gpio

struct no_os_gpio_init_param* no_os_pwm_init_param::pwm_gpio

PWM gpio pin init param


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