Skip to main content

Module adapters

Module adapters 

Source
Expand description

In-memory adapters for unit tests and host-side simulators. None of these touch real hardware; they exist so the trait surface is exercisable end-to-end without bring-up of a board.

Structs§

MockBleAdvertiser
In-memory BLE advertiser; captures advertised payloads in last.
MockEntropy
Simple deterministic RNG for tests. Uses xorshift64* seeded from a constructor argument. Not cryptographically secure — production drivers must implement Entropy against a real HW-RNG.
MockLoraRadio
In-memory LoRa radio. Implements both send and recv against a pair of FIFO buffers. Tests typically pre-load inbox and inspect outbox after the unit under test runs.
MockNfcReader
In-memory NFC reader — read returns frames previously pushed via MockNfcReader::enqueue.
MockSecureElement
SecureElement backed by a fixed seed. Useful for tests and host simulators; should never be used in a production build because it keeps the seed in plain RAM.

Enums§

MockError
Errors from the mock adapters.

Constants§

MOCK_FRAME_CAP
Maximum frame length carried by MockLoraRadio.
MOCK_QUEUE_CAP
Maximum number of frames queued in the radio outbox / inbox.