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§
- Mock
BleAdvertiser - In-memory BLE advertiser; captures advertised payloads in
last. - Mock
Entropy - Simple deterministic RNG for tests. Uses xorshift64* seeded from a
constructor argument. Not cryptographically secure — production
drivers must implement
Entropyagainst a real HW-RNG. - Mock
Lora Radio - In-memory LoRa radio. Implements both send and recv against a pair
of FIFO buffers. Tests typically pre-load
inboxand inspectoutboxafter the unit under test runs. - Mock
NfcReader - In-memory NFC reader —
readreturns frames previously pushed viaMockNfcReader::enqueue. - Mock
Secure Element - 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§
- Mock
Error - 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.