hal_usb_hid.h

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

H
29
字号
/** @file
 * This file contain functions to handle USB HID related requests
 *
 * @author Ken A. Redergaard
 */

#ifndef HAL_USB_HID_H__
#define HAL_USB_HID_H__

#include <stdint.h>
#include <stdbool.h>

#include "hal_usb.h"

/**
 * Function that process a HID device request
 *
 * This function is usually called from an application that use the USB HID specification
 *
 * @param hal_usb_device_req The request from host
 * @param data_ptr  Address where this function can put data into which is sent to USB-host
 * @param size  Size of the data to send
 * @param resp The response this function send back to the USB-host
 */

bool hal_usb_hid_device_req_proc(hal_usb_device_req* req, uint8_t** data_ptr, uint16_t* size, hal_usb_dev_req_resp_t* resp);

#endif // HAL_USB_HID_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?