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(uint32_t startClock = 0);
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;
53extern float inputVbusCurrent;
54// keep the OTG command voltage
55extern float chargeOtgOutput;
56} // namespace mock_electrical
57
59namespace mock_battery {
60extern float voltage;
61extern float current;
62} // namespace mock_battery
63
64} // namespace simulator
65
66#endif
Simulator dedicated namespace.
Definition: BQ25713_mock.h:23