Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
usbuser.h
00001 /** 00002 * @file usbuser.h 00003 * @brief 00004 * 00005 * DAPLink Interface Firmware 00006 * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved 00007 * SPDX-License-Identifier: Apache-2.0 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); you may 00010 * not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00017 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00022 #ifndef __USBUSER_H 00023 #define __USBUSER_H 00024 00025 00026 /* USB Device Events Callback Functions */ 00027 extern void USB_Power_Event(BOOL power); 00028 extern void USB_Reset_Event(void); 00029 extern void USB_Suspend_Event(void); 00030 extern void USB_Resume_Event(void); 00031 extern void USB_WakeUp_Event(void); 00032 extern void USB_SOF_Event(void); 00033 extern void USB_Error_Event(U32 error); 00034 00035 /* USB Endpoint Callback Events */ 00036 #define USB_EVT_SETUP 1 /* Setup Packet */ 00037 #define USB_EVT_OUT 2 /* OUT Packet */ 00038 #define USB_EVT_IN 3 /* IN Packet */ 00039 #define USB_EVT_OUT_NAK 4 /* OUT Packet - Not Acknowledged */ 00040 #define USB_EVT_IN_NAK 5 /* IN Packet - Not Acknowledged */ 00041 #define USB_EVT_OUT_STALL 6 /* OUT Packet - Stalled */ 00042 #define USB_EVT_IN_STALL 7 /* IN Packet - Stalled */ 00043 #define USB_EVT_OUT_DMA_EOT 8 /* DMA OUT EP - End of Transfer */ 00044 #define USB_EVT_IN_DMA_EOT 9 /* DMA IN EP - End of Transfer */ 00045 #define USB_EVT_OUT_DMA_NDR 10 /* DMA OUT EP - New Descriptor Request */ 00046 #define USB_EVT_IN_DMA_NDR 11 /* DMA IN EP - New Descriptor Request */ 00047 #define USB_EVT_OUT_DMA_ERR 12 /* DMA OUT EP - Error */ 00048 #define USB_EVT_IN_DMA_ERR 13 /* DMA IN EP - Error */ 00049 00050 /* USB Endpoint Events Callback Pointers */ 00051 extern void (* const USB_P_EP[16])(U32 event); 00052 00053 /* USB Endpoint Events Callback Functions */ 00054 extern void USB_EndPoint0(U32 event); 00055 extern void USB_EndPoint1(U32 event); 00056 extern void USB_EndPoint2(U32 event); 00057 extern void USB_EndPoint3(U32 event); 00058 extern void USB_EndPoint4(U32 event); 00059 extern void USB_EndPoint5(U32 event); 00060 extern void USB_EndPoint6(U32 event); 00061 extern void USB_EndPoint7(U32 event); 00062 extern void USB_EndPoint8(U32 event); 00063 extern void USB_EndPoint9(U32 event); 00064 extern void USB_EndPoint10(U32 event); 00065 extern void USB_EndPoint11(U32 event); 00066 extern void USB_EndPoint12(U32 event); 00067 extern void USB_EndPoint13(U32 event); 00068 extern void USB_EndPoint14(U32 event); 00069 extern void USB_EndPoint15(U32 event); 00070 00071 /* USB Core Events Callback Functions */ 00072 extern void USB_Configure_Event(void); 00073 extern void USB_Interface_Event(void); 00074 extern void USB_Feature_Event(void); 00075 00076 00077 #endif /* __USBUSER_H */
Generated on Tue Jul 12 2022 15:37:27 by
