Package-level declarations

Types

Link copied to clipboard
data class BootloaderIdentity(val model: String?, val firmwareRevision: String?)

What a bootloader in DFU mode says about itself over DIS; each field is null when absent or unreadable.

Link copied to clipboard

Errors from an nRF52 DFU run, Secure or Legacy, including the bootloader swap.

Link copied to clipboard
sealed interface DfuImage

Which images a DFU package's single .bin carries, and so what START_DFU announces.

Link copied to clipboard

Coarse phases inside DfuUploadTransport.transferFirmware, for UI that must explain a silent wait.

Link copied to clipboard

Common upload-time surface implemented by both SecureDfuTransport (Nordic Secure DFU, service FE59) and LegacyDfuTransport (Nordic Legacy DFU / Adafruit BLEDfu, service 1530).

Link copied to clipboard
data class DfuZipPackage(val initPacket: ByteArray, val firmware: ByteArray, val image: DfuImage = DfuImage.Application)

Contents extracted from a Nordic DFU .zip package.

Link copied to clipboard

Errors specific to the Nordic Legacy DFU protocol. These are a subtype of DfuException so the existing handler error-path code (which catches DfuException) covers both protocols.

Link copied to clipboard

Kable-based transport for the Nordic Legacy DFU protocol (Nordic SDK 11/12 / Adafruit BLEDfu).

Link copied to clipboard
class SecureDfuHandler(meshLink: MeshLink, bleScanner: BleScanner, bleConnectionFactory: BleConnectionFactory, dispatchers: CoroutineDispatchers, timings: FirmwareUpdateTimings = FirmwareUpdateTimings())

Updates nRF52 devices over BLE from a package the caller has already obtained.

Link copied to clipboard
class SecureDfuTransport(scanner: BleScanner, connectionFactory: BleConnectionFactory, address: String, dispatcher: CoroutineDispatcher, timings: FirmwareUpdateTimings = FirmwareUpdateTimings()) : DfuUploadTransport

Kable-based transport for the Nordic Secure DFU (Secure DFU over BLE) protocol.