AFBR-S50 API Reference Manual v1.5.6
AFBR-S50 Time-of-Flight Sensor SDK for Embedded Software
|
Logging interface for the AFBR-S50 API. More...
Functions | |
status_t | print (const char *fmt_s,...) |
A printf-like function to print formatted data to an debugging interface. | |
Logging interface for the AFBR-S50 API.
This interface provides logging utility functions. Defines a printf-like function that is used to print error and log messages.
status_t print | ( | const char * | fmt_s, |
... | |||
) |
A printf-like function to print formatted data to an debugging interface.
Writes the C string pointed by fmt_t to an output. If format includes format specifiers (subsequences beginning with %), the additional arguments following fmt_t are formatted and inserted in the resulting string replacing their respective specifiers.
To enable the print functionality, an implementation of the function must be provided that maps the output to an interface like UART or a debugging console, e.g. by forwarding to standard printf() method.