36#ifndef IMT_BASE_DFF_RUNTIME_MOCK_RUNTIMEMOCK_H
37#define IMT_BASE_DFF_RUNTIME_MOCK_RUNTIMEMOCK_H
193 std::deque<EventData> m_sendEventData;
Interface of an executable which is called by the runtime once an event has to be processed.
int16_t CoreHandle
A CoreHandle is used to identify an executable with a unique number (similar to a phone number).
Container which stores the received data.
uint16_t protocolIdentifier
Unique identifier of the protocol.
uint8_t dataBuffer[EVENTDATA_SIZE_BYTES]
Data buffer that holds the message bytes.
uint32_t dataSize
Actual size of the serialized data in bytes.
int32_t eventDataSizeBytes
Maximum size of the serialized data in bytes.
RuntimeCore::CoreHandle receiverHandle
Unique identifier of the executable which receives the event.
ExecutableIfc * executable
Executable which receives the message.
Mocking object which stores all relevant information for runtime.
int16_t m_coreCreateInvokeCounter
Number of calls to the create function.
uint32_t m_appIsrEntryCounter
Number of interrupt service routine entries.
bool m_interruptsEnabled
Indicates whether interrupts are enabled or not.
static void process1msTick()
Process the 1ms tick in order to fire active timers if they are expired.
void enqueueEvent(RuntimeMock::EventData &event)
Add an event to the list of queued events for the scheduler.
~RuntimeMock()
Destructor.
RuntimeMock()
Default constructor.
uint32_t getNumberOfQueuedEvents()
Returns the number of events which are queued to be scheduled.
uint32_t m_appIsrExitCounter
Number of interrupt service routine exits.
int16_t m_executablesAvailable
Number of remaining executables.
EventData const & getQueuedEvent(uint32_t index)
Returns the event at position index from the list of queued events for the scheduler.
bool m_appInIsr
Indicates whether an interrupt service routine is currently executed or not.
bool scheduleEvent()
Process one event.
void scheduleEvents(uint32_t durationMs)
Process scheduler events and increase the 1ms system tick count for the given durationMs [ms].
ExecutableIfc * m_executablePool[imt::base::dff::runtime::EXECUTABLES_MAX]
Pool of executables.
static RuntimeMock & getSingle()
Returns the one and only instance.
uint32_t m_freeRunningTimerTicks
Number of free running timer ticks.
bool m_isStopped
Indicates whether the dff runtime has been stopped.
This is a application specific file which is used to configure Imt.Base.Core.Math.
unsigned __int16 uint16_t
unsigned __int32 uint32_t