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)
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_

Detailed Description

Definition at line 37 of file pwm.h.

Constructor & Destructor Documentation


Definition at line 34 of file pwm.cpp.

Member Function Documentation

void PWM_OUT::disable ( )

Definition at line 135 of file pwm.cpp.

void PWM_OUT::enable ( )

Definition at line 126 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 146 of file pwm.cpp.

void PWM_OUT::writeUs ( uint16_t  value)

Definition at line 151 of file pwm.cpp.

Member Data Documentation

volatile uint32_t* PWM_OUT::CCR_

Definition at line 49 of file pwm.h.

uint32_t PWM_OUT::cycles_per_us_

Definition at line 53 of file pwm.h.

uint16_t PWM_OUT::max_cyc_

Definition at line 51 of file pwm.h.

uint16_t PWM_OUT::min_cyc_

Definition at line 52 of file pwm.h.

uint16_t PWM_OUT::pin_

Definition at line 56 of file pwm.h.

GPIO_TypeDef* PWM_OUT::port_

Definition at line 55 of file pwm.h.

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

Author(s): Daniel Koch , James Jackson
autogenerated on Thu Apr 15 2021 05:07:58