projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added standard stream example to the ClassDriver CDC device demo.
[pub/USBasp.git]
/
Projects
/
Magstripe
/
Magstripe.h
diff --git
a/Projects/Magstripe/Magstripe.h
b/Projects/Magstripe/Magstripe.h
index
21aa2f2
..
4e0aac9
100644
(file)
--- a/
Projects/Magstripe/Magstripe.h
+++ b/
Projects/Magstripe/Magstripe.h
@@
-51,6
+51,12
@@
#include <LUFA/Drivers/USB/Class/HID.h>
\r
\r
/* Macros: */
\r
#include <LUFA/Drivers/USB/Class/HID.h>
\r
\r
/* Macros: */
\r
+ /** Total number of tracks which can be read from the card, between 1 and 3. */
\r
+ #define TOTAL_TRACKS 3
\r
+
\r
+ /** HID keyboard keycode to indicate that no is currently pressed. */
\r
+ #define KEY_NONE 0
\r
+
\r
/** HID keyboard keycode to indicate that the "1" key is currently pressed. */
\r
#define KEY_1 30
\r
\r
/** HID keyboard keycode to indicate that the "1" key is currently pressed. */
\r
#define KEY_1 30
\r
\r
@@
-79,9
+85,9
@@
void EVENT_USB_ConfigurationChanged(void);
\r
void EVENT_USB_UnhandledControlPacket(void);
\r
\r
void EVENT_USB_ConfigurationChanged(void);
\r
void EVENT_USB_UnhandledControlPacket(void);
\r
\r
- uint16_t CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t*
HIDInterfaceInfo, uint8_t*
ReportID,
\r
+ uint16_t CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t*
const HIDInterfaceInfo, uint8_t* const
ReportID,
\r
void* ReportData);
\r
void* ReportData);
\r
- void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t*
HIDInterfaceInfo,
uint8_t ReportID,
\r
-
void* ReportData,
uint16_t ReportSize);
\r
+ void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t*
const HIDInterfaceInfo, const
uint8_t ReportID,
\r
+
const void* ReportData, const
uint16_t ReportSize);
\r
\r
#endif
\r
\r
#endif
\r