Paparazzi UAS
v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
|
Data Structures | |
struct | synchronous_print_arg_t |
union | synchronous_print_arg_t.__unnamed__ |
Macros | |
#define | MAX_FILLER 11 |
#define | FLOAT_PRECISION 100000 |
#define | CHPRINTF_USE_FLOAT TRUE |
Float type support. More... | |
Functions | |
static | THD_WORKING_AREA (waSerialPrint, 512) |
static noreturn void | serialPrint (void *arg) |
static char * | long_to_string_with_divisor (char *p, long num, unsigned radix, long divisor) |
static char * | ltoa (char *p, long num, unsigned radix) |
static void | _chvsnprintf (char *buffer, BaseSequentialStream *chp, size_t size, const char *fmt, va_list ap) |
System formatted output function. More... | |
void | directchvprintf (BaseSequentialStream *chp, const char *fmt, va_list ap) |
void | chvsnprintf (char *buffer, size_t size, const char *fmt, va_list ap) |
void | chsnprintf (char *buffer, size_t size, const char *fmt,...) |
void | directchprintf (BaseSequentialStream *chp, const char *fmt,...) |
void | chprintf (BaseSequentialStream *lchp, const char *fmt,...) |
void | chvprintf (BaseSequentialStream *lchp, const char *fmt, va_list ap) |
void | smchsnprintf (char *buffer, size_t size, const char *fmt,...) |
void | smchvsnprintf (char *buffer, size_t size, const char *fmt, va_list ap) |
Variables | |
static thread_t * | printThreadPtr = NULL |
struct synchronous_print_arg_t |
Data Fields | ||
---|---|---|
union synchronous_print_arg_t | __unnamed__ | |
va_list | ap | |
char * | destBuf | |
const char * | fmt |
union synchronous_print_arg_t.__unnamed__ |
#define MAX_FILLER 11 |
Definition at line 40 of file printf.c.
Referenced by _chvsnprintf(), and long_to_string_with_divisor().
|
static |
System formatted output function.
This function implements a minimal printf()
like functionality with output on a BaseSequentialStream
. The general parameters format is: %[-][width|*][.precision|*][l|L]p. The following parameter types (p) are supported:
[in] | chp | pointer to a BaseSequentialStream implementing object |
[in] | fmt | formatting string |
Definition at line 169 of file printf.c.
References ltoa(), MAX_FILLER, and p.
Referenced by chsnprintf(), chvsnprintf(), directchprintf(), and directchvprintf().
void chprintf | ( | BaseSequentialStream * | lchp, |
const char * | fmt, | ||
... | |||
) |
Definition at line 395 of file printf.c.
References synchronous_print_arg_t::destBuf, printThreadPtr, and serialPrint().
void chsnprintf | ( | char * | buffer, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 377 of file printf.c.
References _chvsnprintf().
Referenced by getFileName().
void chvprintf | ( | BaseSequentialStream * | lchp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 415 of file printf.c.
References synchronous_print_arg_t::destBuf, printThreadPtr, and serialPrint().
void chvsnprintf | ( | char * | buffer, |
size_t | size, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 372 of file printf.c.
References _chvsnprintf().
Referenced by serialPrint().
void directchprintf | ( | BaseSequentialStream * | chp, |
const char * | fmt, | ||
... | |||
) |
Definition at line 386 of file printf.c.
References _chvsnprintf().
void directchvprintf | ( | BaseSequentialStream * | chp, |
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 367 of file printf.c.
References _chvsnprintf().
Referenced by serialPrint().
|
static |
Definition at line 90 of file printf.c.
References MAX_FILLER, and p.
Referenced by ltoa().
|
static |
Definition at line 125 of file printf.c.
References long_to_string_with_divisor().
Referenced by _chvsnprintf().
|
static |
Definition at line 57 of file printf.c.
References synchronous_print_arg_t::ap, chvsnprintf(), synchronous_print_arg_t::destBuf, directchvprintf(), and synchronous_print_arg_t::fmt.
Referenced by chprintf(), chvprintf(), smchsnprintf(), and smchvsnprintf().
void smchsnprintf | ( | char * | buffer, |
size_t | size, | ||
const char * | fmt, | ||
... | |||
) |
Definition at line 432 of file printf.c.
References synchronous_print_arg_t::destBuf, printThreadPtr, and serialPrint().
void smchvsnprintf | ( | char * | buffer, |
size_t | size, | ||
const char * | fmt, | ||
va_list | ap | ||
) |
Definition at line 453 of file printf.c.
References synchronous_print_arg_t::destBuf, printThreadPtr, and serialPrint().
|
static |
|
static |
Definition at line 53 of file printf.c.
Referenced by chprintf(), chvprintf(), smchsnprintf(), and smchvsnprintf().