Data Structures | |
struct | A3G4250D |
Functions | |
DeviceHandle_t | A3G4250D_init (A3G4250D *, char[DEVICE_NAME_LENGTH], GPIO_TypeDef *, unsigned long, const float, const uint8_t *, const int8_t *) |
Initialiser for a A3G4250D gyroscope. | |
void | A3G4250D_update (A3G4250D *) |
Updates internally stored gyro readings. | |
void | A3G4250D_readGyro (A3G4250D *, float *) |
Read 3-axis floating point gyro rates. | |
void | A3G4250D_readRawBytes (A3G4250D *, uint8_t *) |
Read raw 3-axis data. | |
void | A3G4250D_processRawBytes (A3G4250D *, uint8_t *, float *) |
Process raw 3-axis data to floating point gyro rates. | |
DeviceHandle_t A3G4250D_init | ( | A3G4250D * | gyro, |
char | name[DEVICE_NAME_LENGTH], | ||
GPIO_TypeDef * | port, | ||
unsigned long | cs, | ||
float | sensitivity, | ||
const uint8_t * | axes, | ||
const int8_t * | sign ) |
Initialiser for a A3G4250D gyroscope.
*gyro | Pointer to A3G4250D struct to be initialised. |
*port | Pointer to GPIO port struct. |
cs | Device chip select address. |
scale | Selected scale for read gyro rates. |
*axes | Array defining sensor mounting axes. |
NULL
.Definition at line 27 of file a3g4250d.c.
void A3G4250D_update | ( | A3G4250D * | gyro | ) |
Updates internally stored gyro readings.
*gyro | Pointer to gyro struct. |
NULL
.Definition at line 86 of file a3g4250d.c.
void A3G4250D_readGyro | ( | A3G4250D * | gyro, |
float * | out ) |
Read 3-axis floating point gyro rates.
*gyro | Pointer to gyro struct. |
*out | Floating point gyro rate array. |
NULL
.Definition at line 72 of file a3g4250d.c.
void A3G4250D_readRawBytes | ( | A3G4250D * | gyro, |
uint8_t * | out ) |
Read raw 3-axis data.
*gyro | Pointer to gyro struct. |
*out | Raw 3-axis data array to write. |
NULL
.Definition at line 116 of file a3g4250d.c.
void A3G4250D_processRawBytes | ( | A3G4250D * | gyro, |
uint8_t * | bytes, | ||
float * | out ) |
Process raw 3-axis data to floating point gyro rates.
*gyro | Pointer to gyro struct. |
*bytes | Raw 3-axis data array. |
*out | Processed 3-axis data array to write. |
NULL
.Definition at line 101 of file a3g4250d.c.