Zephyr API Documentation
3.6.99
A Scalable Open Source RTOS
|
Extends the existing inttypes headers for print formatting. More...
Macros | |
#define | PRIq(precision) "s%" PRIu32 ".%0" STRINGIFY(precision) PRIu32 |
Insert Q value format string. | |
#define | PRIq_arg(q, precision, shift) |
Insert Q value arguments to print format. | |
Extends the existing inttypes headers for print formatting.
Useage:
For a Q value representing 0.5, the expected output will be: "Value=2.000000"
#include <zephyr/dsp/print_format.h>
Insert Q value format string.
#define PRIq_arg | ( | q, | |
precision, | |||
shift | |||
) |
#include <zephyr/dsp/print_format.h>
Insert Q value arguments to print format.
[in] | q | The q value |
[in] | precision | Number of decimal points to print |
[in] | shift | The "scale" to shift q by |