List of all members.
Classes |
struct | config_t |
| STM32_PWM configuration structure. More...
|
Public Types |
enum | pwm_stm32_channel_t { PWM_STM32_CHANNEL_1,
PWM_STM32_CHANNEL_2,
PWM_STM32_CHANNEL_3,
PWM_STM32_CHANNEL_4
} |
| enum of timer channel
|
Public Member Functions |
| Pwm_stm32 (config_t 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.
|
Constructor & Destructor Documentation
Constructor.
- Parameters:
-
config | Configuration structure |
Member Function Documentation
Initialize the hardware line for servos.
- Returns:
- Success
Implements Pwm.
Set pulse period.
- Parameters:
-
period_us | Pulse period in us |
- Returns:
- Success
Implements Pwm.
Set pulse width.
- Parameters:
-
pulse_us | Pulse length in us |
- Returns:
- Success
Implements Pwm.
The documentation for this class was generated from the following files:
- /home/travis/build/lis-epfl/MAVRIC_Library/hal/stm32/pwm_stm32.hpp
- /home/travis/build/lis-epfl/MAVRIC_Library/hal/stm32/pwm_stm32.cpp