AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
A CLI module to print debugging information on frame basis. More...
Macros | |
#define | SEP ARGUS_DEBUG_COLUMN_SEPARATOR |
#define | ARGUS_DEBUG_CLI_VERSION "v1.0" |
Version number of the debug information via CLI. | |
#define | ARGUS_DEBUG_COLUMN_SEPARATOR ";" |
The column separator for the debug print functionality. Examples: ";", ",", " ", "\t". | |
Functions | |
void | Print_DebugHeader (void) |
Prints debugging measurement header via UART. | |
void | Print_DebugResults (uint32_t frame_cnt, argus_results_t const *res) |
Prints debugging measurement results via UART. | |
A CLI module to print debugging information on frame basis.
Just replace your data handling function by this print function to stream debugging measurement data via UART to a terminal.
#define ARGUS_DEBUG_CLI_VERSION "v1.0" |
Version number of the debug information via CLI.
Changes:
#define ARGUS_DEBUG_COLUMN_SEPARATOR ";" |
The column separator for the debug print functionality. Examples: ";", ",", " ", "\t".
#define SEP ARGUS_DEBUG_COLUMN_SEPARATOR |
Just a shortcut for better code readability
void Print_DebugHeader | ( | void | ) |
Prints debugging measurement header via UART.
Prints an formatted header for the extended measurement data via UART. The measurement data is printed via Print_DebugResults function. Calling this function before printing any error creates the according (and optional) header.
The data stream consists of four parts:
void Print_DebugResults | ( | uint32_t | frame_cnt, |
argus_results_t const * | res | ||
) |
Prints debugging measurement results via UART.
Prints a formatted string of measurement and debug data in table format via UART. Each call to this function will send a line of separated data via UART. The default separator is ;
but can be changed via the ARGUS_DEBUG_COLUMN_SEPARATOR definition.
Note that this uses the debug data structure! So it requires the res->Debug
pointer to be set which is done by using the Argus_EvaluateDataDebug method instead of the Argus_EvaluateData method!
The data stream consists of four parts:
In detail:
Use the Print_DebugHeader function to output an proper header for the debug data table.
frame_cnt | An integer to print the frame number; this should be incremented by one each time the function is called. |
res | The pointer to the measurement results structure to be printed. Note that the res->Debug pointer must be set for this to work properly! |