MCUXpresso SDK API Reference Manual  Rev 2.16.000
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Debugconsole

Overview

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...
 

Macro Definition Documentation

#define PRINTF_FLOAT_ENABLE   0U
#define SCANF_FLOAT_ENABLE   0U
#define PRINTF_ADVANCED_ENABLE   0U
#define SCANF_ADVANCED_ENABLE   0U

Enumeration Type Documentation

Enumerator
kSCANF_Suppress 

Suppress Flag.

kSCANF_DestMask 

Destination Mask.

kSCANF_DestChar 

Destination Char Flag.

kSCANF_DestString 

Destination String FLag.

kSCANF_DestSet 

Destination Set Flag.

kSCANF_DestInt 

Destination Int Flag.

kSCANF_DestFloat 

Destination Float Flag.

kSCANF_LengthMask 

Length Mask Flag.

kSCANF_TypeSinged 

TypeSinged Flag.

Function Documentation

int StrFormatPrintf ( const char *  fmt,
va_list  ap,
char *  buf,
printfCb  cb 
)
Note
I/O is performed by calling given function pointer using following (*func_ptr)(c);
Parameters
[in]fmtFormat string for printf.
[in]apArguments to printf.
[in]bufpointer to the buffer
cbprint callbck function pointer
Returns
Number of characters to be print
int StrFormatScanf ( const char *  line_ptr,
char *  format,
va_list  args_ptr 
)
Parameters
[in]line_ptrThe input line of ASCII data.
[in]formatFormat first points to the format string.
[in]args_ptrThe list of parameters.
Returns
Number of input items converted and assigned.
Return values
IO_EOFWhen line_ptr is empty string "".