Lamp-Da
0.1
A compact lantern project
Loading...
Searching...
No Matches
simulator
electrical
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
11
#include "
simulator/include/hardware_influencer.h
"
12
13
#include "
src/system/hal/gpio.h
"
14
15
#include "
src/system/bsp/text_out.h
"
16
17
#include <map>
18
#include <memory>
19
20
namespace
simulator
{
21
22
class
BQ76905Mock
:
public
IntegratedCircuitMock_I
23
{
24
public
:
25
BQ76905Mock
()
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
38
protected
:
39
private
:
40
// Create instance of registers data structure
41
inline
static
bq76905::BQ76905::Regt
IcRegisters;
42
};
43
44
}
// namespace simulator
45
46
#endif
simulator::BQ76905Mock
Definition:
BQ76905_mock.h:23
simulator::IntegratedCircuitMock_I
Definition:
i_ic.h:20
gpio.h
Interface for the platform specific GeneralPurposeInputOutputs.
hardware_influencer.h
Handle the physical simulation paremeters of a real lamp.
i_ic.h
Electrical simulation interface with the electrical simulator.
simulator
Simulator dedicated namespace.
Definition:
BQ25713_mock.h:24
bq76905::BQ76905::Regt
Definition:
BQ76905.h:336
text_out.h
Convertion header to use the text out functions from C code.
Generated by
1.9.6