Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
Adafruit_LIS3MDL Class Reference

Mock LIS3MDL magnetometer sourcing readings from SerialSim. More...

#include <Serial_Sim_LIS3MDL.h>

Collaboration diagram for Adafruit_LIS3MDL:
Collaboration graph

Public Member Functions

 Adafruit_LIS3MDL ()
bool begin_SPI (int cs)
bool begin_I2C (int addr)
bool begin_I2C ()
void setDataRate (int rate)
void setRange (int range)
void setOperationMode (int mode)
void setPerformanceMode (int mode)
void setIntThreshold (int threshold)
void configInterrupt (bool a, bool b, bool c)
void configInterrupt (bool a, bool b, bool c, bool d, bool e, bool f)
int getPerformanceMode ()
int getOperationMode ()
int getRange ()
uint16_t getIntThreshold ()
int getDataRate ()
void getEvent (sensors_event_t *mag)

Detailed Description

Mock LIS3MDL magnetometer sourcing readings from SerialSim.

Note
When to use: magnetometer-dependent code paths during desktop or HIL testing without the physical sensor.

Definition at line 27 of file Serial_Sim_LIS3MDL.h.

Constructor & Destructor Documentation

◆ Adafruit_LIS3MDL()

Adafruit_LIS3MDL::Adafruit_LIS3MDL ( )
inline

Definition at line 29 of file Serial_Sim_LIS3MDL.h.

Member Function Documentation

◆ begin_I2C() [1/2]

bool Adafruit_LIS3MDL::begin_I2C ( )
inline

Definition at line 33 of file Serial_Sim_LIS3MDL.h.

◆ begin_I2C() [2/2]

bool Adafruit_LIS3MDL::begin_I2C ( int addr)
inline

Definition at line 32 of file Serial_Sim_LIS3MDL.h.

◆ begin_SPI()

bool Adafruit_LIS3MDL::begin_SPI ( int cs)
inline

Definition at line 31 of file Serial_Sim_LIS3MDL.h.

◆ configInterrupt() [1/2]

void Adafruit_LIS3MDL::configInterrupt ( bool a,
bool b,
bool c )
inline

Definition at line 40 of file Serial_Sim_LIS3MDL.h.

◆ configInterrupt() [2/2]

void Adafruit_LIS3MDL::configInterrupt ( bool a,
bool b,
bool c,
bool d,
bool e,
bool f )
inline

Definition at line 41 of file Serial_Sim_LIS3MDL.h.

◆ getDataRate()

int Adafruit_LIS3MDL::getDataRate ( )
inline

Definition at line 49 of file Serial_Sim_LIS3MDL.h.

◆ getEvent()

void Adafruit_LIS3MDL::getEvent ( sensors_event_t * mag)
inline

Definition at line 51 of file Serial_Sim_LIS3MDL.h.

◆ getIntThreshold()

uint16_t Adafruit_LIS3MDL::getIntThreshold ( )
inline

Definition at line 45 of file Serial_Sim_LIS3MDL.h.

◆ getOperationMode()

int Adafruit_LIS3MDL::getOperationMode ( )
inline

Definition at line 43 of file Serial_Sim_LIS3MDL.h.

◆ getPerformanceMode()

int Adafruit_LIS3MDL::getPerformanceMode ( )
inline

Definition at line 42 of file Serial_Sim_LIS3MDL.h.

◆ getRange()

int Adafruit_LIS3MDL::getRange ( )
inline

Definition at line 44 of file Serial_Sim_LIS3MDL.h.

◆ setDataRate()

void Adafruit_LIS3MDL::setDataRate ( int rate)
inline

Definition at line 35 of file Serial_Sim_LIS3MDL.h.

◆ setIntThreshold()

void Adafruit_LIS3MDL::setIntThreshold ( int threshold)
inline

Definition at line 39 of file Serial_Sim_LIS3MDL.h.

◆ setOperationMode()

void Adafruit_LIS3MDL::setOperationMode ( int mode)
inline

Definition at line 37 of file Serial_Sim_LIS3MDL.h.

◆ setPerformanceMode()

void Adafruit_LIS3MDL::setPerformanceMode ( int mode)
inline

Definition at line 38 of file Serial_Sim_LIS3MDL.h.

◆ setRange()

void Adafruit_LIS3MDL::setRange ( int range)
inline

Definition at line 36 of file Serial_Sim_LIS3MDL.h.


The documentation for this class was generated from the following file: