Public Member Functions | Private Attributes | List of all members
PWM_OUT Class Reference

#include <pwm.h>

Public Member Functions

void disable ()
 
void enable ()
 
void init (const pwm_hardware_struct_t *pwm_init, uint16_t frequency, uint32_t max_us, uint32_t min_us)
 
 PWM_OUT ()
 
void write (float value)
 
void writeUs (uint16_t value)
 

Private Attributes

volatile uint32_t * CCR_
 
uint32_t cycles_per_us_
 
uint16_t max_cyc_
 
uint16_t min_cyc_
 
uint16_t pin_
 
GPIO_TypeDefport_
 

Detailed Description

Definition at line 37 of file pwm.h.

Constructor & Destructor Documentation

PWM_OUT::PWM_OUT ( )

Definition at line 34 of file pwm.cpp.

Member Function Documentation

void PWM_OUT::disable ( )

Definition at line 129 of file pwm.cpp.

void PWM_OUT::enable ( )

Definition at line 120 of file pwm.cpp.

void PWM_OUT::init ( const pwm_hardware_struct_t pwm_init,
uint16_t  frequency,
uint32_t  max_us,
uint32_t  min_us 
)

Definition at line 36 of file pwm.cpp.

void PWM_OUT::write ( float  value)

Definition at line 140 of file pwm.cpp.

void PWM_OUT::writeUs ( uint16_t  value)

Definition at line 145 of file pwm.cpp.

Member Data Documentation

volatile uint32_t* PWM_OUT::CCR_
private

Definition at line 49 of file pwm.h.

uint32_t PWM_OUT::cycles_per_us_
private

Definition at line 53 of file pwm.h.

uint16_t PWM_OUT::max_cyc_
private

Definition at line 51 of file pwm.h.

uint16_t PWM_OUT::min_cyc_
private

Definition at line 52 of file pwm.h.

uint16_t PWM_OUT::pin_
private

Definition at line 56 of file pwm.h.

GPIO_TypeDef* PWM_OUT::port_
private

Definition at line 55 of file pwm.h.


The documentation for this class was generated from the following files:


rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Wed Jul 3 2019 19:59:31