Lamp-Da
0.1
A compact lantern project
Loading...
Searching...
No Matches
simulator
include
hardware_influencer.h
Go to the documentation of this file.
1
5
#ifndef HARDWARE_INFLUENCER_H
6
#define HARDWARE_INFLUENCER_H
7
8
#include <cstdint>
9
11
namespace
simulator
{
12
14
namespace
mock_gpios {
15
// update gpios callbacks
16
void
update_callbacks();
17
}
// namespace mock_gpios
18
20
namespace
time_mocks {
21
void
reset();
22
}
23
25
namespace
mock_registers {
26
extern
bool
isDeepSleep;
27
extern
float
cpuTemperature;
28
extern
uint32_t addedAlgoDelay;
29
// run the other thread functions
30
extern
bool
shouldStopThreads;
31
void
run_threads();
32
}
// namespace mock_registers
33
35
namespace
mock_indicator {
36
uint32_t get_color();
37
}
38
40
namespace
mock_electrical {
41
// output at the power rail
42
extern
float
powerRailVoltage;
43
extern
float
powerRailCurrent;
44
// output at the led output
45
extern
float
outputVoltage;
46
extern
float
outputCurrent;
47
// output on vbus rail
48
extern
float
vbusVoltage;
49
extern
float
vbusCurrent;
50
51
// voltage applied to the USB input (controled by user)
52
extern
float
inputVbusVoltage;
53
// keep the OTG command voltage
54
extern
float
chargeOtgOutput;
55
}
// namespace mock_electrical
56
58
namespace
mock_battery {
59
extern
float
voltage;
60
}
61
62
}
// namespace simulator
63
64
#endif
simulator
Simulator dedicated namespace.
Definition:
default_simulation.h:8
Generated by
1.9.6