PHiLIP
pwm_t Union Reference

Controls and calculates PWM values. More...

#include <PHiLIP_typedef.h>

Data Fields

struct {
   basic_mode_t   mode
 
   basic_gpio_t   dut_pwm
 
   uint16_t   duty_cycle
 
   uint32_t   period
 
   uint32_t   h_ticks
 
   uint32_t   l_ticks
 
   uint8_t   res [16]
 
}; 
 
uint8_t data8 [32]
 

Detailed Description

Controls and calculates PWM values.

Field Documentation

uint8_t pwm_t::data8[32]

array for padding

uint16_t pwm_t::duty_cycle

The calculated duty cycle in percent/100

uint32_t pwm_t::h_ticks

Settable high time in sys clock ticks

uint32_t pwm_t::l_ticks

Settable low time in sys clock ticks

basic_mode_t pwm_t::mode

basic mode for pwm settings

uint32_t pwm_t::period

The calculated period in ticks

uint8_t pwm_t::res[16]

Reserved bytes


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