Expand description
The hardware-abstraction boundary: CaDevice.
EN 50221 runs over the Linux CA device (/dev/dvb/adapterN/caM): the
application reads/writes the TPDU link-layer byte stream and issues a few
ioctls (reset, slot info, capabilities). The runtime is written entirely
against this trait so it can be driven by a real device (the linux
feature) or by an in-memory mock — which is what makes the state machines
testable without hardware, and enables differential testing against an
external reference (feed both the same mock, compare the emitted
write/ioctl sequences).
Structs§
- Mock
CaDevice - In-memory
CaDevicefor tests and the differential harness. - Recording
CaDevice - A
CaDevicedecorator that records every frame in both directions (plus ioctls) for live-CAM diagnostics. Wrap a real device, run, then dump thelog— or decode it withtrace::decode_log— to get an annotated byte trace without hand-instrumenting the device: - Slot
Info - CA-device slot status (subset of the Linux
ca_slot_infothe runtime needs).
Enums§
- Device
Op - One recorded device operation, for assertions + differential testing.
- Link
Event - One link-layer event for diagnostics, captured in both directions by
RecordingCaDevice.
Traits§
- CaDevice
- The link-layer device the EN 50221 runtime drives.