ExAIS.Data.Ais (ExAis v0.2.5)

View Source

Handle decoding of the AIS Payload to a convenient Map.

Summary

Functions

Parse an AIS payload. Takes a bitstring() payload and non_neg_integer() padding and return {:ok, Map} when decoding succeede, or {:invalid, %{}}.

Functions

all_msg_types()

Parse an AIS payload. Takes a bitstring() payload and non_neg_integer() padding and return {:ok, Map} when decoding succeede, or {:invalid, %{}}.

parse(payload, padding, msg_types \\ [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27])

@spec parse(binary(), non_neg_integer(), [non_neg_integer()]) ::
  {:invalid, %{}} | {:ok, any()}

valid_type_5(msg_type, payload)

(macro)