MAV'RIC
Classes | Public Types | Public Member Functions
Pwm_stm32 Class Reference
Inheritance diagram for Pwm_stm32:
Inheritance graph
[legend]
Collaboration diagram for Pwm_stm32:
Collaboration graph
[legend]

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:
configConfiguration structure

Member Function Documentation

bool Pwm_stm32::init ( void  ) [virtual]

Initialize the hardware line for servos.

Returns:
Success

Implements Pwm.

Here is the caller graph for this function:

bool Pwm_stm32::set_period_us ( uint16_t  period_us) [virtual]

Set pulse period.

Parameters:
period_usPulse period in us
Returns:
Success

Implements Pwm.

bool Pwm_stm32::set_pulse_width_us ( uint16_t  pulse_us) [virtual]

Set pulse width.

Parameters:
pulse_usPulse length in us
Returns:
Success

Implements Pwm.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines