18 #if !defined(_usb_h_) || defined(__PRINTHEX_H__)
19 #error "Never include printhex.h directly; include Usb.h instead"
21 #define __PRINTHEX_H__
27 int num_nibbles =
sizeof(
T) * 2;
30 char v = 48 + (((val >> (num_nibbles - 1) * 4)) & 0x0f);
33 }
while(--num_nibbles);
38 for(
T mask = (((
T) 1) << ((
sizeof(
T) << 3) - 1)); mask; mask >>= 1)
47 int num_nibbles =
sizeof(
T) * 2;
50 char v = 48 + (((val >> (num_nibbles - 1) * 4)) & 0x0f);
53 }
while(--num_nibbles);
58 T mask = (((
T) 1) << (((
sizeof(
T) << 1) - 1) << 2));
66 prn->print((
T) val, HEX);
71 PrintHex<T>(val, lvl);
78 PrintBin<T>(val, lvl);
84 #endif // __PRINTHEX_H__
void SerialPrintHex(T val)
void PrintBin(T val, int lvl)
void E_Notifyc(char c, int lvl)
void D_PrintBin(T val, int lvl)
void PrintHex(T val, int lvl)
void PrintHex2(Print *prn, T val)
void D_PrintHex(T val, int lvl)