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