]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/protocol/usb_hid/USB_Host_Shield_2.0/sink_parser.h
1 /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
3 This software may be distributed and modified under the terms of the GNU
4 General Public License version 2 (GPL2) as published by the Free Software
5 Foundation and appearing in the file GPL2.TXT included in the packaging of
6 this file. Please note that GPL2 Section 2[b] requires that all works based
7 on this software must also be made publicly available under the terms of
14 Web : http://www.circuitsathome.com
15 e-mail : support@circuitsathome.com
17 #if !defined(_usb_h_) || defined(__SINK_PARSER_H__)
18 #error "Never include hexdump.h directly; include Usb.h instead"
20 #define __SINK_PARSER_H__
22 extern int UsbDEBUGlvl
;
24 // This parser does absolutely nothing with the data, just swallows it.
26 template <class BASE_CLASS
, class LEN_TYPE
, class OFFSET_TYPE
>
27 class SinkParser
: public BASE_CLASS
{
36 void Parse(const LEN_TYPE len
, const uint8_t *pbuf
, const OFFSET_TYPE
&offset
) {
41 #endif // __HEXDUMP_H__