|
|
@ -123,8 +123,28 @@
|
|
|
|
} USB_ClassInfo_HID_t;
|
|
|
|
} USB_ClassInfo_HID_t;
|
|
|
|
|
|
|
|
|
|
|
|
/* Function Prototypes: */
|
|
|
|
/* Function Prototypes: */
|
|
|
|
|
|
|
|
/** Configures the endpoints of a given HID interface, ready for use. This should be linked to the library
|
|
|
|
|
|
|
|
* \ref EVENT_USB_ConfigurationChanged() event so that the endpoints are configured when the configuration
|
|
|
|
|
|
|
|
* containing the given HID interface is selected.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \return Boolean true if the endpoints were sucessfully configured, false otherwise
|
|
|
|
|
|
|
|
*/
|
|
|
|
bool USB_HID_ConfigureEndpoints(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
bool USB_HID_ConfigureEndpoints(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Processes incomming control requests from the host, that are directed to the given HID class interface. This should be
|
|
|
|
|
|
|
|
* linked to the library \ref EVENT_USB_UnhandledControlPacket() event.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
|
|
|
|
|
|
|
|
*/
|
|
|
|
void USB_HID_ProcessControlPacket(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
void USB_HID_ProcessControlPacket(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** General management task for a given HID class interface, required for the correct operation of the interface. This should
|
|
|
|
|
|
|
|
* be called frequently in the main program loop, before the master USB management task \ref USB_USBTask().
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* \param HIDInterfaceInfo Pointer to a structure containing a HID Class configuration and state.
|
|
|
|
|
|
|
|
*/
|
|
|
|
void USB_HID_USBTask(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
void USB_HID_USBTask(USB_ClassInfo_HID_t* HIDInterfaceInfo);
|
|
|
|
|
|
|
|
|
|
|
|
/** HID class driver callback for the user creation of a HID input report. This callback may fire in response to either
|
|
|
|
/** HID class driver callback for the user creation of a HID input report. This callback may fire in response to either
|
|
|
|