atecc508a v0.1.0 ATECC508A.Transport behaviour

ATECC508A transport behaviour

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: {module(), any()}

Link to this section Functions

Link to this function request(arg, payload, timeout, response_payload_len)
request(t(), binary(), non_neg_integer(), non_neg_integer()) ::
  {:ok, binary()} | {:error, atom()}

Link to this section Callbacks

Link to this callback init(args)
init(args :: any()) :: {:ok, t()} | {:error, atom()}
Link to this callback request(id, payload, timeout, response_payload_len)
request(
  id :: any(),
  payload :: binary(),
  timeout :: non_neg_integer(),
  response_payload_len :: non_neg_integer()
) :: {:ok, binary()} | {:error, atom()}