openlifu.io.LIFUDFU

LIFU Transmitter Firmware Update (DFU) support.

Provides:

Functions

parse_signed_package(pkg)

Parse and integrity-check a signed firmware package.

stm32_crc32(data[, init])

Compute CRC32 compatible with the STM32 CRC peripheral (poly=0x04C11DB7).

Classes

LIFUDFUManager(uart)

Orchestrates firmware updates for a single LIFU transmitter module.

STM32I2CDFUviaMaster(uart[, i2c_addr, ...])

I2C DFU client that routes all I2C transactions through the USB-master module via the OW_I2C_PASSTHRU UART packet type.

STM32USBDFU([vid, pid, transfer_size, ...])

Minimal STM32 DfuSe USB client using PyUSB.

TestSignedPackage([methodName])

Unit tests for stm32_crc32() and parse_signed_package().