These are the examples provided for [[/users/frank26080115/libraries/LPC1700CMSIS_Lib/]] Note, the entire "program" is not compilable!

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers usbcore.h Source File

usbcore.h

00001 /*----------------------------------------------------------------------------
00002  *      U S B  -  K e r n e l
00003  *----------------------------------------------------------------------------
00004  *      Name:    USBCORE.H
00005  *      Purpose: USB Core Definitions
00006  *      Version: V1.10
00007  *----------------------------------------------------------------------------
00008  *      This software is supplied "AS IS" without any warranties, express,
00009  *      implied or statutory, including but not limited to the implied
00010  *      warranties of fitness for purpose, satisfactory quality and
00011  *      noninfringement. Keil extends you a royalty-free right to reproduce
00012  *      and distribute executable files created using this software for use
00013  *      on NXP Semiconductors LPC family microcontroller devices only. Nothing 
00014  *      else gives you the right to use this software.
00015  *
00016  *      Copyright (c) 2005-2009 Keil Software.
00017  *---------------------------------------------------------------------------*/
00018 
00019 #ifndef __USBCORE_H__
00020 #define __USBCORE_H__
00021 
00022 
00023 /* USB Endpoint Data Structure */
00024 typedef struct _USB_EP_DATA {
00025   uint8_t  *pData;
00026   uint16_t   Count;
00027 } USB_EP_DATA;
00028 
00029 /* USB Core Global Variables */
00030 extern uint16_t  USB_DeviceStatus;
00031 extern uint8_t  USB_DeviceAddress;
00032 extern uint8_t  USB_Configuration;
00033 extern uint32_t USB_EndPointMask;
00034 extern uint32_t USB_EndPointHalt;
00035 extern uint8_t  USB_AltSetting[USB_IF_NUM];
00036 
00037 /* USB Endpoint 0 Buffer */
00038 extern uint8_t  EP0Buf[USB_MAX_PACKET0];
00039 
00040 /* USB Endpoint 0 Data Info */
00041 extern USB_EP_DATA EP0Data;
00042 
00043 /* USB Setup Packet */
00044 extern USB_SETUP_PACKET SetupPacket;
00045 
00046 /* USB Core Functions */
00047 extern void  USB_ResetCore (void);
00048 
00049 
00050 #endif  /* __USBCORE_H__ */