Common#
Common bootloader interface defines and functions.
See bootloader-interface.h for source code.
Bootloader Numerical Definitions#
These are numerical definitions for the possible bootloader types and a typedef of the bootloader base type.
Numerical definition for a bootloader type.
Numerical definition for a bootloader type.
Numerical definition for a bootloader type.
Numerical definition for a bootloader type.
Numerical definition for a bootloader type.
Bootloader type definitions#
These are the type definitions for the bootloader.
Define the bootloader base type.
Define the bootloader extended type.
Functions#
Returns the bootloader base type the application was built for.
Returns the extended bootloader type of the bootloader that is present on the chip.
Returns the version of the installed bootloader, regardless of its type.
Return extended bootloader version information, if supported. This API is not supported for EM2XX chips and only returns extra information on bootloaders built on or after the 4.7 release.
Macros#
Macro returning the base type of a bootloader when given an extended type.
Macro returning the extended type of a bootloader when given a base type and extendedSpecifier.
Macro defining the extended NULL bootloader type.
Macro defining the extended standalone unknown bootloader type.
Macro defining the extended standalone UART bootloader type.
Macro defining the extended standalone OTA and UART bootloader type.
Macro defining the extended standalone USB bootloader type.
Macro defining the extended standalone OTA and USB bootloader type.
Macro defining the extended application unknown bootloader type.
Macro defining the extended application SPI bootloader type.
Macro defining the extended application I2C bootloader type.
Macro defining a type for the local storage app bootloader.
Define an invalid bootloader version.
Macro defining the customer application version stored in the ApplicationProperties_t struct.
Macro defining the customer application capabilities stored in the ApplicationProperties_t struct.
Macro defining the customer application product ID stored in the ApplicationProperties_t struct.
Macro defining the support for the MPSI protocol stored in the capabilities field of the ApplicationProperties_t struct.
Macro defining the bit position that corresponds to MPSI support in the capabilities field of the ApplicationProperties_t struct.
Macro defining the capabilities that this application has. This value is set in the capabilities field of the ApplicationProperties_t struct.
Bootloader Numerical Definitions Documentation#
Bootloader type definitions Documentation#
Function Documentation#
halBootloaderGetType#
BlBaseType halBootloaderGetType (void )
Returns the bootloader base type the application was built for.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
halBootloaderGetInstalledType#
BlExtendedType halBootloaderGetInstalledType (void )
Returns the extended bootloader type of the bootloader that is present on the chip.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
halGetBootloaderVersion#
uint16_t halGetBootloaderVersion (void )
Returns the version of the installed bootloader, regardless of its type.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
Returns
Version if bootloader installed, or BOOTLOADER_INVALID_VERSION. A returned version of 0x1234U would indicate version 1.2 build 34
halGetExtendedBootloaderVersion#
void halGetExtendedBootloaderVersion (uint32_t * getEmberVersion, uint32_t * customerVersion)
Return extended bootloader version information, if supported. This API is not supported for EM2XX chips and only returns extra information on bootloaders built on or after the 4.7 release.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t * | N/A | getEmberVersion | If specified, we will return the full 32bit ember version for this bootloader. Format is major, minor, patch, doc (4bit nibbles) followed by a 16bit build number. |
uint32_t * | N/A | customerVersion | This will return the 32bit value specified in CUSTOMER_BOOTLOADER_VERSION at build time. |