Motion Master
Loading...
Searching...
No Matches
firmware_removal.h File Reference
#include <cstdint>
Include dependency graph for firmware_removal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  FirmwareRemoval { kRemoved , kStillStarts , kUnconfirmed }

Functions

FirmwareRemoval interpretFirmwareRemoval (uint16_t al_status, uint16_t al_status_code)
 Interpret the device's answer to INIT to PREOP.

Enumeration Type Documentation

◆ FirmwareRemoval

enum class FirmwareRemoval
strong

What a device's answer to INIT to PREOP says after an empty application image was installed.

Enumerator
kRemoved 

The bootloader refused PREOP with AL status code 0x0014 (no valid firmware), so the firmware is removed.

kStillStarts 

The device reached PREOP, so it still starts its firmware.

kUnconfirmed 

Any other answer, so the removal cannot be confirmed.

Function Documentation

◆ interpretFirmwareRemoval()

FirmwareRemoval interpretFirmwareRemoval ( uint16_t al_status,
uint16_t al_status_code )

Interpret the device's answer to INIT to PREOP.

Parameters
al_statusthe AL status register, with the error flag
al_status_codethe AL status code register
Returns
what the answer says about the installed empty firmware