Skip to main content

Module conn

Module conn 

Source
Expand description

The ASH link layer as a sans-IO state machine.

Connection does no I/O and reads no clock: feed it received frames with Connection::handle_frame, timer expiries with Connection::handle_timeout, and payloads with Connection::send; take bytes to write from Connection::poll_transmit and events from Connection::poll_event. The same machine serves both ends of the link (Role), which is how the repository’s NCP simulator speaks ASH.

Structs§

Config
Link timing and window settings. The defaults follow UG101.
Connection
One end of an ASH link.
Counters
Link counters, for diagnostics.

Enums§

DownReason
Why the link went down.
Event
Something the link wants the layer above to know.
Role
Which end of the link this is.
SendError
Connection::send refused a payload.