bool sota_image_write(const uint8_t *buf, size_t len)
Write the next bytes, in order.
bool sota_image_finish(void)
End the write and check the image is one the bootloader can start.
void sota_image_abort(void)
Give up the write.
bool sota_image_begin(size_t expected, uint32_t *slot, uint32_t *running)
Start writing the slot after the running one.