📄 usb_t9.h
字号:
Int32U Interface, Int32U AlternateSetting);
/*************************************************************************
* Function Name: UsbFindConfiguration
* Parameters: Int32U
*
* Return: UsbStandardConfigurationDescriptor_t *
*
* Description: Return pointer to current configuration
*
*************************************************************************/
static
UsbStandardConfigurationDescriptor_t * UsbFindConfiguration(Int32U Configuration);
/*************************************************************************
* Function Name: UsbSetConfigurtonState
* Parameters: Int32U
*
* Return: UsbCommStatus_t
*
* Description: Set configuration state
*
*************************************************************************/
inline static
UsbCommStatus_t UsbSetConfigurtonState (Int32U Configuration);
/*************************************************************************
* Function Name: UsbDevStatus
* Parameters: Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: Usb Return device status
*
*************************************************************************/
inline static
UsbCommStatus_t UsbDevStatus(Int16U Index);
/*************************************************************************
* Function Name: UsbInterfaceStatus
* Parameters: Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Return interface status into pData
*
*************************************************************************/
inline static
UsbCommStatus_t UsbInterfaceStatus(Int16U Index);
/*************************************************************************
* Function Name: UsbEpStatus
* Parameters: Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Return EP status into pData
*
*************************************************************************/
inline static
UsbCommStatus_t UsbEpStatus(Int16U Index);
/*************************************************************************
* Function Name: UsbGetStatus
* Parameters: none
*
* Return: none
*
* Description: USB Get status implement
*
*************************************************************************/
inline static
void UsbGetStatus (void);
/*************************************************************************
* Function Name: UsbClearFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Clear Device feature implement
*
*************************************************************************/
inline static
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 static
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 static
UsbCommStatus_t UsbClearEpFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbClearFeature
* Parameters: none
*
* Return: none
*
* Description: USB Clear feature implement
*
*************************************************************************/
inline static
void UsbClearFeature (void);
/*************************************************************************
* Function Name: UsbSetFeature
* Parameters: Int16U Feature,Int16U Index
*
* Return: UsbCommStatus_t
*
* Description: USB Set Device feature implement
*
*************************************************************************/
inline static
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 static
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 static
UsbCommStatus_t UsbSetEpFeature(Int16U Feature,Int16U Index);
/*************************************************************************
* Function Name: UsbSetFeature
* Parameters: none
*
* Return: none
*
* Description: USB Set feature implement
*
*************************************************************************/
inline static
void UsbSetFeature (void);
/*************************************************************************
* Function Name: UsbSetAddress
* Parameters: none
*
* Return: none
*
* Description: USB Set address request implement
*
*************************************************************************/
inline static
void UsbSetAddress (void);
/*************************************************************************
* Function Name: UsbGetDescriptorDevice
* Parameters: Int8U Index - must be 0
*
* Return: UsbCommStatus_t
*
* Description: USB get device's descriptor request implement
*
*************************************************************************/
inline static
UsbCommStatus_t UsbGetDescriptorDevice(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptorConfiguration
* Parameters: Int8U Index
*
* Return: UsbCommStatus_t
*
* Description: USB get configuration's descriptor request implement
*
*************************************************************************/
inline static
UsbCommStatus_t UsbGetDescriptorConfiguration(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptorString
* Parameters: Int8U Index
*
* Return: UsbCommStatus_t
*
* Description: USB get string's descriptor request implement
*
*************************************************************************/
inline static
UsbCommStatus_t UsbGetDescriptorString(Int8U Index);
/*************************************************************************
* Function Name: UsbGetDescriptor
* Parameters: none
*
* Return: none
*
* Description: USB get descriptor request implement
*
*************************************************************************/
inline static
void UsbGetDescriptor (void);
/*************************************************************************
* Function Name: UsbSetDescriptor
* Parameters: none
*
* Return: none
*
* Description: USB Set descriptor
*
*************************************************************************/
inline static
void UsbSetDescriptor(void);
/*************************************************************************
* Function Name: UsbGetConfiguration
* Parameters: none
*
* Return: none
*
* Description: USB Get configuration implement
*
*************************************************************************/
inline static
void UsbGetConfiguration(void);
/*************************************************************************
* Function Name: UsbSetConfiguration
* Parameters: none
*
* Return: none
*
* Description: USB Set configuration implement
*
*************************************************************************/
inline static
void UsbSetConfiguration(void);
/*************************************************************************
* Function Name: UsbGetInterface
* Parameters: none
*
* Return: none
*
* Description: Implement get interface request
*
*************************************************************************/
inline static
void UsbGetInterface (void);
/*************************************************************************
* Function Name: UsbSetInterface
* Parameters: none
*
* Return: none
*
* Description: Implement set interface request
*
*************************************************************************/
inline static
void UsbSetInterface (void);
/*************************************************************************
* Function Name: UsbSynchFrame
* Parameters: none
*
* Return: none
*
* Description: Implement synch frame request
*
*************************************************************************/
inline static
void UsbSynchFrame (void);
/*************************************************************************
* Function Name: UsbEpInterfaceCnfg
* Parameters: pUsbStandardInterfaceDescriptor_t pInterface
* Boolean Configure
*
* Return: none
*
* Description: Configure/deconfigure EPs of a certain interface
*
*************************************************************************/
static
void UsbEpInterfaceCnfg(pUsbStandardInterfaceDescriptor_t pInterface,
Boolean Configure);
/*************************************************************************
* Function Name: USB_StatusIn
* Parameters: void (*pFp)(USB_Endpoint_t)
*
* Return: none
*
* Description: Status in phase
*
*************************************************************************/
static
void USB_StatusIn (void (*pFp)(USB_Endpoint_t));
#endif //__USB_T9_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -