Move usb_interface_*.[ch] files to the newly created usb_interfaces directory.

This commit is contained in:
László Monda
2017-02-26 02:45:43 +01:00
parent d12dc7d8a0
commit 6f6d116351
11 changed files with 9 additions and 9 deletions

View File

@@ -0,0 +1,43 @@
#ifndef __USB_INTERFACE_MOUSE_H__
#define __USB_INTERFACE_MOUSE_H__
// Includes:
#include "usb_api.h"
#include "usb_descriptor_device.h"
// Macros:
#define USB_MOUSE_INTERFACE_INDEX 2
#define USB_MOUSE_ENDPOINT_INDEX 4
#define USB_MOUSE_ENDPOINT_COUNT 1
#define USB_MOUSE_INTERRUPT_IN_PACKET_SIZE 8
#define USB_MOUSE_INTERRUPT_IN_INTERVAL 4
#define USB_MOUSE_REPORT_LENGTH 7
// Typedefs:
typedef struct {
uint8_t buttons;
int16_t x;
int16_t y;
int8_t wheelX;
int8_t wheelY;
} __attribute__ ((packed)) usb_mouse_report_t;
// Variables:
extern usb_device_class_struct_t UsbMouseClass;
// 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);
extern usb_mouse_report_t UsbMouseReport;
#endif