Lamp-Da 0.1
A compact lantern project
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions | Variables
simulator Namespace Reference

Simulator dedicated namespace. More...

Namespaces

namespace  globals
 Define the global scope of the simulator.
 
namespace  mock_battery
 Encapsulate the mock battery signals.
 
namespace  mock_electrical
 Encapsulate the mock electrical simulation signals.
 
namespace  mock_gpios
 Encapsulate the mock GPIO signals.
 
namespace  mock_indicator
 Encapsulate the mock indicator signals.
 
namespace  mock_registers
 Encapsulate the mock board registers signals.
 
namespace  time_mocks
 Encapsulate the mock time signals.
 

Classes

class  BQ25713Mock
 
class  BQ76905Mock
 
struct  defaultSimulation
 
class  IntegratedCircuitMock_I
 
struct  simulator
 

Typedefs

using _LampTy = ::lampda::modes::hardware::LampTy
 

Functions

bool is_output_enabled ()
 
void elec_mock_loop ()
 
void start_electrical_mock ()
 
void stop_electrical_mock ()
 
void read_and_update_parameters ()
 Read parameters from the parameter file, and update the simulation.
 

Variables

float targetOTGVoltage = 0.0
 
static const char * fileName = "./simulator/resources/simulation_parameters.txt"
 
static const char * batteryVoltageKey = "batt_V"
 
static const char * vbusVoltageKey = "vbus_V"
 
static const char * cpuTemperatureKey = "cpu_temp"
 
static const char * addedAlgoDelayKey = "algo_del"
 
constexpr int ledW = _LampTy::maxWidth
 
constexpr int ledH = _LampTy::maxOverflowHeight
 
constexpr int ledCount = _LampTy::ledCount
 
constexpr float fLedW = _LampTy::maxWidthFloat
 
constexpr float fResidueW = 1 / (2 * fLedW - 2 * floor(fLedW) - 1)
 

Detailed Description

Simulator dedicated namespace.

if defined, will display colors with the same brightness to debug the color bending

This file defines the common interface for all IC mock. They should have access to the electrical simulator, and an I2C interface