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

The state of the IOmcu's side of one update session. More...

#include <link_update_dev.h>

Data Fields

const link_update_io_t * io
const uint8_t * running
const uint8_t * target
uint32_t slot_bytes
uint16_t slot
uint8_t state
uint8_t error
uint16_t regs_cmd [4]
uint32_t size
uint16_t next
uint16_t blocks
uint16_t data [LINK_UPD_DATA_COUNT]
uint8_t digest_of
uint8_t digest [LINK_SHA256_BYTES]
uint8_t expect [LINK_SHA256_BYTES]
link_image_hash_t hash
bool restart_due
bool restart_timed
uint32_t restart_at_ms
bool heard
uint32_t heard_ms
bool sweep
bool sweep_tried
uint32_t sweep_ms
uint8_t first [LINK_UPD_SECTOR_BYTES]
uint8_t sector [LINK_UPD_SECTOR_BYTES]

Detailed Description

The state of the IOmcu's side of one update session.

Field Documentation

◆ blocks

uint16_t link_update_dev_t::blocks

blocks in the session's image

◆ digest

uint8_t link_update_dev_t::digest[LINK_SHA256_BYTES]

the digest the image hashes to

◆ digest_of

uint8_t link_update_dev_t::digest_of

◆ error

uint8_t link_update_dev_t::error

◆ expect

uint8_t link_update_dev_t::expect[LINK_SHA256_BYTES]

the digest the host expects

◆ first

uint8_t link_update_dev_t::first[LINK_UPD_SECTOR_BYTES]

the slot's first sector

◆ hash

link_image_hash_t link_update_dev_t::hash

the hash of the image so far

◆ heard

bool link_update_dev_t::heard

an update page took a request since the last poll

◆ heard_ms

uint32_t link_update_dev_t::heard_ms

the poll that saw the last one

◆ next

uint16_t link_update_dev_t::next

the block COMMIT takes next

◆ regs_cmd

uint16_t link_update_dev_t::regs_cmd[4]

CMD and ARG0..2 as last written

◆ running

const uint8_t* link_update_dev_t::running

the running slot's bytes

◆ sector

uint8_t link_update_dev_t::sector[LINK_UPD_SECTOR_BYTES]

the sector being filled

◆ size

uint32_t link_update_dev_t::size

the session's image, or bytes hashed

◆ slot

uint16_t link_update_dev_t::slot

LINK_UPD_SLOT

◆ slot_bytes

uint32_t link_update_dev_t::slot_bytes

bytes in one slot; 0 when there are none

◆ state

uint8_t link_update_dev_t::state

◆ sweep

bool link_update_dev_t::sweep

the other slot's first sector is owed its erase (LINK_UPD_SLOT_OTHER)

◆ sweep_ms

uint32_t link_update_dev_t::sweep_ms

the last try

◆ sweep_tried

bool link_update_dev_t::sweep_tried

whether the sweep was tried

◆ target

const uint8_t* link_update_dev_t::target

the other slot's bytes


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