X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/c5038f1bf44aea75f1ae1ed035cb7d523ccfdacb..24f730fce3f2022762011d795c3feada5ef874b3:/Projects/Magstripe/Magstripe.h?ds=sidebyside diff --git a/Projects/Magstripe/Magstripe.h b/Projects/Magstripe/Magstripe.h index 7cbda8302..cd1fd9c30 100644 --- a/Projects/Magstripe/Magstripe.h +++ b/Projects/Magstripe/Magstripe.h @@ -65,18 +65,6 @@ /** HID keyboard keycode to indicate that the enter key is currently pressed. */ #define KEY_ENTER 40 - - /* Type Defines: */ - /** Type define for the keyboard report structure. This structure matches the report layout - * given to the host in the HID Report descriptor, as well as matches the boot protocol report - * structure. This means that this one report structure can be used in both Report and Boot Protocol - * modes. */ - typedef struct - { - uint8_t Modifier; /**< Modifier byte, indicating pressed modifier keys such as CTRL or ALT */ - uint8_t Reserved; /**< Reserved for OEM use, always set to 0 */ - uint8_t KeyCode; /**< Key code array for pressed keys - up to six can be given simultaneously */ - } USB_KeyboardReport_Data_t; /* Function Prototypes: */ void SetupHardware(void); @@ -84,9 +72,10 @@ void EVENT_USB_Device_ConfigurationChanged(void); void EVENT_USB_Device_UnhandledControlRequest(void); + void EVENT_USB_Device_StartOfFrame(void); bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, uint8_t* const ReportID, - void* ReportData, uint16_t* ReportSize); + const uint8_t ReportType, void* ReportData, uint16_t* ReportSize); void CALLBACK_HID_Device_ProcessHIDReport(USB_ClassInfo_HID_Device_t* const HIDInterfaceInfo, const uint8_t ReportID, const void* ReportData, const uint16_t ReportSize);