16#ifndef RCBENCH_UPDATE_HW_H
17#define RCBENCH_UPDATE_HW_H
void update_hw_init(bool(*busy)(void))
Read the boot ROM's word on this boot – which slot runs, whether it is on trial – and check the parti...
Definition update_hw.c:180
void update_hw_ctl_read(void *ctx, uint8_t off, uint8_t n, uint16_t *out)
The two pages' handlers, for the link_page_t table.
Definition update_hw.c:214
int update_hw_slot(void)
For the console: the slot running, 0 or 1, or -1 without a table.
Definition update_hw.c:255
uint8_t update_hw_ctl_write(void *ctx, uint8_t off, uint8_t n, const uint16_t *in)
Writes the UPDATE_CTL page, for the link_page_t table.
Definition update_hw.c:220
bool update_hw_on_trial(void)
For the console: whether the running image waits for its BUY.
Definition update_hw.c:260
void update_hw_poll(uint32_t now_ms)
Once per pass: a slice of a hash, the restart after ACTIVATE, an owed erase of the other slot's first...
Definition update_hw.c:240
void update_hw_data_read(void *ctx, uint8_t off, uint8_t n, uint16_t *out)
Reads the UPDATE_DATA page, for the link_page_t table.
Definition update_hw.c:227
uint8_t update_hw_data_write(void *ctx, uint8_t off, uint8_t n, const uint16_t *in)
Writes the UPDATE_DATA page, for the link_page_t table.
Definition update_hw.c:233
bool update_hw_refuses_arm(uint8_t off, uint8_t n, const uint16_t *in)
Whether a CONTROL write is refused for the update (link_update_dev.h).
Definition update_hw.c:250
bool update_hw_holds_arm(void)
True while ARM is refused: an update session or an image on trial.
Definition update_hw.c:245