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:
:idThe frame id (Integer).:nameThe frame name.:byte_numberThe number of data bytes in this frame.:raw_dataThe raw bytes received on the CAN network.:network_nameThe name of the CAN network as defined in your YAML file.:created_atTheDateTimeat which theStructhas been created in OTP.:reception_timestampTheDateTimeat which the frame was received by the kernel.:signalsAMapof the signals contained in this frame.
Summary
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"