aboutsummaryrefslogtreecommitdiff
path: root/lib/usbhost/USB_Host_Shield_2.0/sink_parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/usbhost/USB_Host_Shield_2.0/sink_parser.h')
-rw-r--r--lib/usbhost/USB_Host_Shield_2.0/sink_parser.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/usbhost/USB_Host_Shield_2.0/sink_parser.h b/lib/usbhost/USB_Host_Shield_2.0/sink_parser.h
new file mode 100644
index 000000000..a23637d2b
--- /dev/null
+++ b/lib/usbhost/USB_Host_Shield_2.0/sink_parser.h
@@ -0,0 +1,41 @@
1/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
3This software may be distributed and modified under the terms of the GNU
4General Public License version 2 (GPL2) as published by the Free Software
5Foundation and appearing in the file GPL2.TXT included in the packaging of
6this file. Please note that GPL2 Section 2[b] requires that all works based
7on this software must also be made publicly available under the terms of
8the GPL2 ("Copyleft").
9
10Contact information
11-------------------
12
13Circuits At Home, LTD
14Web : http://www.circuitsathome.com
15e-mail : support@circuitsathome.com
16 */
17#if !defined(_usb_h_) || defined(__SINK_PARSER_H__)
18#error "Never include hexdump.h directly; include Usb.h instead"
19#else
20#define __SINK_PARSER_H__
21
22extern int UsbDEBUGlvl;
23
24// This parser does absolutely nothing with the data, just swallows it.
25
26template <class BASE_CLASS, class LEN_TYPE, class OFFSET_TYPE>
27class SinkParser : public BASE_CLASS {
28public:
29
30 SinkParser() {
31 };
32
33 void Initialize() {
34 };
35
36 void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset) {
37 };
38};
39
40
41#endif // __HEXDUMP_H__