High-level driver for easy handling of servo motors. More...

Detailed Description

High-level driver for easy handling of servo motors.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Joakim NohlgÄrd joaki.nosp@m.m.no.nosp@m.hlgar.nosp@m.d@ei.nosp@m.stec..nosp@m.se

Definition in file servo.h.

#include "periph/pwm.h"
+ Include dependency graph for servo.h:

Go to the source code of this file.

Data Structures

struct  servo_t
 Descriptor struct for a servo. More...
 

Functions

int servo_init (servo_t *dev, pwm_t pwm, int pwm_channel, unsigned int min, unsigned int max)
 Initialize a servo motor by assigning it a PWM device and channel. More...
 
void servo_set (const servo_t *dev, unsigned int pos)
 Set the servo motor to a specified position. More...