View Source Cantastic.Frame (Cantastic v1.0.1)

Cantastic.Frame is a Struct used to represent one CAN frame.

You will receive this Struct fom Cantastic.Receiver each time a frame is received on the CAN network.

The attributes are the following:

  • :id The frame id (Integer).
  • :name The frame name.
  • :byte_number The number of data bytes in this frame.
  • :raw_data The raw bytes received on the CAN network.
  • :network_name The name of the CAN network as defined in your YAML file.
  • :created_at The DateTime at which the Struct has been created in OTP.
  • :reception_timestamp The DateTime at which the frame was received by the kernel.
  • :signals A Map of the signals contained in this frame.

Summary

Functions

Returns a String representation of the frame, used for debugging.

Functions

Returns a String representation of the frame, used for debugging.

Example

iex> Cantastic.Frame.to_string(frame)
"[Frame] my_network - 0x7A1 3 00 AA BB"