XMAVLink.Message protocol (xmavlink v0.4.3)

View Source

Summary

Types

t()

All the types that implement this protocol.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

pack(message, version)

@spec pack(t(), 1 | 2) ::
  {:ok, XMAVLink.Types.message_id(),
   {:ok, XMAVLink.Types.crc_extra(), pos_integer(),
    :broadcast | :system | :system_component | :component}, binary()}
  | {:error, String.t()}