# `ExDlt645.VirtualBus`
[🔗](https://github.com/Ultraluv/ex_dlt645/blob/v0.1.0/lib/ex_dlt645/virtual_bus.ex#L1)

In-memory virtual serial bus for DL/T 645 communications.

Simulates an RS-485 multi-drop serial bus in memory without requiring
physical serial hardware or operating-system pseudo-terminals (`pty`).

# `attach`

Attaches a transport peer to the virtual bus.

# `broadcast`

Broadcasts binary data to all peers on the bus except the sender.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `default_name`

Returns the default registered name for the shared virtual bus.

# `detach`

Detaches a transport peer from the virtual bus.

# `get_or_start`

Retrieves the virtual bus process or starts one if not already running.

# `peers`

Returns the list of currently attached peer PIDs on the bus.

# `start_link`

Starts a virtual bus GenServer with the given options.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
