File FirmwareImage.h
FileList > Firmware > Libraries > FirmwareImage > FirmwareImage.h
Go to the source code of this file
The image identity block every production STM32 image carries (#362). More...
#include <stdint.h>#include <FirmwareVersion.h>#include <NodeStatus.h>
Namespaces
| Type | Name |
|---|---|
| namespace | OpenSkyhawk Thin wrapper over Adafruit_ADS1115; see ADS1115.h . |
| namespace | FirmwareImage |
Classes
| Type | Name |
|---|---|
| struct | Identity |
Macros
| Type | Name |
|---|---|
| define | OSH_FIRMWARE_IDENTITY (kind) /* multi line expression */Define this image's identity block. Exactly one per image — in the role library. |
Detailed Description
32 bytes, little-endian, at a fixed offset from the app's start (IDENTITY_OFFSET). The bootloader (#363) checks it at every boot and before it commits an update; the Gateway uploader (#366) and the client (SkyHawkClient#177) read it from an image file before anything is sent. The shared linker script (Firmware/shared/stm32f103.ld) places the block; Firmware/shared/osh_image.py fills in imageLength and imageCrc after linking. Everything else is set at compile time.
The block is defined by the role library — PanelGroup, PduNode, PanelBridge — with its NodeKind, through OSH_FIRMWARE_IDENTITY(). A sketch without a role has no block.
Macro Definition Documentation
define OSH_FIRMWARE_IDENTITY
Define this image's identity block. Exactly one per image — in the role library.
#define OSH_FIRMWARE_IDENTITY (
kind
) `/* multi line expression */`
The documentation for this class was generated from the following file Firmware/Libraries/FirmwareImage/FirmwareImage.h