#include <stdint.h>
Go to the source code of this file.
#define __IO volatile |
#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 |
typedef enum _CONTROL_STATE CONTROL_STATE |
typedef struct OneDescriptor ONE_DESCRIPTOR |
typedef struct OneDescriptor * PONE_DESCRIPTOR |
typedef struct _ENDPOINT_INFO ENDPOINT_INFO |
typedef struct _DEVICE_INFO DEVICE_INFO |
typedef struct _DEVICE_PROP DEVICE_PROP |
typedef struct _USER_STANDARD_REQUESTS USER_STANDARD_REQUESTS |
enum _CONTROL_STATE |
enum _RESULT |
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().
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().
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().
uint8_t In0_Process | ( | void | ) |
References _DEVICE_INFO::ControlState, DEVICE_RECIPIENT, IN_DATA, LAST_IN_DATA, pInformation, Post0_Process(), pProperty, _DEVICE_PROP::Process_Status_IN, pUser_Standard_Requests, SET_ADDRESS, SetDeviceAddress(), STALLED, STANDARD_REQUEST, Type_Recipient, _DEVICE_INFO::USBbRequest, _USER_STANDARD_REQUESTS::User_SetDeviceAddress, and WAIT_STATUS_IN.
Referenced by OTGD_FS_Handle_InEP_ISR().
RESULT Standard_SetEndPointFeature | ( | void | ) |
References _GetEPRxStatus, _GetEPTxStatus, _SetEPRxStatus, _SetEPTxStatus, _DEVICE_INFO::Current_Configuration, Device_Table, ENDP0, EP_RX_STALL, EP_TX_STALL, pInformation, pUser_Standard_Requests, _DEVICE::Total_Endpoint, USB_SUCCESS, USB_UNSUPPORT, _USER_STANDARD_REQUESTS::User_SetEndPointFeature, and ValBit.
RESULT Standard_SetDeviceFeature | ( | void | ) |
RESULT Standard_SetConfiguration | ( | void | ) |
RESULT Standard_SetInterface | ( | void | ) |
uint8_t* Standard_GetDescriptorData | ( | uint16_t | Length, |
PONE_DESCRIPTOR | pDesc | ||
) |
References _GetRxStallStatus, _GetTxStallStatus, ClrBit, _DEVICE_INFO::Ctrl_Info, _DEVICE_INFO::Current_Feature, DEVICE_RECIPIENT, ENDPOINT_RECIPIENT, INTERFACE_RECIPIENT, NULL, pInformation, pUser_Standard_Requests, SetBit, STANDARD_REQUEST, StatusInfo, StatusInfo0, Type_Recipient, _ENDPOINT_INFO::Usb_wLength, _USER_STANDARD_REQUESTS::User_GetStatus, ValBit, and uint16_t_uint8_t::w.
RESULT Standard_ClearFeature | ( | void | ) |
References _GetEPRxStatus, _GetEPTxStatus, _GetRxStallStatus, _GetTxStallStatus, _SetEPRxStatus, ClrBit, _DEVICE_INFO::Current_Configuration, _DEVICE_INFO::Current_Feature, Device_Property, DEVICE_RECIPIENT, Device_Table, ENDP0, ENDPOINT_RECIPIENT, ENDPOINT_STALL, EP_RX_VALID, EP_TX_VALID, _DEVICE_PROP::MaxPacketSize, pInformation, pUser_Standard_Requests, SetEPRxCount(), SetEPTxStatus(), STANDARD_REQUEST, _DEVICE::Total_Endpoint, Type_Recipient, USB_SUCCESS, USB_UNSUPPORT, _USER_STANDARD_REQUESTS::User_ClearFeature, and ValBit.
void SetDeviceAddress | ( | uint8_t | ) |
References OTGD_FS_PCD_EP_SetAddress().
Referenced by In0_Process().
void NOP_Process | ( | void | ) |
Referenced by Post0_Process(), Standard_ClearFeature(), and USB_Init().
Referenced by USB_Init().
Referenced by Standard_ClearFeature(), Standard_SetConfiguration(), and Standard_SetEndPointFeature().
Referenced by Leave_LowPowerMode(), USB_Init(), and Virtual_Com_Port_SetConfiguration().
__IO uint16_t SaveRState |
Referenced by OTGD_FS_Handle_InEP_ISR().
__IO uint16_t SaveTState |
Referenced by OTGD_FS_Handle_InEP_ISR(), and OTGD_FS_Handle_OutEP_ISR().