# Events

## MessageEvent

class canlib.kvmlib.MessageEvent(id=None, channel=None, dlc=None, flags=None, data=None, timestamp=None)

  Bases: `LogEvent`

  A CAN message recorded by a Memorator

  asframe()

    Convert this event to a `canlib.Frame`

    Creates a new `canlib.Frame` object with the same contents as this event.

## LogEvent

class canlib.kvmlib.LogEvent(timestamp=None)

  The base class for events recorded by a Memorator.

## RTCEvent

class canlib.kvmlib.RTCEvent(calendartime=None, timestamp=None)

  Bases: `LogEvent`

  An real-time clock message recorded by a Memorator

## TriggerEvent

class canlib.kvmlib.TriggerEvent(type=None, timestamp=None, pretrigger=None, posttrigger=None, trigno=None)

  Bases: `LogEvent`

  A trigger message recorded by a Memorator

## VersionEvent

class canlib.kvmlib.VersionEvent(lioMajor, lioMinor, fwMajor, fwMinor, fwBuild, serialNumber, eanHi, eanLo)

  Bases: `LogEvent`

  A version message recorded by a Memorator

## memoLogEventEx

class canlib.kvmlib.memoLogEventEx

  Low level c type class holding a log event.

  MEMOLOG_TYPE_CLOCK = 1

    The event type used in kvmLogRtcClockEx

  MEMOLOG_TYPE_INVALID = 0

    Invalid MEMOLOG event type

  MEMOLOG_TYPE_MSG = 2

    The event type used in kvmLogMsgEx

  MEMOLOG_TYPE_TRIGGER = 3

    The event type used in kvmLogTriggerEx

  MEMOLOG_TYPE_VERSION = 4

    The event type used in kvmLogVersionEx

  createMemoEvent()

    Convert event to `LogEvent`.

  event

    Structure/Union member