# Frames

## Frame

class `canlib.``Frame`(id_, data, dlc=None, flags=0, timestamp=None)

  Represents a CAN message

  Parameters: | id_ – Message id data – Message data, will pad zero to match dlc (if dlc is given) dlc – Message dlc, default is calculated from number of data flags (`canlib.MessageFlag`) – Message flags, default is 0 timestamp – Optional timestamp

  `data`
  `dlc`
  `flags`
  `id`
  `timestamp`

## LINFrame

class `canlib.``LINFrame`(*args, **kwargs)

  Bases: `canlib.frame.Frame`

  Represents a LIN message

  A `Frame` that also has an `info` attribute, which is a `linlib.MessageInfo` or `None`. This attribute is initialized via the `info` keyword-only argument to the constructor.

  `data`
  `dlc`
  `flags`
  `id`
  `info`
  `timestamp`