📄 f3xx_usb0_reporthandler.h
字号:
/* Copyright (c) 2006 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is confidential property of Nordic Semiconductor. The use,
* copying, transfer or disclosure of such information is prohibited except by express written
* agreement with Nordic Semiconductor.
*/
/** @file
* Header for USB Report handling (SiLabs).
* @addtogroup usb_code
* @{
*/
#ifndef USB_REPORTHANDLER_H__
#define USB_REPORTHANDLER_H__
#include <stdint.h>
#include "usb_dongle.h"
typedef struct {
uint8_t ReportID;
void (*hdlr)();
} VectorTableEntry;
typedef struct{
uint8_t Length;
uint8_t* Ptr;
} BufferStructure;
// ****************************************************************************
// Set Definitions to sizes corresponding to the number of reports
// ****************************************************************************
#define IN_VECTORTABLESize 3
#define OUT_VECTORTABLESize 1
void ReportHandler_IN_ISR(uint8_t);
void ReportHandler_OUT(uint8_t);
void Setup_OUT_BUFFER(void);
void prepare_usb_report(uint8_t handle);
extern usb_in_rep_mouse_t usb_in_packet_mouse;
extern usb_in_rep_keyb_t usb_in_packet_keyb;
extern usb_in_rep_rc_t usb_in_packet_rc;
#endif /* USB_REPORTHANDLER_H__ */
/** @} */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -