TI OAD API Documentation
2.02.08.00
|
Structure definition for image header and segments, these are prepended to the over the air images. More...
Modules | |
OAD Image Header offsets | |
OAD image types | |
OAD wireless technology fields | |
Files | |
file | oad_image_header.h |
Structure definition for image header and segments, these are prepended to the over the air images. | |
Macros | |
#define | HDR_LEN_WITH_SECURITY_INFO offsetof(imgHdr_t, secInfoSeg.segTypeSecure) + sizeof(securityInfoSeg_t) |
#define | IMG_START_ADDR_OFFSET offsetof(imgHdr_t, imgPayload.startAddr) |
#define | OAD_EXTFL_ID_VAL {'O', 'A', 'D', ' ', 'N', 'V', 'M', '1'} |
#define | OAD_IMG_ID_VAL |
#define | SEC_VERIF_STAT_OFFSET offsetof(imgHdr_t, secInfoSeg.verifStat) |
#define | SEG_SIGERINFO_OFFSET offsetof(imgHdr_t, secInfoSeg.secSignerInfo) |
#define | SEG_SIGNR_OFFSET offsetof(imgHdr_t, secInfoSeg.eccSign.sign_r) |
#define | SEG_SIGNS_OFFSET offsetof(imgHdr_t, secInfoSeg.eccSign.sign_s) |
#define | SIGN_FN_PTR 0x57fa0 |
Pointer to BIM Function. | |
Variables | |
uint32_t | _sign_fnPtr |
Variable for Pointer to BIM Function. | |
Structure definition for image header and segments, these are prepended to the over the air images.
============================================================================
The OAD Image header file should be included in an OAD enabled application as follows:
The OAD image header is a combined structure that is intended to be prepdended to a binary image before sending over the air. This file defines the structures that are used to build up an image header. Additionally, this header file can be used by the application to read fields within an image header.
For code examples, see the use cases below.
#define HDR_LEN_WITH_SECURITY_INFO offsetof(imgHdr_t, secInfoSeg.segTypeSecure) + sizeof(securityInfoSeg_t) |
Offset in bytes of the sign_r field into the structure securityInfoSeg_t
#define IMG_START_ADDR_OFFSET offsetof(imgHdr_t, imgPayload.startAddr) |
Offset in bytes of image start address field into the structure imgPayloadSeg_t
#define OAD_EXTFL_ID_VAL {'O', 'A', 'D', ' ', 'N', 'V', 'M', '1'} |
Magic number used by entries in the image header table at the beginning of external flash. Note this is different from OAD_IMG_ID_VAL so that the application can determine the difference between an entry in the header table and the start of an OAD image
#define OAD_IMG_ID_VAL |
Magic number to identify OAD image header. It is recommended that the customer adjust these to uniquely identify their device
This define will be filled in conditionally based on DeviceFamily_*
#define SEC_VERIF_STAT_OFFSET offsetof(imgHdr_t, secInfoSeg.verifStat) |
Offset in bytes of the sign_r field into the structure securityInfoSeg_t
#define SEG_SIGERINFO_OFFSET offsetof(imgHdr_t, secInfoSeg.secSignerInfo) |
Offset in bytes of the signerInfo field into the structure securityInfoSeg_t
#define SEG_SIGNR_OFFSET offsetof(imgHdr_t, secInfoSeg.eccSign.sign_r) |
Offset in bytes of the sign_r field into the structure securityInfoSeg_t
#define SEG_SIGNS_OFFSET offsetof(imgHdr_t, secInfoSeg.eccSign.sign_s) |
Offset in bytes of the sign_r field into the structure securityInfoSeg_t