Loading...
Searching...
No Matches

Data Structures

struct  A3G4250D_t
 

Functions

A3G4250D_t A3G4250D_init (A3G4250D_t *, SPI_t *, GPIOpin_t, const float, const uint8_t *, const int8_t *)
 Initialiser for a A3G4250D gyroscope.
 
void A3G4250D_update (A3G4250D_t *)
 Updates internally stored gyro readings.
 
void A3G4250D_readGyro (A3G4250D_t *, float *)
 Read 3-axis floating point gyro rates.
 
void A3G4250D_readRawBytes (A3G4250D_t *, uint8_t *)
 Read raw 3-axis data.
 
void A3G4250D_processRawBytes (A3G4250D_t *, uint8_t *, float *)
 Process raw 3-axis data to floating point gyro rates.
 

Detailed Description

Function Documentation

◆ A3G4250D_init()

A3G4250D_t A3G4250D_init ( A3G4250D_t * gyro,
SPI_t * spi,
GPIOpin_t cs,
float sensitivity,
const uint8_t * axes,
const int8_t * sign )

Initialiser for a A3G4250D gyroscope.

Parameters
*gyroPointer to A3G4250D struct to be initialised.
*portPointer to GPIO port struct.
csDevice chip select address.
scaleSelected scale for read gyro rates.
*axesArray defining sensor mounting axes.
Returns
NULL.

Definition at line 28 of file a3g4250d.c.

◆ A3G4250D_update()

void A3G4250D_update ( A3G4250D_t * gyro)

Updates internally stored gyro readings.

Parameters
*gyroPointer to gyro struct.
Returns
NULL.

Definition at line 79 of file a3g4250d.c.

◆ A3G4250D_readGyro()

void A3G4250D_readGyro ( A3G4250D_t * gyro,
float * out )

Read 3-axis floating point gyro rates.

Parameters
*gyroPointer to gyro struct.
*outFloating point gyro rate array.
Returns
NULL.

Definition at line 65 of file a3g4250d.c.

◆ A3G4250D_readRawBytes()

void A3G4250D_readRawBytes ( A3G4250D_t * gyro,
uint8_t * out )

Read raw 3-axis data.

Parameters
*gyroPointer to gyro struct.
*outRaw 3-axis data array to write.
Returns
NULL.

Definition at line 109 of file a3g4250d.c.

◆ A3G4250D_processRawBytes()

void A3G4250D_processRawBytes ( A3G4250D_t * gyro,
uint8_t * bytes,
float * out )

Process raw 3-axis data to floating point gyro rates.

Parameters
*gyroPointer to gyro struct.
*bytesRaw 3-axis data array.
*outProcessed 3-axis data array to write.
Returns
NULL.

Definition at line 94 of file a3g4250d.c.