#include <rc_ppm.h>
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_TypeDef * | TIM_ |
uint16_t | TIM_Channel_ |
uint16_t | TIM_IT_ |
void RC_PPM::init | ( | const pwm_hardware_struct_t * | conf | ) |
Definition at line 37 of file rc_ppm.cpp.
|
virtual |
Implements RC_BASE.
Definition at line 98 of file rc_ppm.cpp.
void RC_PPM::pulse_callback | ( | ) |
Definition at line 103 of file rc_ppm.cpp.
|
virtual |
Implements RC_BASE.
Definition at line 93 of file rc_ppm.cpp.
|
private |