Avionics
Core avionics package for CURE flight computers
Loading...
Searching...
No Matches
Serial_Sim_LIS2MDL.h
Go to the documentation of this file.
1#ifndef SERIAL_SIM_LIS2MDL_H
2#define SERIAL_SIM_LIS2MDL_H
3
4#include "Serial_Sim.h"
5
7public:
9
10 bool begin_SPI(int cs) { return true; } // Mock successful initialization SPI
11 bool begin(int addr) { return true; } // Mock successful initialization I2C
12
13 void setDataRate(int rate) {}
14 void enableInterrupts(bool a) {}
15
16 int getDataRate() { return 100; } // Mock as 155 Hz
17
18 void getEvent(sensors_event_t *mag) {
20
21 }
22
23};
24
25#endif // SERIAL_SIM_LIS2MDL_H
bool begin(int addr)
void getEvent(sensors_event_t *mag)
void enableInterrupts(bool a)
void setDataRate(int rate)
void updateMag(sensors_event_t *mag)
Definition Serial_Sim.h:94
static SerialSim & getInstance()
Definition Serial_Sim.h:32