Digi XBee(R) ANSI C Host Library
|
Code for decoding headers from Ember firmware images (.EBL files). More...
Functions | |
const char * | ebl_target_desc (uint8_t plat_info, uint8_t micro_info) |
Returns a description of the platform based on the plat_info and micro_info fields in the em3xx_header_t structure. More... | |
const char * | ebl_phy_desc (uint8_t phy_info) |
Returns a description of the PHY based on the phy_info field in the em3xx_header_t structure. More... | |
void | ebl_header_dump_em2xx (const em2xx_header_t *ebl, uint16_t flags) |
void | ebl_header_dump_em3xx (const em3xx_header_t *ebl, uint16_t flags) |
int | ebl_header_dump (const void *buffer, uint16_t flags) |
Prints a description of the .EBL file header. More... | |
Variables | |
const micro_info_t | platform_avr [] |
const micro_info_t | platform_xap2b [] |
const micro_info_t | platform_cortex_m3 [] |
const platform_info_t | platform_info [] |
Table of tables used to decode plat_info and micro_info fields from .EBL file header. More... | |
Code for decoding headers from Ember firmware images (.EBL files).
Documented in xbee/ebl_file.h.
int ebl_header_dump | ( | const void * | buffer, |
uint16_t | flags | ||
) |
Prints a description of the .EBL file header.
[in] | buffer | buffer with first 128 bytes of .EBL file |
[in] | flags | combination of the following macros:
|
-EINVAL | invalid parameter passed to function |
-EILSEQ | not a valid EBL file header |
0 | parsed header and printed info |
References be16toh, ebl_file_header_t::common, ebl_file_header_t::ebltag_be, EILSEQ, EINVAL, IMAGE_SIGNATURE_EM250, IMAGE_SIGNATURE_EM260, IMAGE_SIGNATURE_EM350, and ebl_file_header_t::signature_be.
const char* ebl_phy_desc | ( | uint8_t | phy_info | ) |
Returns a description of the PHY based on the phy_info field in the em3xx_header_t structure.
[in] | phy_info | phy_info field from EM3xx file header |
References be32toh, ebl_target_desc(), em3xx_header_t::image_info, em2xx_header_t::image_info, le32toh, em3xx_header_t::micro_info, em3xx_header_t::phy_info, em3xx_header_t::plat_info, em2xx_header_t::timestamp_be, em3xx_header_t::timestamp_le, ZCL_TIME_EPOCH_DELTA_1970, em3xx_header_t::znet_build, and em3xx_header_t::znet_release.
Returns a description of the platform based on the plat_info and micro_info fields in the em3xx_header_t structure.
[in] | plat_info | plat_info field from EM3xx file header |
[in] | micro_info | micro_info field from EM3xx file header |
Referenced by ebl_phy_desc().
const micro_info_t platform_avr[] |
const micro_info_t platform_cortex_m3[] |
const platform_info_t platform_info[] |
Table of tables used to decode plat_info and micro_info fields from .EBL file header.
const micro_info_t platform_xap2b[] |