Current protocol/runtime status for one configured EtherCAT slave.
:down is a runtime connectivity state used when the configured slave no
longer responds. The other states correspond to EtherCAT AL states.
last_al_error_code is diagnostic history; it may remain populated after a
later successful transition.
Summary
Types
@type state() :: :init | :preop | :safeop | :op | :bootstrap | :down
@type t() :: %EtherCAT.Slave.Status{ configuration_error: term() | nil, domains: %{optional(atom()) => EtherCAT.Domain.Status.t()}, last_al_error_code: non_neg_integer() | nil, name: atom(), reason: term() | nil, state: state() }