MRAS
Multi Rocket Avionics System
|
A subsystem for the ADXL375 accelerometer. More...
#include <Sensor_ADXL375.h>
Public Member Functions | |
Sensor_ADXL375 (uint8_t id, uint8_t chip_select, SPIClass &spi, uint32_t frequency) | |
Construct a new Sensor_ADXL375 object. | |
int8_t | setup () override |
int8_t | loop () override |
Public Member Functions inherited from Subsystem | |
virtual const char * | get_name ()=0 |
virtual int8_t | setup ()=0 |
virtual int8_t | loop ()=0 |
uint8_t | get_id () const |
int8_t | get_status () const |
int8_t | self_test () const |
bool | add_subscriber (Subsystem *subscriber) |
Subsystem (uint8_t id) | |
Additional Inherited Members | |
Protected Member Functions inherited from Subsystem | |
void | log (const char fmt[],...) |
virtual void | on_message (SystemMessage *msg)=0 |
void | publish (SystemMessage *msg) |
Static Protected Member Functions inherited from Subsystem | |
static void | buzzer (uint16_t frequency, uint32_t duration, bool block=false) |
Protected Attributes inherited from Subsystem | |
int8_t | status = 0 |
int8_t | self_test_result = -1 |
A subsystem for the ADXL375 accelerometer.
This Subsystem handles the setup and reading of data from the ADXL375 accelerometer.
This Subsystem emits AccelerometerDataMsg messages to its subscribers.
|
inline |
Construct a new Sensor_ADXL375 object.
id | The ID of the subsystem |
chip_select | The chip select pin for the ADXL375 |
spi | The SPI object to use |
frequency | The frequency to use for the SPI bus |
|
overridevirtual |
Implements Subsystem.
|
overridevirtual |
Implements Subsystem.