![]() |
MCUXpresso SDK API Reference Manual
Rev 2.16.000
NXP Semiconductors
|
Macros | |
#define | PRINTF_FLOAT_ENABLE 0U |
Definition to printf the float number. More... | |
#define | SCANF_FLOAT_ENABLE 0U |
Definition to scanf the float number. More... | |
#define | PRINTF_ADVANCED_ENABLE 0U |
Definition to support advanced format specifier for printf. More... | |
#define | SCANF_ADVANCED_ENABLE 0U |
Definition to support advanced format specifier for scanf. More... | |
Typedefs | |
typedef void(* | printfCb )(char *buf, int32_t *indicator, char val, int len) |
A function pointer which is used when format printf log. | |
Enumerations | |
enum | _debugconsole_scanf_flag { kSCANF_Suppress = 0x2U, kSCANF_DestMask = 0x7cU, kSCANF_DestChar = 0x4U, kSCANF_DestString = 0x8U, kSCANF_DestSet = 0x10U, kSCANF_DestInt = 0x20U, kSCANF_DestFloat = 0x30U, kSCANF_LengthMask = 0x1f00U, kSCANF_TypeSinged = 0x2000U } |
Specification modifier flags for scanf. More... | |
Functions | |
int | StrFormatPrintf (const char *fmt, va_list ap, char *buf, printfCb cb) |
This function outputs its parameters according to a formatted string. More... | |
int | StrFormatScanf (const char *line_ptr, char *format, va_list args_ptr) |
Converts an input line of ASCII characters based upon a provided string format. More... | |
#define PRINTF_FLOAT_ENABLE 0U |
#define SCANF_FLOAT_ENABLE 0U |
#define PRINTF_ADVANCED_ENABLE 0U |
#define SCANF_ADVANCED_ENABLE 0U |
int StrFormatPrintf | ( | const char * | fmt, |
va_list | ap, | ||
char * | buf, | ||
printfCb | cb | ||
) |
[in] | fmt | Format string for printf. |
[in] | ap | Arguments to printf. |
[in] | buf | pointer to the buffer |
cb | print callbck function pointer |
int StrFormatScanf | ( | const char * | line_ptr, |
char * | format, | ||
va_list | args_ptr | ||
) |
[in] | line_ptr | The input line of ASCII data. |
[in] | format | Format first points to the format string. |
[in] | args_ptr | The list of parameters. |
IO_EOF | When line_ptr is empty string "". |