You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

sink_parser.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
  2. This software may be distributed and modified under the terms of the GNU
  3. General Public License version 2 (GPL2) as published by the Free Software
  4. Foundation and appearing in the file GPL2.TXT included in the packaging of
  5. this file. Please note that GPL2 Section 2[b] requires that all works based
  6. on this software must also be made publicly available under the terms of
  7. the GPL2 ("Copyleft").
  8. Contact information
  9. -------------------
  10. Circuits At Home, LTD
  11. Web : http://www.circuitsathome.com
  12. e-mail : [email protected]
  13. */
  14. #if !defined(_usb_h_) || defined(__SINK_PARSER_H__)
  15. #error "Never include hexdump.h directly; include Usb.h instead"
  16. #else
  17. #define __SINK_PARSER_H__
  18. extern int UsbDEBUGlvl;
  19. // This parser does absolutely nothing with the data, just swallows it.
  20. template <class BASE_CLASS, class LEN_TYPE, class OFFSET_TYPE>
  21. class SinkParser : public BASE_CLASS {
  22. public:
  23. SinkParser() {
  24. };
  25. void Initialize() {
  26. };
  27. void Parse(const LEN_TYPE len, const uint8_t *pbuf, const OFFSET_TYPE &offset) {
  28. };
  29. };
  30. #endif // __HEXDUMP_H__