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

#include <rc_ppm.h>

Inheritance diagram for RC_PPM:
Inheritance graph
[legend]

Public Member Functions

void init (const pwm_hardware_struct_t *conf)
 
bool lost ()
 
void pulse_callback ()
 
float read (uint8_t channel)
 

Private Attributes

uint8_t chan_ = 0
 
uint16_t current_capture_ = 0
 
uint16_t last_capture_ = 0
 
uint32_t last_pulse_ms_
 
GPIO pin_
 
uint16_t rc_raw_ [8]
 
TIM_TypeDefTIM_
 
uint16_t TIM_Channel_
 
uint16_t TIM_IT_
 

Detailed Description

Definition at line 37 of file rc_ppm.h.

Member Function Documentation

void RC_PPM::init ( const pwm_hardware_struct_t conf)

Definition at line 36 of file rc_ppm.cpp.

bool RC_PPM::lost ( )
virtual

Implements RC_BASE.

Definition at line 96 of file rc_ppm.cpp.

void RC_PPM::pulse_callback ( )

Definition at line 101 of file rc_ppm.cpp.

float RC_PPM::read ( uint8_t  channel)
virtual

Implements RC_BASE.

Definition at line 91 of file rc_ppm.cpp.

Member Data Documentation

uint8_t RC_PPM::chan_ = 0
private

Definition at line 41 of file rc_ppm.h.

uint16_t RC_PPM::current_capture_ = 0
private

Definition at line 42 of file rc_ppm.h.

uint16_t RC_PPM::last_capture_ = 0
private

Definition at line 43 of file rc_ppm.h.

uint32_t RC_PPM::last_pulse_ms_
private

Definition at line 45 of file rc_ppm.h.

GPIO RC_PPM::pin_
private

Definition at line 40 of file rc_ppm.h.

uint16_t RC_PPM::rc_raw_[8]
private

Definition at line 44 of file rc_ppm.h.

TIM_TypeDef* RC_PPM::TIM_
private

Definition at line 47 of file rc_ppm.h.

uint16_t RC_PPM::TIM_Channel_
private

Definition at line 49 of file rc_ppm.h.

uint16_t RC_PPM::TIM_IT_
private

Definition at line 48 of file rc_ppm.h.


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


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