View Source Cantastic.Signal (Cantastic v1.0.1)

Cantastic.Signal is a Struct used to represent one CAN frame signal.

Each received Cantastic.Frame contains a list of :signals

The attributes are the following:

  • :name The signal's name, as defined in your YAML file.
  • :frame_name The signal's frame name.
  • :value The interpreted value based on the rules defined in you YAML file.
  • :raw_value The raw value received on the CAN network.
  • :unit The unit defined in your YAML file (String).
  • :kind The kind defined in your YAML file, one off:
    • :static
    • :integer
    • :decimal
    • :enum

Summary

Functions

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

Functions

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

Example

iex> Cantastic.Signal.to_string(signal)
"[Signal] my_frame_name.signal_name = 12"