f3xx_usb0_reporthandler.h

来自「这是nrf24lu1的无线鼠标源代码,应用平台是keil c」· C头文件 代码 · 共 49 行

H
49
字号
/* 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 + =
减小字号Ctrl + -
显示快捷键?