00001 /********************************************************************* 00002 * 00003 * Microchip USB C18 Firmware Version 1.0 00004 * 00005 ********************************************************************* 00006 * FileName: usbdsc.h 00007 * Dependencies: See INCLUDES section below 00008 * Processor: PIC18 00009 * Compiler: C18 2.30.01+ 00010 * Company: Microchip Technology, Inc. 00011 * 00012 * Software License Agreement 00013 * 00014 * The software supplied herewith by Microchip Technology Incorporated 00015 * (the “Company”) for its PICmicro® Microcontroller is intended and 00016 * supplied to you, the Company’s customer, for use solely and 00017 * exclusively on Microchip PICmicro Microcontroller products. The 00018 * software is owned by the Company and/or its supplier, and is 00019 * protected under applicable copyright laws. All rights are reserved. 00020 * Any use in violation of the foregoing restrictions may subject the 00021 * user to criminal sanctions under applicable laws, as well as to 00022 * civil liability for the breach of the terms and conditions of this 00023 * license. 00024 * 00025 * THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES, 00026 * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED 00027 * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 00028 * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, 00029 * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR 00030 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. 00031 * 00032 ********************************************************************/ 00033 00034 /********************************************************************* 00035 * Descriptor specific type definitions are defined in: 00036 * system\usb\usbdefs\usbdefs_std_dsc.h 00037 ********************************************************************/ 00038 00039 #ifndef USBDSC_H 00040 #define USBDSC_H 00041 00042 /** I N C L U D E S *************************************************/ 00043 #include "system\typedefs.h" 00044 #include "autofiles\usbcfg.h" 00045 00046 #if defined(USB_USE_CDC) 00047 #include "system\usb\class\cdc\cdc.h" 00048 #endif 00049 00050 #include "system\usb\usb.h" 00051 00052 /** D E F I N I T I O N S *******************************************/ 00053 00054 #define CFG01 rom struct \ 00055 { USB_CFG_DSC cd01; \ 00056 USB_INTF_DSC i01a00; \ 00057 USB_CDC_HEADER_FN_DSC cdc_header_fn_i01a00; \ 00058 USB_CDC_ACM_FN_DSC cdc_acm_fn_i01a00; \ 00059 USB_CDC_UNION_FN_DSC cdc_union_fn_i01a00; \ 00060 USB_CDC_CALL_MGT_FN_DSC cdc_call_mgt_fn_i01a00; \ 00061 USB_EP_DSC ep02i_i01a00; \ 00062 USB_INTF_DSC i02a00; \ 00063 USB_EP_DSC ep03o_i02a00; \ 00064 USB_EP_DSC ep03i_i02a00; \ 00065 } cfg01 00066 00067 /** E X T E R N S ***************************************************/ 00068 extern rom USB_DEV_DSC device_dsc; 00069 extern CFG01; 00070 extern rom const unsigned char *rom USB_CD_Ptr[]; 00071 extern rom const unsigned char *rom USB_SD_Ptr[]; 00072 00073 extern rom pFunc ClassReqHandler[1]; 00074 00075 #endif //USBDSC_H