Prusa MINI Firmware overview
|
Go to the documentation of this file.
28 #error "Never include printhex.h directly; include Usb.h instead"
35 int num_nibbles =
sizeof (T) * 2;
37 char v = 48 + (((val >> (num_nibbles - 1) * 4)) & 0x0f);
40 }
while (--num_nibbles);
45 for (T mask = (((T)1) << ((
sizeof (T) << 3) - 1)); mask; mask >>= 1)
51 int num_nibbles =
sizeof (T) * 2;
53 char v = 48 + (((val >> (num_nibbles - 1) * 4)) & 0x0f);
56 }
while (--num_nibbles);
61 T mask = (((T)1) << (((
sizeof (T) << 1) - 1) << 2));
63 if (val < mask) prn->
print(
"0");
71 PrintHex<T > (val, lvl);
78 PrintBin<T > (val, lvl);
#define HEX
Definition: Print.h:30
void PrintHex2(Print *prn, T val)
Definition: printhex.h:60
#define USB_HOST_SERIAL
Definition: settings.h:73
size_t print(const __FlashStringHelper *)
Definition: Print.cpp:46
void SerialPrintHex(T val)
Definition: printhex.h:50
bool boolean __attribute__((deprecated))
Definition: wiring_constants.h:110
void PrintBin(T val, int lvl)
Definition: printhex.h:44
void E_Notifyc(char c, int lvl)
void PrintHex(T val, int lvl)
Definition: printhex.h:34
void D_PrintBin(T val, int lvl)
Definition: printhex.h:76
unsigned unused
Definition: masstorage.h:51
void D_PrintHex(T val __attribute__((unused)), int lvl __attribute__((unused)))
Definition: printhex.h:69