📄 usb_9.h
字号:
*
* Return: none
*
* Description: USB reset callback
*
*************************************************************************/
void UsbDevResetCallback (void * pArg);
/*************************************************************************
* Function Name: UsbEp0SetupWrite
* Parameters: none
*
* Return: none
*
* Description: USB EP Write implement (IN)
*
*************************************************************************/
void UsbEp0SetupWrite (void);
/*************************************************************************
* Function Name: UsbSetConfigurtonState
* Parameters: Int32U
*
* Return: UsbCommStatus_t
*
* Description: Set configuration state
*
*************************************************************************/
inline UsbCommStatus_t UsbSetConfigurtonState (Int32U Configuration);
/*************************************************************************
* Function Name: UsbDevStatus
* Parameters: Int8U * pData, Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: Usb Return device status into pData
*
*************************************************************************/
inline UsbCommStatus_t UsbDevStatus(Int8U * pData, Int16U Index);
/*************************************************************************
* Function Name: UsbInterfaceStatus
* Parameters: Int8U * pData, Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: Usb Return interface status into pData
*
*************************************************************************/
inline UsbCommStatus_t UsbInterfaceStatus(Int8U * pData, Int16U Index);
/*************************************************************************
* Function Name: UsbEpStatus
* Parameters: Int8U * pData, Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: Usb Return Ep status into pData
*
*************************************************************************/
inline UsbCommStatus_t UsbEpStatus(Int8U * pData, Int16U Index);
/*************************************************************************
* Function Name: UsbGetStatus
* Parameters: none
*
* Return: none
*
* Description: Usb Get status implement
*
*************************************************************************/
inline void UsbGetStatus (void);
/*************************************************************************
* Function Name: UsbClearFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Clear Device feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbClearDevFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbClearInterfaceFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Clear Interface feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbClearInterfaceFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbClearEpFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Clear Ep feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbClearEpFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbClearFeature
* Parameters: none
*
* Return: none
*
* Description: USB Clear feature implement
*
*************************************************************************/
inline void UsbClearFeature (void);
/*************************************************************************
* Function Name: UsbSetFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Set Device feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbSetDevFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbSetInterfaceFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Set Interface feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbSetInterfaceFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbSetEpFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Set Ep feature implement
*
*************************************************************************/
inline UsbCommStatus_t UsbSetEpFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbSetFeature
* Parameters: none
*
* Return: none
*
* Description: USB Set feature implement
*
*************************************************************************/
inline void UsbSetFeature (void);
/*************************************************************************
* Function Name: UsbSetAddress
* Parameters: none
*
* Return: none
*
* Description: USB Set address request implement
*
*************************************************************************/
inline void UsbSetAddress (void);
/*************************************************************************
* Function Name: UsbGetDescriptorDevice
* Parameters: Int8U Index - must be 0
*
* Return: UsbCommStatus_t
*
* Description: USB get device's descriptor request implement
*
*************************************************************************/
inline UsbCommStatus_t UsbGetDescriptorDevice(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptorConfiguration
* Parameters: Int8U Index
*
* Return: UsbCommStatus_t
*
* Description: USB get configuration's descriptor request implement
*
*************************************************************************/
inline UsbCommStatus_t UsbGetDescriptorConfiguration(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptorString
* Parameters: Int8U Index
*
* Return: UsbCommStatus_t
*
* Description: USB get string's descriptor request implement
*
*************************************************************************/
inline UsbCommStatus_t UsbGetDescriptorString(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptor
* Parameters: none
*
* Return: none
*
* Description: USB get descriptor request implement
*
*************************************************************************/
inline void UsbGetDescriptor (void);
/*************************************************************************
* Function Name: UsbSetDescriptor
* Parameters: none
*
* Return: none
*
* Description: USB Set descriptor
*
*************************************************************************/
inline void UsbSetDescriptor(void);
/*************************************************************************
* Function Name: UsbGetConfiguration
* Parameters: none
*
* Return: none
*
* Description: USB Get configuration implement
*
*************************************************************************/
inline void UsbGetConfiguration(void);
/*************************************************************************
* Function Name: UsbSetConfiguration
* Parameters: none
*
* Return: none
*
* Description: USB Set configuration implement
*
*************************************************************************/
inline void UsbSetConfiguration(void);
/*************************************************************************
* Function Name: UsbGetInterface
* Parameters: none
*
* Return: none
*
* Description: Implement get interface request
*
*************************************************************************/
inline void UsbGetInterface (void);
/*************************************************************************
* Function Name: UsbSetInterface
* Parameters: none
*
* Return: none
*
* Description: Implement set interface request
*
*************************************************************************/
inline void UsbSetInterface (void);
/*************************************************************************
* Function Name: UsbSynchFrame
* Parameters: none
*
* Return: none
*
* Description: Implement synch frame request
*
*************************************************************************/
inline void UsbSynchFrame (void);
/*************************************************************************
* Function Name: UsbCtrlEpCallback
* Parameters: void * pArg
*
* Return: none
*
* Description: USB Ctrl EP Callback
*
*************************************************************************/
void UsbCtrlEpCallback (void * pArg);
#endif //__USB_9_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -