Changes between Initial Version and Version 1 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Debug/DEBUG_SHOWDATA


Ignore:
Timestamp:
09/26/18 07:31:51 (6 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Debug/DEBUG_SHOWDATA

    v1 v1  
     1= DEBUG_SHOWDATA =
     2Display binary data in readable (ASCII and hexadecimal) on the serial or telnet console
     3
     4{{{
     5DEBUG_SHOWDATA(const char *msg, const uint8* data, int len)
     6}}}
     7
     8== Parameters ==
     9
     10 * msg - message to display
     11 * data - binary data pointer to display
     12 * len - number of bytes of binary data to display
     13
     14== Return Value ==
     15
     16 * void - no return value
     17
     18== Remarks ==
     19
     20Provides debug output message to show binary data. Output code will only be compiled into debug build. Release builds will not compile in this in so there is no overhead for release build.
     21
     22== Examples ==
     23
     24{{{
     25uint8 req[] = { 0x02, 'W', 0x03 };
     26DEBUG_SHOWDATA("Request", req, sizeof(req));
     27
     28// Output will look like: Request [{02}W{03}]
     29// Non readable characters are shown as hexadecimal within braces such as {02}
     30
     31}}}
     32
     33