25 #if !defined(_usb_h_) || defined(__HEXDUMP_H__) 26 #error "Never include hexdump.h directly; include Usb.h instead" 32 template <
class BASE_CLASS,
class LEN_TYPE,
class OFFSET_TYPE>
35 OFFSET_TYPE byteTotal;
47 void Parse(
const LEN_TYPE len,
const uint8_t *pbuf,
const OFFSET_TYPE &offset);
50 template <
class BASE_CLASS,
class LEN_TYPE,
class OFFSET_TYPE>
53 for(LEN_TYPE j = 0; j < len; j++, byteCount++, byteTotal++) {
55 PrintHex<OFFSET_TYPE > (byteTotal, 0x80);
58 PrintHex<uint8_t > (pbuf[j], 0x80);
69 #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)