|
MAV'RIC
|
Wrapper class for PWM using ChibiOS/HAL. More...
#include <pwm_chibios.hpp>


Classes | |
| struct | conf_t |
| Configuration structure. More... | |
Public Types | |
| enum | channel_id_t { CHANNEL_1 = 0, CHANNEL_2 = 1, CHANNEL_3 = 2, CHANNEL_4 = 3 } |
| Enumeration of PWM channels. More... | |
Public Member Functions | |
| Pwm_chibios (conf_t config=default_config()) | |
| Constructor. | |
| bool | init (void) |
| Initialize the hardware line for servos. | |
| bool | set_pulse_width_us (uint16_t pulse_us) |
| Set pulse width. | |
| bool | set_period_us (uint16_t period_us) |
| Set pulse period. | |
Static Public Member Functions | |
| static conf_t | default_config (void) |
| Default configuration structure. | |
Wrapper class for PWM using ChibiOS/HAL.
| Pwm_chibios::Pwm_chibios | ( | conf_t | config = default_config() | ) |
Constructor.
| config | Configuration structure |
| Pwm_chibios::conf_t Pwm_chibios::default_config | ( | void | ) | [inline, static] |
Default configuration structure.
| bool Pwm_chibios::init | ( | void | ) | [virtual] |
Initialize the hardware line for servos.
Implements Pwm.

| bool Pwm_chibios::set_period_us | ( | uint16_t | period_us | ) | [virtual] |
| bool Pwm_chibios::set_pulse_width_us | ( | uint16_t | pulse_us | ) | [virtual] |
1.7.6.1