EtherCAT.Slave.Status (ethercat v0.5.0)

Copy Markdown View Source

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

state()

@type state() :: :init | :preop | :safeop | :op | :bootstrap | :down

t()

@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()
}