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

Standard protocol processing functions prototypes. More...

Go to the source code of this file.

Data Structures

struct  OneDescriptor
 
struct  _ENDPOINT_INFO
 
struct  _DEVICE
 
union  uint16_t_uint8_t
 
struct  uint16_t_uint8_t::BW
 
struct  _DEVICE_INFO
 
struct  _DEVICE_PROP
 
struct  _USER_STANDARD_REQUESTS
 

Macros

#define Type_Recipient   (pInformation->USBbmRequestType & (REQUEST_TYPE | RECIPIENT))
 
#define Usb_rLength   Usb_wLength
 
#define Usb_rOffset   Usb_wOffset
 
#define USBwValue   USBwValues.w
 
#define USBwValue0   USBwValues.bw.bb0
 
#define USBwValue1   USBwValues.bw.bb1
 
#define USBwIndex   USBwIndexs.w
 
#define USBwIndex0   USBwIndexs.bw.bb0
 
#define USBwIndex1   USBwIndexs.bw.bb1
 
#define USBwLength   USBwLengths.w
 
#define USBwLength0   USBwLengths.bw.bb0
 
#define USBwLength1   USBwLengths.bw.bb1
 

Typedefs

typedef enum _CONTROL_STATE CONTROL_STATE
 
typedef struct OneDescriptor ONE_DESCRIPTOR
 
typedef struct OneDescriptorPONE_DESCRIPTOR
 
typedef enum _RESULT RESULT
 
typedef struct _ENDPOINT_INFO ENDPOINT_INFO
 
typedef struct _DEVICE DEVICE
 
typedef struct _DEVICE_INFO DEVICE_INFO
 
typedef struct _DEVICE_PROP DEVICE_PROP
 
typedef struct
_USER_STANDARD_REQUESTS 
USER_STANDARD_REQUESTS
 

Enumerations

enum  _CONTROL_STATE {
  WAIT_SETUP, SETTING_UP, IN_DATA, OUT_DATA,
  LAST_IN_DATA, LAST_OUT_DATA, WAIT_STATUS_IN, WAIT_STATUS_OUT,
  STALLED, PAUSE
}
 
enum  _RESULT { USB_SUCCESS = 0, USB_ERROR, USB_UNSUPPORT, USB_NOT_READY }
 

Functions

uint8_t Setup0_Process (void)
 
uint8_t Post0_Process (void)
 
uint8_t Out0_Process (void)
 
uint8_t In0_Process (void)
 
RESULT Standard_SetEndPointFeature (void)
 
RESULT Standard_SetDeviceFeature (void)
 
uint8_t * Standard_GetConfiguration (uint16_t Length)
 
RESULT Standard_SetConfiguration (void)
 
uint8_t * Standard_GetInterface (uint16_t Length)
 
RESULT Standard_SetInterface (void)
 
uint8_t * Standard_GetDescriptorData (uint16_t Length, PONE_DESCRIPTOR pDesc)
 
uint8_t * Standard_GetStatus (uint16_t Length)
 
RESULT Standard_ClearFeature (void)
 
void SetDeviceAddress (uint8_t)
 
void NOP_Process (void)
 

Variables

DEVICE_PROP Device_Property
 
USER_STANDARD_REQUESTS User_Standard_Requests
 
DEVICE Device_Table
 
DEVICE_INFO Device_Info
 
__IO uint16_t SaveRState
 
__IO uint16_t SaveTState
 

Detailed Description

Standard protocol processing functions prototypes.

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.