Loading...
Searching...
No Matches

Data Structures

struct  IAM_20380_t
 

Functions

IAM_20380_t IAM_20380_init (IAM_20380_t *, SPI_t *, GPIOpin_t, const float, const uint8_t *, const int8_t *)
 Initialiser for a IAM_20380 gyroscope.
 
void IAM_20380_update (Gyro_t *)
 Updates internally stored gyro readings.
 
void IAM_20380_readGyro (Gyro_t *, float *)
 Read 3-axis floating point gyro rates.
 
void IAM_20380_readRawBytes (Gyro_t *, uint8_t *)
 Read raw 3-axis data.
 
void IAM_20380_processRawBytes (Gyro_t *, uint8_t *, float *)
 Process raw 3-axis data to floating point gyro rates.
 

Detailed Description

Function Documentation

◆ IAM_20380_init()

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

Initialiser for a IAM_20380 gyroscope.

Parameters
*gyroPointer to IAM_20380 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 27 of file iam_20380.c.

◆ IAM_20380_update()

void IAM_20380_update ( Gyro_t * gyro)

Updates internally stored gyro readings.

Parameters
*gyroPointer to gyro struct.
Returns
NULL.

Definition at line 104 of file iam_20380.c.

◆ IAM_20380_readGyro()

void IAM_20380_readGyro ( Gyro_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 90 of file iam_20380.c.

◆ IAM_20380_readRawBytes()

void IAM_20380_readRawBytes ( Gyro_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 135 of file iam_20380.c.

◆ IAM_20380_processRawBytes()

void IAM_20380_processRawBytes ( Gyro_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 119 of file iam_20380.c.