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.c File Reference

Standard protocol processing (USB v2.0) More...

#include "usb_lib.h"

Macros

#define true   1
 
#define false   0
 
#define ValBit(VAR, Place)   (VAR & (1 << Place))
 
#define SetBit(VAR, Place)   (VAR |= (1 << Place))
 
#define ClrBit(VAR, Place)   (VAR &= ((1 << Place) ^ 255))
 
#define Send0LengthData()
 
#define vSetEPRxStatus(st)   (SaveRState = st)
 
#define vSetEPTxStatus(st)   (SaveTState = st)
 
#define USB_StatusIn()   Send0LengthData()
 
#define USB_StatusOut()   vSetEPRxStatus(EP_RX_VALID)
 
#define StatusInfo0   StatusInfo.bw.bb1 /* Reverse bb0 & bb1 */
 
#define StatusInfo1   StatusInfo.bw.bb0
 

Functions

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_GetStatus (uint16_t Length)
 
RESULT Standard_ClearFeature (void)
 
RESULT Standard_SetEndPointFeature (void)
 
RESULT Standard_SetDeviceFeature (void)
 
uint8_t * Standard_GetDescriptorData (uint16_t Length, ONE_DESCRIPTOR *pDesc)
 
uint8_t Setup0_Process (void)
 
uint8_t In0_Process (void)
 
uint8_t Out0_Process (void)
 
uint8_t Post0_Process (void)
 
void SetDeviceAddress (uint8_t Val)
 
void NOP_Process (void)
 

Variables

uint16_t_uint8_t StatusInfo
 
bool Data_Mul_MaxPacketSize = false
 

Detailed Description

Standard protocol processing (USB v2.0)

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.

Macro Definition Documentation

#define Send0LengthData ( )
Value:
{ _SetEPTxCount(ENDP0, 0); \
vSetEPTxStatus(EP_TX_VALID); \
}