nerves_hal v0.7.0 Nerves.HAL.Device.Adapter behaviour

Link to this section Summary

Link to this section Functions

Link to this function

call(pid, call, timeout \\ 5000)

Link to this function

cast(pid, request)

Link to this function

handle_call(request, from, s)

Link to this function

handle_cast(request, s)

Link to this function

handle_info(data, s)

Link to this function

start_link(mod, handler, adapter_opts)

Link to this section Callbacks

Link to this callback

attributes(arg1)

attributes(Nerves.HAL.Device.t()) :: map()
Link to this callback

handle_connect(arg1, state)

handle_connect(Nerves.HAL.Device.t(), state :: term()) ::
  {:ok, new_state :: term()} | {:error, reason :: term(), new_state :: term()}