XBee Firmware Library  1.6.0
Modules | Files | Functions
Utility/Support Code

Modules

 Byte-swapping functions
 
 Circular Buffer
 
 XMODEM code used by the firmware update process
 

Files

file  hexdump.c
 
file  hexstrtobyte.c
 

Functions

void hex_dump (const void FAR *address, uint16_t length, uint16_t flags)
 
int hexstrtobyte (const char *p)
 

Detailed Description

Function Documentation

void hex_dump ( const void FAR *  address,
uint16_t  length,
uint16_t  flags 
)

Helper function for printing a hex dump of memory to stdout. A reference implementation is provided in as util/hexdump.c. Dumps data in hex/printable format, 16 bytes to a line, to stdout.

Parameters
[in]addressAddress of data to dump.
[in]lengthNumber of bytes to dump.
[in]flagsOne of
  • #HEX_DUMP_FLAG_NONE
  • #HEX_DUMP_FLAG_OFFSET
  • #HEX_DUMP_FLAG_ADDRESS
  • #HEX_DUMP_FLAG_TAB
int hexstrtobyte ( const char *  p)