Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
BQ76905_mock.h
Go to the documentation of this file.
1
5#ifndef BQ76905_MOCK_H
6#define BQ76905_MOCK_H
7
8#include "i_ic.h"
9
10// hardwaree influencer simulator
12
15
16#include <map>
17#include <memory>
18
19namespace simulator {
20
22{
23public:
25 {
26 // fill register map
27 //_registerMap[bq76905::CHARGE_OPTION_0_ADDR] = std::make_unique<Register>();
28 }
29
30 void run_electrical_update() override
31 {
32 // TODO: update battery voltages
33 }
34
35 uint8_t get_i2c_address() const override { return bq76905::BQ76905::BQ76905addr; }
36
37protected:
38private:
39 // Create instance of registers data structure
40 inline static bq76905::BQ76905::Regt IcRegisters;
41};
42
43} // namespace simulator
44
45#endif
Definition: BQ76905_mock.h:22
Interface for the platform specific GeneralPurposeInputOutputs.
Handle the physical simulation paremeters of a real lamp.
Electrical simulation interface with the electrical simulator.
Simulator dedicated namespace.
Definition: default_simulation.h:8
Interface for the platform specific debug and prints.
Definition: BQ76905.h:336