aversive_10-03-12/modules/devices/servo/multiservo/multiservo.h File Reference

#include <aversive.h>
#include <multiservo_config.h>

Go to the source code of this file.

Data Structures

struct  multiservo_element
struct  multiservo

Functions

void multiservo_init (void)
int8_t multiservo_add (volatile uint8_t *port, uint8_t bitnum)
void multiservo_del (int8_t id)
void multiservo_set (int8_t id, uint16_t val)

Variables

struct multiservo g_multiservo


Function Documentation

int8_t multiservo_add ( volatile uint8_t *  port,
uint8_t  bitnum 
)

void multiservo_del ( int8_t  id  ) 

void multiservo_init ( void   ) 

Definition at line 104 of file multiservo.c.

References cbi, g_multiservo, multiservo::id_prev, IRQ_LOCK, IRQ_UNLOCK, sbi, and TIME_1MS.

void multiservo_set ( int8_t  id,
uint16_t  val_us 
)

Set multiservo angle. Specify value in us. WARNING : should be (much) bigger than 0

Definition at line 170 of file multiservo.c.

References multiservo::elts, g_multiservo, IRQ_LOCK, IRQ_UNLOCK, TIME_1MS, and multiservo_element::value.


Variable Documentation

Definition at line 29 of file multiservo.c.

Referenced by multiservo_add(), multiservo_del(), multiservo_init(), multiservo_set(), and SIGNAL().


Generated on Fri Mar 12 06:32:06 2010 for AVR by  doxygen 1.5.6