Kitt.Encoder.decode_frame

You're seeing just the function decode_frame, go back to Kitt.Encoder module for more information.
Link to this function

decode_frame(message, opts \\ [])

View Source

Specs

decode_frame(binary(), [{:format, :hex | :binary}]) ::
  {:ok, message()} | {:error, term()}

Takes an encoded DSRC Message Frame and decodes it to a Kitt struct of the encoded type.

Data elements contained within the struct as sub-values with a defined Kitt struct type are recursively instantiated as well.

The default input format is a hexadecimal string encoding unless specified by passing the optional keyword argument format: :hex | :binary

Returns the struct wrapped in an :ok tuple or an {:error, reason} tuple.