Embedded SDK
Embedded SDK
Macros | Functions | Variables
usbd_impl.c File Reference

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"
Include dependency graph for usbd_impl.c:

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_tUSBD_HID_GetHidDescriptor_impl (uint16_t *len)
 
uint8_tUSBD_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
 

Detailed Description

This file provides the HID core functions.

Author
MCD Application Team
Version
V2.2.0
Date
13-June-2014
*
*          ===================================================================
*                                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.
*
*
*  
Attention

© COPYRIGHT 2014 STMicroelectronics

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.