ARMEBS4  revision-26.06.2015
Data Structures | Functions

Measures the board's rate of rotation. More...

Collaboration diagram for Gyroscope:

Data Structures

struct  gyroscope_data_t
 Gyroscope data. More...
 

Functions

status_e Gyro_Init (void)
 Initialise the gyroscope Accelerometer in initialised for fast acquisition. More...
 
status_e Gyro_Read (struct gyroscope_data_t *measure)
 Read the X, Y and Z values from gyroscope. More...
 
status_e Gyro_Write (uint8_t reg, uint8_t data)
 Write special config to accelrometer. More...
 

Detailed Description

Measures the board's rate of rotation.

gyroscope.jpg

Measures the device's rate of rotation in around each of the three physical axes (x, y, and z).

This kind of device is typically used to :

Function Documentation

status_e Gyro_Init ( void  )

Initialise the gyroscope Accelerometer in initialised for fast acquisition.

Returns
NO_ERROR for no problem

Definition at line 65 of file gyroscope.c.

References bus_init(), ERROR_HW_FAILED, Gyro_RD(), Gyro_Write(), and NO_ERROR.

Here is the call graph for this function:

status_e Gyro_Read ( struct gyroscope_data_t measure)

Read the X, Y and Z values from gyroscope.

Parameters
measureThe measure \return NO_ERROR for no problem

Definition at line 88 of file gyroscope.c.

References bus_get(), bus_release(), bus_writeread(), NO_ERROR, gyroscope_data_t::x, gyroscope_data_t::y, and gyroscope_data_t::z.

Here is the call graph for this function:

status_e Gyro_Write ( uint8_t  reg,
uint8_t  data 
)

Write special config to accelrometer.

Parameters
regRegister address to write in
dataData byte to write in this register
Returns
NO_ERROR for no problem

Definition at line 113 of file gyroscope.c.

References bus_get(), bus_release(), bus_write(), and NO_ERROR.

Referenced by Gyro_Init().

Here is the call graph for this function:

Here is the caller graph for this function: