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

Structure representing an PWM generator device. More...

#include <no_os_pwm.h>

Collaboration diagram for no_os_pwm_desc:
Collaboration graph
[legend]

Public Attributes

void * mutex
 
uint32_t id
 
uint32_t period_ns
 
uint32_t duty_cycle_ns
 
uint32_t phase_ns
 
enum no_os_pwm_polarity polarity
 
bool enabled
 
struct no_os_gpio_descpwm_gpio
 
uint32_t irq_id
 
void(* pwm_callback )(void *arg)
 
const struct no_os_pwm_platform_opsplatform_ops
 
void * extra
 

Detailed Description

Structure representing an PWM generator device.

Member Data Documentation

◆ duty_cycle_ns

uint32_t no_os_pwm_desc::duty_cycle_ns

PWM generator duty cycle

◆ enabled

bool no_os_pwm_desc::enabled

PWM generator enabled

◆ extra

void* no_os_pwm_desc::extra

PWM extra parameters (device specific)

◆ id

uint32_t no_os_pwm_desc::id

Pwm id

◆ irq_id

uint32_t no_os_pwm_desc::irq_id

◆ mutex

void* no_os_pwm_desc::mutex

PWM mutex

◆ period_ns

uint32_t no_os_pwm_desc::period_ns

PWM generator period

◆ phase_ns

uint32_t no_os_pwm_desc::phase_ns

PWM generator phase

◆ platform_ops

const struct no_os_pwm_platform_ops* no_os_pwm_desc::platform_ops

PWM platform specific functions

◆ polarity

enum no_os_pwm_polarity no_os_pwm_desc::polarity

PWM generator polarity

◆ pwm_callback

void(* no_os_pwm_desc::pwm_callback) (void *arg)

PWM callback

◆ pwm_gpio

struct no_os_gpio_desc* no_os_pwm_desc::pwm_gpio

PWM gpio pin instance


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