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

List of all members.

Public Member Functions

 Pwm_avr32 (uint8_t id)
 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

Pwm_avr32::Pwm_avr32 ( uint8_t  id)

Constructor.

Parameters:
Servonumber (between 0 and 7)

Member Function Documentation

bool Pwm_avr32::init ( void  ) [virtual]

Initialize the hardware line for servos.

Returns:
Success

Implements Pwm.

Here is the caller graph for this function:

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

Set pulse period.

Parameters:
period_usPulse period in us
Returns:
Success

Implements Pwm.

bool Pwm_avr32::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