ChibiOS/EX  1.2.0
l3gd20.c File Reference

L3GD20 MEMS interface module code. More...

#include "hal.h"
#include "l3gd20.h"

Go to the source code of this file.

Functions

static void l3gd20SPIReadRegister (SPIDriver *spip, uint8_t reg, size_t n, uint8_t *b)
 Reads a generic register value using SPI. More...
 
static void l3gd20SPIWriteRegister (SPIDriver *spip, uint8_t reg, size_t n, uint8_t *b)
 Writes a value into a generic register using SPI. More...
 
static size_t gyro_get_axes_number (void *ip)
 Return the number of axes of the BaseGyroscope. More...
 
static msg_t gyro_read_raw (void *ip, int32_t axes[L3GD20_GYRO_NUMBER_OF_AXES])
 Retrieves raw data from the BaseGyroscope. More...
 
static msg_t gyro_read_cooked (void *ip, float axes[])
 Retrieves cooked data from the BaseGyroscope. More...
 
static msg_t gyro_sample_bias (void *ip)
 Samples bias values for the BaseGyroscope. More...
 
static msg_t gyro_set_bias (void *ip, float *bp)
 Set bias values for the BaseGyroscope. More...
 
static msg_t gyro_reset_bias (void *ip)
 Reset bias values for the BaseGyroscope. More...
 
static msg_t gyro_set_sensivity (void *ip, float *sp)
 Set sensitivity values for the BaseGyroscope. More...
 
static msg_t gyro_reset_sensivity (void *ip)
 Reset sensitivity values for the BaseGyroscope. More...
 
static msg_t gyro_set_full_scale (L3GD20Driver *devp, l3gd20_fs_t fs)
 Changes the L3GD20Driver gyroscope fullscale value. More...
 
void l3gd20ObjectInit (L3GD20Driver *devp)
 Initializes an instance. More...
 
void l3gd20Start (L3GD20Driver *devp, const L3GD20Config *config)
 Configures and activates L3GD20 Complex Driver peripheral. More...
 
void l3gd20Stop (L3GD20Driver *devp)
 Deactivates the L3GD20 Complex Driver peripheral. More...
 

Detailed Description

L3GD20 MEMS interface module code.

Definition in file l3gd20.c.