Restructure the codebase across more files.
This commit is contained in:
21
right/usb_interface_mouse.h
Normal file
21
right/usb_interface_mouse.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef __USB_DEVICE_HID_MOUSE_H__
|
||||
#define __USB_DEVICE_HID_MOUSE_H__
|
||||
|
||||
// Macros:
|
||||
|
||||
#define USB_MOUSE_REPORT_LENGTH (0x04U)
|
||||
|
||||
// Typedefs:
|
||||
|
||||
typedef struct usb_device_hid_mouse_struct {
|
||||
uint8_t buffer[USB_MOUSE_REPORT_LENGTH];
|
||||
uint8_t idleRate;
|
||||
} usb_device_hid_mouse_struct_t;
|
||||
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbMouseSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbMouseSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user