STM32F10,L1 en F3 USB Full Speed Device bibliotheek  1.0
ST Microelectronics USB Full Speed Device bibliotheek documentatie
 All Data Structures Files
usb_def.h File Reference

Definitions related to USB Core. More...

Go to the source code of this file.

Macros

#define REQUEST_TYPE   0x60 /* Mask to get request type */
 
#define STANDARD_REQUEST   0x00 /* Standard request */
 
#define CLASS_REQUEST   0x20 /* Class request */
 
#define VENDOR_REQUEST   0x40 /* Vendor request */
 
#define RECIPIENT   0x1F /* Mask to get recipient */
 

Typedefs

typedef enum _RECIPIENT_TYPE RECIPIENT_TYPE
 
typedef enum _STANDARD_REQUESTS STANDARD_REQUESTS
 
typedef enum _DESCRIPTOR_TYPE DESCRIPTOR_TYPE
 
typedef enum _FEATURE_SELECTOR FEATURE_SELECTOR
 

Enumerations

enum  _RECIPIENT_TYPE { DEVICE_RECIPIENT, INTERFACE_RECIPIENT, ENDPOINT_RECIPIENT, OTHER_RECIPIENT }
 
enum  _STANDARD_REQUESTS {
  GET_STATUS = 0, CLEAR_FEATURE, RESERVED1, SET_FEATURE,
  RESERVED2, SET_ADDRESS, GET_DESCRIPTOR, SET_DESCRIPTOR,
  GET_CONFIGURATION, SET_CONFIGURATION, GET_INTERFACE, SET_INTERFACE,
  TOTAL_sREQUEST, SYNCH_FRAME = 12
}
 
enum  _DESCRIPTOR_TYPE {
  DEVICE_DESCRIPTOR = 1, CONFIG_DESCRIPTOR, STRING_DESCRIPTOR, INTERFACE_DESCRIPTOR,
  ENDPOINT_DESCRIPTOR
}
 
enum  _FEATURE_SELECTOR { ENDPOINT_STALL, DEVICE_REMOTE_WAKEUP }
 

Detailed Description

Definitions related to USB Core.

Author
MCD Application Team
Version
V4.0.0
Date
28-August-2012
Attention

© COPYRIGHT 2012 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.