Hw Transport
Transport-agnostic hardware transport interface.
Extends KmpHwTransport (UniFFI callback) with session configuration and lifecycle management. Each transport implementation (BLE, USB, etc.) provides its own framing, fragmentation, and connection handling.
The Rust MPC SDK interacts with this via sendToHw/recvFromHw. Protocol classes use the session properties and drainIncomingBuffer for protocol-level coordination.
Properties
Functions
Link copied to clipboard
abstract suspend fun drainIncomingBuffer(stabilizationMs: Long = 500, maxWaitMs: Long = 5000): List<ByteArray>
Drain incoming buffer after batch-send operations. Clears stale data from the transport buffer between protocol steps.
Link copied to clipboard