app_usb.h
来自「实现蓝牙无线 USB适配器功能」· C头文件 代码 · 共 34 行
H
34 行
/* Copyright (C) Cambridge Silicon Radio Ltd. 2005-2006 */
/* Part of BlueLab 3.6.2-release */
#ifndef __app_usb_h
#define __app_usb_h
#include "app_private.h"
extern void UsbHandleClassRequest(appDeviceTaskData *theKeyboard);
extern void UsbInitInterfaceTimeCritical(void);
extern void UsbInitKeyboardDevice(appDeviceTaskData *theDevice);
extern void UsbInitMouseDevice(appDeviceTaskData *theDevice);
/*
Enable/disable mouse and keyboard functionality.
*/
#define USB_MOUSE
#define USB_KEYBOARD
#define HID_MOUSE_SEND_WHEEL
#define KEYBOARD_ENDPOINT_ADDRESS (end_point_int_out)
#ifdef USB_KEYBOARD
/* Although most chips only have one interrupt endpoint, the USB hardware
can multiplex two endpoints by using the bulk end-point to NAK polls.
We enable this mode by declaring an interrupt endpoint with the bulk endpoint
address. */
#define MOUSE_ENDPOINT_ADDRESS (end_point_bulk_out)
#else
#define MOUSE_ENDPOINT_ADDRESS (end_point_int_out)
#endif
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?