ScEpTIC.emulator.custom_devices package

Subpackages

Module contents

class ScEpTIC.emulator.custom_devices.CustomDevice

Bases: object

Custom device skeleton

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)

Initializes the device :param print_enabled: enables/disables print messages :return: the number of clock cycles executed by the MCU during custom device operations

name = 'GENERIC_CUSTOM_DEVICE'
run_logic()

Runs the logic of the custom device :return: the number of clock cycles executed by the MCU during custom device operations

setup(system_model)

Sets up the custom device. Note that this is a callback called by the system model :param system_model: the system model