AvrIO  1.4.5
Bibliothèque C modulaire pour ATMEL AVR
servo.h
1 
18 #include <avrio/defs.h>
19 
20 __BEGIN_C_DECLS
21 /* ========================================================================== */
33 /* internal public functions ================================================ */
34 
40 void vServoInit (void);
41 
47 void vServoEnable (uint8_t ucChannel, bool bEnabled);
48 
53 uint8_t ucServoChannels (void);
54 
60 void vServoSetPulse (uint8_t ucChannel, uint16_t usPulseUs);
61 
67 uint16_t usServoGetPulse (uint8_t ucChannel);
68 
74 /* ========================================================================== */
75 __END_C_DECLS
void vServoSetPulse(uint8_t ucChannel, uint16_t usPulseUs)
Réglage d&#39;une durée d&#39;impulsion.
uint8_t ucServoChannels(void)
Nombre de voies.
uint16_t usServoGetPulse(uint8_t ucChannel)
Lecture de la durée d&#39;impulsion réglée.
void vServoEnable(uint8_t ucChannel, bool bEnabled)
Valide ou non un servomoteur.
void vServoInit(void)
Initialise le module.