|
Open Model Railroad Network (OpenMRN)
|
Static definitions of the application. More...
#include <bootloader_hal.h>
Public Attributes | |
| uint32_t | app_size |
| The total length of the application binary. | |
| uint32_t | checksum_pre [CHECKSUM_COUNT] |
| Checksum data for the application info. | |
| uint32_t | checksum_post [CHECKSUM_COUNT] |
| checksum_post: is the checksum of the bytes between the app_header and the application end. | |
Static definitions of the application.
These will be flashed with the application, and contain checksum on whether the application is valid or not.
Definition at line 55 of file bootloader_hal.h.
| uint32_t app_header::app_size |
The total length of the application binary.
The start of the application binary is always at flash_min of get_flash_info. This number tells how many bytes need to be checksummed.
Definition at line 59 of file bootloader_hal.h.
| uint32_t app_header::checksum_post[CHECKSUM_COUNT] |
checksum_post: is the checksum of the bytes between the app_header and the application end.
Definition at line 70 of file bootloader_hal.h.
| uint32_t app_header::checksum_pre[CHECKSUM_COUNT] |
Checksum data for the application info.
The checksumming algorithm is not fixed – the HAL should provide it in case there is hardware CRC support. Unused entries should be filled with zeros.
checksum_pre: is the checksum of the bytes between application_start and the app_header.
Definition at line 67 of file bootloader_hal.h.