17 #if !defined(_usb_h_) || defined(__HEXDUMP_H__)
18 #error "Never include hexdump.h directly; include Usb.h instead"
24 template <
class BASE_CLASS,
class LEN_TYPE,
class OFFSET_TYPE>
27 OFFSET_TYPE byteTotal;
39 void Parse(
const LEN_TYPE len,
const uint8_t *pbuf,
const OFFSET_TYPE &offset);
42 template <
class BASE_CLASS,
class LEN_TYPE,
class OFFSET_TYPE>
45 for(LEN_TYPE j = 0; j < len; j++, byteCount++, byteTotal++) {
47 PrintHex<OFFSET_TYPE > (byteTotal, 0x80);
50 PrintHex<uint8_t > (pbuf[j], 0x80);
61 #endif // __HEXDUMP_H__
void E_Notify(char const *msg, int lvl)
void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset)