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
13#include "src/system/hal/gpio.h"
14
16
17#include <map>
18#include <memory>
19
20namespace simulator {
21
23{
24public:
26 {
27 // fill register map
28 //_registerMap[bq76905::CHARGE_OPTION_0_ADDR] = std::make_unique<Register>();
29 }
30
31 void run_electrical_update() override
32 {
33 // TODO: update battery voltages
34 }
35
36 uint8_t get_i2c_address() const override { return bq76905::BQ76905::BQ76905addr; }
37
38protected:
39private:
40 // Create instance of registers data structure
41 inline static bq76905::BQ76905::Regt IcRegisters;
42};
43
44} // namespace simulator
45
46#endif
Definition: BQ76905_mock.h:23
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: BQ25713_mock.h:24
Definition: BQ76905.h:336
Convertion header to use the text out functions from C code.