rcbench
Servo and ESC test bench: panel, IOmcu and shared C
Loading...
Searching...
No Matches
fw_flash_t Struct Reference

#include <fw_install.h>

Data Fields

bool(*) begin (void *ctx, uint32_t bytes)
bool(*) write (void *ctx, uint32_t off, const uint8_t *src, uint32_t len)
bool(*) finish (void *ctx)
void(*) abort (void *ctx)
void * ctx

Detailed Description

The slot that is not running, as the installer needs it.

Field Documentation

◆ abort

void(*) fw_flash_t::abort(void *ctx)

Give up after a failed write or finish; the boot slot stays.

◆ begin

bool(*) fw_flash_t::begin(void *ctx, uint32_t bytes)

Open the slot for an image of bytes; erases nothing yet.

◆ finish

bool(*) fw_flash_t::finish(void *ctx)

Check what is in the slot and make it the one that starts next.

◆ write

bool(*) fw_flash_t::write(void *ctx, uint32_t off, const uint8_t *src, uint32_t len)

Write len bytes at off, erasing what they land in first.


The documentation for this struct was generated from the following file: