Skip to main content
Open topic with navigation

mostEventChannel, mostEventTime, mostEventOrigTime, mostEventTimeNs

CAPL Functions » MOST » mostEventChannel, mostEventTime, mostEventOrigTime, mostEventTimeNs Valid for: CANoe DE Note
The following functions can be used within the event procedures for MOST controller events to call up further information on events.

Function Syntax

  • long mostEventChannel();
  • dword mostEventTime();
  • dword mostEventOrigTime();
  • float mostEventTimeNs();

Description

  • long mostEventChannel() returns the channel over which the event arrived.
  • dword mostEventTime() returns the time stamp of the event (Units: 10 µs).
  • dword mostEventOrigTime() returns the hardware-generated time stamp of the event (Units: 10 µs).
  • float mostEventTimeNs() returns the time stamp of the event (Units: 1 ns).

Parameters

Return Values

Time stamp

Example

OnMostNodeAdr(long nodeadr)
{
    write("Node address changed to %04X on channel %d at %fs",
          nodeadr,
          mostEventChannel(),
          mostEventTime() / 100000.0);
}