EtherCAT.Simulator.Transport.Raw (ethercat v0.4.2)

Copy Markdown View Source

Public raw transport surface for EtherCAT.Simulator.

Raw transport runs one primary endpoint in single-link mode or paired primary/secondary endpoints in redundant mode. This module exposes raw-edge transport controls and mode-aware introspection without leaking the endpoint worker module into public tests and tooling.

Summary

Types

endpoint_selector()

@type endpoint_selector() :: :primary | :secondary | :all

fault()

@type fault() ::
  {:delay_response, endpoint_selector(), non_neg_integer(), ingress_selector()}

ingress_selector()

@type ingress_selector() :: :primary | :secondary | :all

Functions

clear_faults()

@spec clear_faults() :: :ok | {:error, :not_found}

info()

@spec info() :: {:ok, map()} | {:error, :not_found}

inject_fault(fault)

@spec inject_fault(EtherCAT.Simulator.Transport.Raw.Fault.t() | fault()) ::
  :ok | {:error, :invalid_fault | :not_found}