This structure is an in-memory representation of the Over-the-air header data that resides on disk. It is not a byte-for-byte copy.

Public Attributes#

uint16_t
uint16_t
uint16_t
uint8_t

The spec. does not require that the string be NULL terminated in the header stored on disk. Therefore, +1 is added in the data structure to ensure support of 32-character string without a NULL terminator.

uint32_t

When reading the header, this will be the complete length of the file. When writing the header, this must be set to the length of the MFG image data portion including all tags.

uint8_t

The remaining four fields are optional. Check the field control to determine if their values are valid.

uint8_t
uint8_t
union EmberAfOtaHeader::@3

Public Attribute Documentation#

headerVersion#

uint16_t EmberAfOtaHeader::headerVersion

headerLength#

uint16_t EmberAfOtaHeader::headerLength

fieldControl#

uint16_t EmberAfOtaHeader::fieldControl

manufacturerId#

uint16_t EmberAfOtaHeader::manufacturerId

imageTypeId#

uint16_t EmberAfOtaHeader::imageTypeId

firmwareVersion#

uint32_t EmberAfOtaHeader::firmwareVersion

zigbeeStackVersion#

uint16_t EmberAfOtaHeader::zigbeeStackVersion

headerString#

uint8_t EmberAfOtaHeader::headerString[EMBER_AF_OTA_MAX_HEADER_STRING_LENGTH+1]

The spec. does not require that the string be NULL terminated in the header stored on disk. Therefore, +1 is added in the data structure to ensure support of 32-character string without a NULL terminator.


imageSize#

uint32_t EmberAfOtaHeader::imageSize

When reading the header, this will be the complete length of the file. When writing the header, this must be set to the length of the MFG image data portion including all tags.


securityCredentials#

uint8_t EmberAfOtaHeader::securityCredentials

The remaining four fields are optional. Check the field control to determine if their values are valid.


EUI64#

uint8_t EmberAfOtaHeader::EUI64[EUI64_SIZE]

UID#

uint8_t EmberAfOtaHeader::UID[UID_SIZE]

upgradeFileDestination#

union EmberAfOtaHeader::@3 EmberAfOtaHeader::upgradeFileDestination

minimumHardwareVersion#

uint16_t EmberAfOtaHeader::minimumHardwareVersion

maximumHardwareVersion#

uint16_t EmberAfOtaHeader::maximumHardwareVersion