USB Host Shield 2.0
Loading...
Searching...
No Matches
sink_parser.h
Go to the documentation of this file.
1/* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2
3This program is free software; you can redistribute it and/or modify
4it under the terms of the GNU General Public License as published by
5the Free Software Foundation; either version 2 of the License, or
6(at your option) any later version.
7
8This program is distributed in the hope that it will be useful,
9but WITHOUT ANY WARRANTY; without even the implied warranty of
10MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11GNU General Public License for more details.
12
13You should have received a copy of the GNU General Public License
14along with this program; if not, write to the Free Software
15Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
17Contact information
18-------------------
19
20Circuits At Home, LTD
21Web : http://www.circuitsathome.com
22e-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
30extern int UsbDEBUGlvl;
31
32// This parser does absolutely nothing with the data, just swallows it.
33
34template <class BASE_CLASS, class LEN_TYPE, class OFFSET_TYPE>
35class SinkParser : public BASE_CLASS {
36public:
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
void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset)
Definition sink_parser.h:44
int UsbDEBUGlvl
Definition message.cpp:29