Nut/OS  5.0.5
API Reference
stm32_usb_core.c File Reference
Include dependency graph for stm32_usb_core.c:

Defines

#define ValBit(VAR, Place)   (VAR & (1 << Place))
#define SetBit(VAR, Place)   (VAR |= (1 << Place))
#define ClrBit(VAR, Place)   (VAR &= ((1 << Place) ^ 255))
#define Send0LengthData()   {OTGD_FS_PCD_EP_Write (0, 0, 0) ; vSetEPTxStatus(EP_TX_VALID);}
#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
#define StatusInfo1   StatusInfo.bw.bb0

Functions

uint8_tStandard_GetConfiguration (uint16_t Length)
RESULT Standard_SetConfiguration (void)
uint8_tStandard_GetInterface (uint16_t Length)
RESULT Standard_SetInterface (void)
uint8_tStandard_GetStatus (uint16_t Length)
RESULT Standard_ClearFeature (void)
RESULT Standard_SetEndPointFeature (void)
RESULT Standard_SetDeviceFeature (void)
uint8_tStandard_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

Define Documentation

#define ValBit (   VAR,
  Place 
)    (VAR & (1 << Place))
 * $Id: stm32_usb_core.c 4268 2012-06-15 13:24:08Z haraldkipp $
 * 

Referenced by Standard_ClearFeature(), Standard_GetStatus(), and Standard_SetEndPointFeature().

#define SetBit (   VAR,
  Place 
)    (VAR |= (1 << Place))
#define ClrBit (   VAR,
  Place 
)    (VAR &= ((1 << Place) ^ 255))
#define Send0LengthData ( )    {OTGD_FS_PCD_EP_Write (0, 0, 0) ; vSetEPTxStatus(EP_TX_VALID);}
#define vSetEPRxStatus (   st)    (SaveRState = st)

Referenced by Post0_Process().

#define vSetEPTxStatus (   st)    (SaveTState = st)

Referenced by Post0_Process().

#define USB_StatusIn ( )    Send0LengthData()
#define USB_StatusOut ( )    vSetEPRxStatus(EP_RX_VALID)
#define StatusInfo0   StatusInfo.bw.bb1

Referenced by Standard_GetStatus().

#define StatusInfo1   StatusInfo.bw.bb0

Function Documentation

uint8_t Setup0_Process ( void  )

References ByteSwap(), _DEVICE_INFO::ControlState, ENDP0, OTGD_FS_EP0StartXfer(), OTGD_FS_PCD_GetOutEP(), PAUSE, pInformation, Post0_Process(), SETTING_UP, _DEVICE_INFO::USBbmRequestType, _DEVICE_INFO::USBbRequest, and USB_OTG_ep::xfer_buff.

Referenced by OTGD_FS_Handle_OutEP_ISR().

Here is the call graph for this function:

uint8_t In0_Process ( void  )
uint8_t Out0_Process ( void  )

References _DEVICE_INFO::ControlState, IN_DATA, LAST_IN_DATA, LAST_OUT_DATA, OUT_DATA, pInformation, Post0_Process(), pProperty, _DEVICE_PROP::Process_Status_OUT, STALLED, and WAIT_STATUS_OUT.

Referenced by OTGD_FS_Handle_OutEP_ISR().

Here is the call graph for this function:

uint8_t Post0_Process ( void  )

References _DEVICE_INFO::ControlState, Device_Property, ENDP0, EP_RX_STALL, EP_TX_STALL, EP_TX_VALID, IN_DATA, USB_OTG_ep::is_in, _DEVICE_PROP::MaxPacketSize, OTGD_FS_EP0StartXfer(), OTGD_FS_PCD_GetInEP(), OUT_DATA, PAUSE, pInformation, SetEPRxCount(), STALLED, vSetEPRxStatus, vSetEPTxStatus, WAIT_STATUS_IN, and WAIT_STATUS_OUT.

Referenced by In0_Process(), Out0_Process(), and Setup0_Process().

Here is the call graph for this function:

void SetDeviceAddress ( uint8_t  Val)

References OTGD_FS_PCD_EP_SetAddress().

Referenced by In0_Process().

Here is the call graph for this function:

void NOP_Process ( void  )

Variable Documentation