English
Language : 

ZAURA Datasheet, PDF (87/99 Pages) –
ZAURA RF Wireless Library
Programmer’s Reference Manual
75
Conversion
Flag
+
Meaning
Show sign
#
Hex 0x prefix
Description
By default ZAURA_RF_ShellPrintf will display a
leading '-' when used with signed conversion ('d' or
'ld') and no sign indicator for positive values. This
flag causes ZAURA_RF_ShellPrintf to display a
leading '+' for positive signed values.
Causes con_print to prefix hexadecimal values ('x'
and 'lx') with '0x' ignored on non-hexadecimal
formats. Unlike printf ZAURA_RF_ShellPrintf will
display a leading 0x when used to display the
value 0.
Returns
ZAURA_RF_SUCCESS if the function was able to complete the request.
ZAURA_RF_FAILURE if the function was unable to write to the console,
such as if it was disabled.
Example
/*
* Displays "Data: 0010"
*/
ZAURA_RF_ShellPrintf( "Data: %04x\r\n", 16 );
/*
* Displays "Data: 0x10"
*/
ZAURA_RF_ShellPrintf( "Data: %#04x\r\n", 16 );
/*
* Displays "Data: +00000000016"
*/
ZAURA_RF_ShellPrintf( "Data: %+*0d\r\n", 12, 16 );
RM006003-1011
ZAURA_RF_ShellPrintf