Kitt.Encoder.decode_frame
You're seeing just the function
decode_frame
, go back to Kitt.Encoder module for more information.
Specs
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.