3 * All rights reserved.
\r
6 * SPDX-License-Identifier: BSD-3-Clause
\r
13 #include "fsl_common.h"
\r
16 * @addtogroup debugconsole
\r
20 /*******************************************************************************
\r
22 ******************************************************************************/
\r
23 #if defined(__cplusplus)
\r
25 #endif /* __cplusplus */
\r
28 * @brief A function pointer which is used when format printf log.
\r
30 typedef void (*printfCb)(char *buf, int32_t *indicator, char val, int len);
\r
33 * @brief This function outputs its parameters according to a formatted string.
\r
35 * @note I/O is performed by calling given function pointer using following
\r
38 * @param[in] fmt Format string for printf.
\r
39 * @param[in] ap Arguments to printf.
\r
40 * @param[in] buf pointer to the buffer
\r
41 * @param cb print callbck function pointer
\r
43 * @return Number of characters to be print
\r
45 int StrFormatPrintf(const char *fmt, va_list ap, char *buf, printfCb cb);
\r
48 * @brief Converts an input line of ASCII characters based upon a provided
\r
51 * @param[in] line_ptr The input line of ASCII data.
\r
52 * @param[in] format Format first points to the format string.
\r
53 * @param[in] args_ptr The list of parameters.
\r
55 * @return Number of input items converted and assigned.
\r
56 * @retval IO_EOF When line_ptr is empty string "".
\r
58 int StrFormatScanf(const char *line_ptr, char *format, va_list args_ptr);
\r
60 #if defined(__cplusplus)
\r
62 #endif /* __cplusplus */
\r
66 #endif /* _FSL_STR_H */
\r