Teledyne-lecroy USB File Based Decode Manual Uživatelský manuál Strana 14

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 36
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 13
10
COMPUTER ACCESS TECHNOLOGY CORPORATION USB REQUEST DEFINITION (.REQ) FILES
Reference Manual
these results can be achieved:
Format Conversion Characters
These are standard C language printf format conversion characters:
A conversion specification begins with a percent sign (%) and ends with a conver-
sion character. The following optional items can be included, in order, between the
% and the conversion character to further control argument formatting:
Flag characters: these are used to further specify the formatting. There are five flag
characters:
•A minus sign (-)will cause an argument to be left-aligned in its field. Without the
minus sign, the default position of the argument is right-aligned.
•A plus sign (+) will insert a plus sign before a positive signed integer. This only works
with the conversion characters d and i.
•A space will insert a space before a positive signed integer. This only works with the
conversion characters d and i. If both a space and a plus sign are used, the space flag
will be ignored.
•A hash mark (#) will prepend 0x or 0X to a hexadecimal number if used with x or X.
•A zero (0) will pad the field with zeros instead of with spaces.
Field width specification: this is a positive integer that defines the field width, in spaces,
of the converted argument. If the number of characters in the argument is smaller than the
field width, then the field is padded with spaces. If the argument has more characters than
the field width has spaces, then the field will expand to accommodate the argument.
Figure 6: Default trace output with
formatting specifications
Code Type Output
c Integer Character
d Integer Signed decimal integer.
I Integer Signed decimal integer
u Integer Unsigned decimal integer
x Integer Unsigned hexadecimal integer, using “abcdef.”
X Integer Unsigned hexadecimal integer, using “ABCDEF.”
Table 1: Format conversion characters
Zobrazit stránku 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 35 36

Komentáře k této Příručce

Žádné komentáře