USB Host Shield 2.0
sink_parser.h
Go to the documentation of this file.
1 /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2 
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2 of the License, or
6 (at your option) any later version.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 
17 Contact information
18 -------------------
19 
20 Circuits At Home, LTD
21 Web : http://www.circuitsathome.com
22 e-mail : support@circuitsathome.com
23  */
24 
25 #if !defined(_usb_h_) || defined(__SINK_PARSER_H__)
26 #error "Never include hexdump.h directly; include Usb.h instead"
27 #else
28 #define __SINK_PARSER_H__
29 
30 extern int UsbDEBUGlvl;
31 
32 // This parser does absolutely nothing with the data, just swallows it.
33 
34 template <class BASE_CLASS, class LEN_TYPE, class OFFSET_TYPE>
35 class SinkParser : public BASE_CLASS {
36 public:
37 
39  };
40 
41  void Initialize() {
42  };
43 
44  void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset) {
45  };
46 };
47 
48 
49 #endif // __HEXDUMP_H__
void Initialize()
Definition: sink_parser.h:41
int UsbDEBUGlvl
Definition: message.cpp:29
void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset)
Definition: sink_parser.h:44