3      Copyright (C) Dean Camera, 2009. 
   5   dean [at] fourwalledcubicle [dot] com 
   6       www.fourwalledcubicle.com 
  10   Copyright 2009  Denver Gingerich (denver [at] ossguy [dot] com) 
  11   Copyright 2009  Dean Camera (dean [at] fourwalledcubicle [dot] com) 
  13   Permission to use, copy, modify, and distribute this software 
  14   and its documentation for any purpose and without fee is hereby 
  15   granted, provided that the above copyright notice appear in all 
  16   copies and that both that the copyright notice and this 
  17   permission notice and warranty disclaimer appear in supporting 
  18   documentation, and that the name of the author not be used in 
  19   advertising or publicity pertaining to distribution of the 
  20   software without specific, written prior permission. 
  22   The author disclaim all warranties with regard to this 
  23   software, including all implied warranties of merchantability 
  24   and fitness.  In no event shall the author be liable for any 
  25   special, indirect or consequential damages or any damages 
  26   whatsoever resulting from loss of use, data or profits, whether 
  27   in an action of contract, negligence or other tortious action, 
  28   arising out of or in connection with the use or performance of 
  34  *  Header file for Magstripe.c. 
  43                 #include <avr/power.h> 
  45                 #include "Descriptors.h" 
  46                 #include "Lib/MagstripeHW.h" 
  47                 #include "Lib/CircularBitBuffer.h" 
  49                 #include <LUFA/Version.h> 
  50                 #include <LUFA/Drivers/USB/USB.h> 
  51                 #include <LUFA/Drivers/USB/Class/HID.h> 
  54                 /** Total number of tracks which can be read from the card, between 1 and 3. */ 
  55                 #define TOTAL_TRACKS       3 
  57                 /** HID keyboard keycode to indicate that no is currently pressed. */ 
  60                 /** HID keyboard keycode to indicate that the "1" key is currently pressed. */ 
  63                 /** HID keyboard keycode to indicate that the "0" key is currently pressed. */ 
  66                 /** HID keyboard keycode to indicate that the enter key is currently pressed. */ 
  69         /* Function Prototypes: */ 
  70                 void SetupHardware(void); 
  71                 void ReadMagstripeData(void); 
  73                 void EVENT_USB_Device_ConfigurationChanged(void); 
  74                 void EVENT_USB_Device_UnhandledControlRequest(void); 
  75                 void EVENT_USB_Device_StartOfFrame(void); 
  77                 bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t
* const HIDInterfaceInfo
, uint8_t* const ReportID
, 
  78                                                  void* ReportData
, uint16_t* ReportSize
); 
  79                 void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t
* const HIDInterfaceInfo
, const uint8_t ReportID
,  
  80                                                           const void* ReportData
, const uint16_t ReportSize
);