ScEpTIC.emulator.custom_devices.HibernusVoltageMonitor package

Submodules

ScEpTIC.emulator.custom_devices.HibernusVoltageMonitor.hibernus_energy_model module

class ScEpTIC.emulator.custom_devices.HibernusVoltageMonitor.hibernus_energy_model.HibernusEnergyModel

Bases: VoltageDrawner

Energy model of the voltage detection circuit of Hibernus It uses an external voltage divider (and a voltage comparator internal to the MCU, tied to two Interrupt Service Routines)

circuit_components = {'R': '200K'}
get_drained_energy(t)

Calculates the energy consumed by the component. :param t: elapsed time :return: the consumed energy

Module contents

class ScEpTIC.emulator.custom_devices.HibernusVoltageMonitor.HibernusVoltageMonitor

Bases: CustomDevice

get_signals()
Returns:

a list with the signals collected from this device

get_signals_strings()
Returns:

a list with the names of the signals that may be collected from this device

init(print_enabled=True)

Init not required :param print_enabled: enables/disables print messages

run_logic()

Logic included in energy analysis

setup(system_model)

Setup the FBTC device. Note that this is a callback called by the system model :param system_model: the system model