00001 /****************************************************************************** 00002 * $Id$ / 1.0 / 2009.12.18 00003 * http://emea.fujitsu.com 00004 *****************************************************************************/ 00005 /* (C) Fujitsu Microelectronics Europe GmbH */ 00006 /* */ 00007 /* The following software deliverable is intended for and must only be */ 00008 /* used in an evaluation laboratory environment. */ 00009 /* It is provided without charge and therefore provided on an as-is */ 00010 /* basis, subject to alterations. */ 00011 /* */ 00012 /* The software deliverable is to be used exclusively in connection */ 00013 /* with FME products. */ 00014 /* In the event the software deliverable includes the use of open */ 00015 /* source components, the provisions of the governing open source */ 00016 /* license agreement shall apply with respect to such software */ 00017 /* deliverable. */ 00018 /* FME does not warrant that the deliverables do not infringe any */ 00019 /* third party intellectual property right (IPR). In the event that */ 00020 /* the deliverables infringe a third party IPR it is the sole */ 00021 /* responsibility of the customer to obtain necessary licenses to */ 00022 /* continue the usage of the deliverable. */ 00023 /* */ 00024 /* To the maximum extent permitted by applicable law FME disclaims all */ 00025 /* warranties, whether express or implied, in particular, but not */ 00026 /* limited to, warranties of merchantability and fitness for a */ 00027 /* particular purpose for which the deliverable is not designated. */ 00028 /* */ 00029 /* To the maximum extent permitted by applicable law, FME’s liability */ 00030 /* is restricted to intention and gross negligence. */ 00031 /* FME is not liable for consequential damages. */ 00032 /* */ 00033 /* (Disclaimer V1.2) */ 00034 /*****************************************************************************/ 00043 #ifndef __USBCLASS_H__ 00044 #define __USBCLASS_H__ 00045 00046 /*****************************************************************************/ 00047 /* Include files */ 00048 /*****************************************************************************/ 00049 00050 #include "UsbFunction.h" 00051 00052 00053 /*****************************************************************************/ 00054 /* Global pre-processor symbols/macros ('#define') */ 00055 /*****************************************************************************/ 00056 00057 #define BUFFER_SIZE_ENDPOINT1 3000 //buffer Size by default 512 bytes 00058 00059 00060 /*****************************************************************************/ 00061 /* Global type definitions ('typedef') */ 00062 /*****************************************************************************/ 00063 00064 00065 00066 /*****************************************************************************/ 00067 /* Global variable declarations ('extern', definition in C source) */ 00068 /*****************************************************************************/ 00069 00070 00071 00072 /*****************************************************************************/ 00073 /* Global function prototypes ('extern', definition in C source) */ 00074 /*****************************************************************************/ 00075 00076 void UsbClass_Init(void); 00077 uint8_t UsbClass_DataReceiveEventEndpoint1(usb_event_t * stcEvent); 00078 uint32_t UsbClass_GetReceivedDataEndpoint1(uint8_t** pu8Buffer); 00079 uint8_t SendDataVia5(puint8_t pu8Buffer, uint32_t u32DataSize, uint8_t u8PollingMode); 00080 uint8_t UsbClass_DataSentEventEndpoint5(usb_event_t * stcEvent); 00081 uint8_t UsbClass_DataSent5(void); 00082 uint8_t UsbClass_ClassEventHandler(usb_event_t * stcEvent); 00083 00084 00085 #endif /* __USBCLASS_H__*/
1.6.1