MAV'RIC
Public Member Functions
Pwm Class Reference
Inheritance diagram for Pwm:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual bool init (void)=0
 Initialize the hardware line for servos.
virtual bool set_pulse_width_us (uint16_t pulse_us)=0
 Set pulse width.
virtual bool set_period_us (uint16_t period_us)=0
 Set pulse period.

Member Function Documentation

virtual bool Pwm::init ( void  ) [pure virtual]

Initialize the hardware line for servos.

Returns:
Success

Implemented in Pwm_stm32, Pwm_chibios, Pwm_avr32, and Pwm_dummy.

virtual bool Pwm::set_period_us ( uint16_t  period_us) [pure virtual]

Set pulse period.

Parameters:
period_usPulse period in us
Returns:
Success

Implemented in Pwm_stm32, Pwm_chibios, and Pwm_avr32.

Here is the caller graph for this function:

virtual bool Pwm::set_pulse_width_us ( uint16_t  pulse_us) [pure virtual]

Set pulse width.

Parameters:
pulse_usPulse length in us
Returns:
Success

Implemented in Pwm_stm32, Pwm_chibios, and Pwm_avr32.

Here is the caller graph for this function:


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