Embedded SDK
Embedded SDK
|
This file provides the HID core functions. More...
#include "os.h"
#include "os_io_usb.h"
#include "usbd_hid.h"
#include "usbd_hid_impl.h"
#include "usbd_ctlreq.h"
#include "usbd_core.h"
#include "usbd_conf.h"
#include "usbd_def.h"
#include "os_io_seproxyhal.h"
Go to the source code of this file.
Macros | |
#define | USBD_LANGID_STRING 0x409 |
#define | USBD_VID 0x2C97 |
#define | USBD_INTERFACE_FS_STRING USBD_PRODUCT_FS_STRING |
#define | USBD_CONFIGURATION_FS_STRING USBD_PRODUCT_FS_STRING |
#define | ARRAY_U2LE(l) (l)&0xFF, (l)>>8 |
#define | CFG_HDR_LEN (0x9) |
#define | CFG_HIDGEN_LEN (0x9+0x9+0x7+0x7) |
#define | CFG_IO_U2F_LEN (0x9+0x9+0x7+0x7) |
#define | CFG_USB_CCID_LEN (0x9+0x36+0x7+0x7) |
#define | CFG_WEBUSB_LEN (0x9+0x7+0x7) |
Functions | |
uint8_t * | USBD_HID_GetHidDescriptor_impl (uint16_t *len) |
uint8_t * | USBD_HID_GetReportDescriptor_impl (uint16_t *len) |
uint8_t | USBD_HID_DataIn_impl (USBD_HandleTypeDef *pdev, uint8_t epnum) |
USBD_HID_DataOut handle data OUT Stage. More... | |
uint8_t | USBD_HID_DataOut_impl (USBD_HandleTypeDef *pdev, uint8_t epnum, uint8_t *buffer, apdu_buffer_t *apdu_buf) |
void | USB_power (unsigned char enabled) |
Variables | |
USBD_DescriptorsTypeDef const | HID_Desc |
This file provides the HID core functions.
* * =================================================================== * HID Class Description * =================================================================== * This module manages the HID class V1.11 following the "Device Class Definition * for Human Interface Devices (HID) Version 1.11 Jun 27, 2001". * This driver implements the following aspects of the specification: * - The Boot Interface Subclass * - Usage Page : Generic Desktop * - Usage : Vendor * - Collection : Application * * @note In HS mode and when the DMA is used, all variables and data structures * dealing with the DMA during the transaction process should be 32-bit aligned. * * *
Licensed under MCD-ST Liberty SW License Agreement V2, (the "License"); You may not use this file except in compliance with the License. You may obtain a copy of the License at:
http://www.st.com/software_license_agreement_liberty_v2
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file usbd_impl.c.