Loading...
Searching...
No Matches

Data Structures

struct  AIS3624DQ_t
 

Functions

AIS3624DQ_t AIS3624DQ_init (AIS3624DQ_t *, SPI_t *, GPIOpin_t, const uint8_t, const uint8_t *, const int8_t *)
 Initialiser for a AIS3624DQ accelerometer.
 
void AIS3624DQ_update (Accel_t *)
 Updates internally stored acceleration readings.
 
void AIS3624DQ_readAccel (Accel_t *, float *)
 Read 3-axis floating point accelerations.
 
void AIS3624DQ_readRawBytes (Accel_t *, uint8_t *)
 Read raw 3-axis data.
 
void AIS3624DQ_processRawBytes (Accel_t *, uint8_t *, float *)
 Process raw 3-axis data to floating point accelerations.
 

Detailed Description

Function Documentation

◆ AIS3624DQ_init()

AIS3624DQ_t AIS3624DQ_init ( AIS3624DQ_t * accel,
SPI_t * spi,
GPIOpin_t cs,
uint8_t scale,
const uint8_t * axes,
const int8_t * sign )

Initialiser for a AIS3624DQ accelerometer.

Parameters
*accelPointer to AIS3624DQ struct to be initialised.
*spiPointer to SPI peripheral struct.
csDevice chip select GPIO.
scaleSelected scale for read accelerations.
*axesArray defining sensor mounting axes.
Returns
NULL.

Definition at line 29 of file ais3624dq.c.

◆ AIS3624DQ_update()

void AIS3624DQ_update ( Accel_t * accel)

Updates internally stored acceleration readings.

Parameters
*accelPointer to accel struct.
Returns
NULL.

Definition at line 106 of file ais3624dq.c.

◆ AIS3624DQ_readAccel()

void AIS3624DQ_readAccel ( Accel_t * accel,
float * out )

Read 3-axis floating point accelerations.

Parameters
*accelPointer to accel struct.
*outFloating point acceleration array.
Returns
NULL.

Definition at line 93 of file ais3624dq.c.

◆ AIS3624DQ_readRawBytes()

void AIS3624DQ_readRawBytes ( Accel_t * accel,
uint8_t * out )

Read raw 3-axis data.

Parameters
*accelPointer to accel struct.
*outRaw 3-axis data array to write.
Returns
NULL.

Definition at line 137 of file ais3624dq.c.

◆ AIS3624DQ_processRawBytes()

void AIS3624DQ_processRawBytes ( Accel_t * accel,
uint8_t * bytes,
float * out )

Process raw 3-axis data to floating point accelerations.

Parameters
*accelPointer to accel struct.
*bytesRaw 3-axis data array.
*outProcessed 3-axis data array to write.
Returns
NULL.

Definition at line 121 of file ais3624dq.c.