xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Macros | Functions | Variables
gyro.c File Reference

L3GD20 Gyroscope API Implementation. More...

#include <stdlib.h>
#include <stdint.h>
#include <avr/io.h>
#include <twi.h>
#include <gyro.h>
#include <error.h>
#include <config.h>

Go to the source code of this file.

Macros

#define GYROREG_CTRL1   0x20
 Gyroscope Control Register 1. More...
 
#define GYROREG_CTRL4   0x23
 Gyroscope Control Register 4. More...
 
#define GYROREG_OUTXL   0x28
 First Gyroscope Output Register. More...
 

Functions

Error gyroWriteByte (uint8_t reg, uint8_t val)
 Write a Gyroscope Register. More...
 
Error gyroInit (GyroRange r)
 Initializes the Gyroscope. More...
 
Error gyroRead (Vector3f *v)
 Get a set of gyroscope data. More...
 

Variables

GyroRange gyroRange
 Stored range to scale returned values. More...
 

Detailed Description

L3GD20 Gyroscope API Implementation.

Definition in file gyro.c.