Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
Serial_Sim_LIS3MDL.h
Go to the documentation of this file.
1#ifndef SERIAL_SIM_LIS3MDL_H
2#define SERIAL_SIM_LIS3MDL_H
3
4#include "Serial_Sim.h"
5
12public:
14
15 bool begin_SPI(int cs) { return true; } // Mock successful initialization
16 bool begin_I2C(int addr) { return true; } // Mock successful initialization
17 bool begin_I2C() { return true; } // Mock successful initialization
18
19 void setDataRate(int rate) {}
20 void setRange(int range) {}
21 void setOperationMode(int mode) {}
22 void setPerformanceMode(int mode) {}
23 void setIntThreshold(int threshold) {}
24 void configInterrupt(bool a, bool b, bool c) {}
25 void configInterrupt(bool a, bool b, bool c, bool d, bool e, bool f) {}
26 int getPerformanceMode() { return 0; } // Mock as 0
27 int getOperationMode() { return 0; } // Mock as 0
28 int getRange() { return 4; } // Mock as 4 Gauss
29 uint16_t getIntThreshold() { return 0; } // Mock as 0
30
31
32
33 int getDataRate() { return 155; } // Mock as 155 Hz
34
35 void getEvent(sensors_event_t *mag) {
37
38 }
39
40};
41
42#endif // SERIAL_SIM_LIS3MDL_H
void configInterrupt(bool a, bool b, bool c, bool d, bool e, bool f)
void getEvent(sensors_event_t *mag)
void setDataRate(int rate)
void setIntThreshold(int threshold)
void setRange(int range)
void configInterrupt(bool a, bool b, bool c)
void setOperationMode(int mode)
void setPerformanceMode(int mode)
bool begin_I2C(int addr)
void updateMag(sensors_event_t *mag)
Definition Serial_Sim.h:94
static SerialSim & getInstance()
Definition Serial_Sim.h:32