PDL for FM4
Version1.2
Peripheral Driverl Library for FM4
Main Page
Modules
Data Structures
Files
File List
Globals
UsbHostClassDriverTable.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2013 Spansion LLC. All Rights Reserved.
3
*
4
* This software is owned and published by:
5
* Spansion LLC, 915 DeGuigne Dr. Sunnyvale, CA 94088-3453 ("Spansion").
6
*
7
* BY DOWNLOADING, INSTALLING OR USING THIS SOFTWARE, YOU AGREE TO BE BOUND
8
* BY ALL THE TERMS AND CONDITIONS OF THIS AGREEMENT.
9
*
10
* This software contains source code for use with Spansion
11
* components. This software is licensed by Spansion to be adapted only
12
* for use in systems utilizing Spansion components. Spansion shall not be
13
* responsible for misuse or illegal use of this software for devices not
14
* supported herein. Spansion is providing this software "AS IS" and will
15
* not be responsible for issues arising from incorrect user implementation
16
* of the software.
17
*
18
* SPANSION MAKES NO WARRANTY, EXPRESS OR IMPLIED, ARISING BY LAW OR OTHERWISE,
19
* REGARDING THE SOFTWARE (INCLUDING ANY ACOOMPANYING WRITTEN MATERIALS),
20
* ITS PERFORMANCE OR SUITABILITY FOR YOUR INTENDED USE, INCLUDING,
21
* WITHOUT LIMITATION, THE IMPLIED WARRANTY OF MERCHANTABILITY, THE IMPLIED
22
* WARRANTY OF FITNESS FOR A PARTICULAR PURPOSE OR USE, AND THE IMPLIED
23
* WARRANTY OF NONINFRINGEMENT.
24
* SPANSION SHALL HAVE NO LIABILITY (WHETHER IN CONTRACT, WARRANTY, TORT,
25
* NEGLIGENCE OR OTHERWISE) FOR ANY DAMAGES WHATSOEVER (INCLUDING, WITHOUT
26
* LIMITATION, DAMAGES FOR LOSS OF BUSINESS PROFITS, BUSINESS INTERRUPTION,
27
* LOSS OF BUSINESS INFORMATION, OR OTHER PECUNIARY LOSS) ARISING FROM USE OR
28
* INABILITY TO USE THE SOFTWARE, INCLUDING, WITHOUT LIMITATION, ANY DIRECT,
29
* INDIRECT, INCIDENTAL, SPECIAL OR CONSEQUENTIAL DAMAGES OR LOSS OF DATA,
30
* SAVINGS OR PROFITS,
31
* EVEN IF SPANSION HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
32
* YOU ASSUME ALL RESPONSIBILITIES FOR SELECTION OF THE SOFTWARE TO ACHIEVE YOUR
33
* INTENDED RESULTS, AND FOR THE INSTALLATION OF, USE OF, AND RESULTS OBTAINED
34
* FROM, THE SOFTWARE.
35
*
36
* This software may be replicated in part or whole for the licensed use,
37
* with the restriction that this Disclaimer and Copyright notice must be
38
* included with each copy of this software, whether used in part or whole,
39
* at all times.
40
*/
41
/******************************************************************************/
51
#ifndef __CLASSDRIVERTABLE_H__
52
#define __CLASSDRIVERTABLE_H__
53
54
/*****************************************************************************/
55
/* Include files */
56
/*****************************************************************************/
57
58
#include "
usb.h
"
59
60
#if (FM_PERIPHERAL_USB_HOST_ENABLED == ON)
61
62
/* DRIVER INCLUDES START*/
63
#if (USBHOSTMASSSTORAGE_ENABLED == ON)
64
#include "
UsbHostMassStorage.h
"
65
#endif
66
67
#if (USBHOSTHIDMOUSE_ENABLED == ON)
68
#include "
UsbHostHidMouse.h
"
69
#endif
70
71
#if (USBHOSTHIDKEYBOARD_ENABLED == ON)
72
#include "
UsbHostHidKeyboard.h
"
73
#endif
74
75
#if (USBHOSTHIDCOM_ENABLED == ON)
76
#include "
UsbHostHidCom.h
"
77
#endif
78
79
/* DRIVER INCLUDES STOP*/
80
81
/* OTHER USB CLASS DRIVER INCLUDES CAN BE ADDED HERE */
82
83
/*****************************************************************************/
84
/* Global pre-processor symbols/macros ('#define') */
85
/*****************************************************************************/
86
87
/* DEFINEPARSER(DRIVERTYPES) START */
88
#define USBCLASSDRIVER_MASSSTORAGE 1
89
#define USBCLASSDRIVER_MOUSE 2
90
#define USBCLASSDRIVER_JOYSTICK 3
91
#define USBCLASSDRIVER_KEYBOARD 4
92
#define USBCLASSDRIVER_HIDCOM 5
93
/* DEFINEPARSER(DRIVERTYPES) STOP */
94
95
/* OTHER USB CLASS DRIVER DEFINES CAN BE ADDED HERE */
96
97
/*****************************************************************************/
98
/* Global type definitions ('typedef') */
99
/*****************************************************************************/
100
101
/*****************************************************************************/
102
/* Global variable declarations ('extern', definition in C source) */
103
/*****************************************************************************/
104
105
#ifdef __USBHOSTCLASSSUPERVISOR_C__
106
#define MAX_CLASSHANDLERS (uint32_t)(sizeof(UsbClassHandlers) / sizeof(UsbClassHandlers[0]))
107
const
UsbClassHandler_t
UsbClassHandlers[] =
108
{
109
#if (USBHOSTHIDCOM_ENABLED == ON)
110
{
UsbHostHidCom_InitHandler
,
UsbHostHidCom_DeinitHandler
,8021,12,0,0,0,0,0,0,
USBCLASSDRIVER_HIDCOM
},
/* #include "UsbHostHidCom.h" */
111
#endif
112
113
#if (USBHOSTHIDKEYBOARD_ENABLED == ON)
114
{
UsbHostHidKeyboard_InitHandler
,
UsbHostHidKeyboard_DeinitHandler
,0,0,0,0,0,3,1,1,
USBCLASSDRIVER_KEYBOARD
},
/* #include "UsbHostHidKeyboard.h" */
115
#endif
116
117
#if (USBHOSTMASSSTORAGE_ENABLED == ON)
118
{
UsbHostMassStorage_InitHandler
,
UsbHostMassStorage_DeinitHandler
,0,0,0,0,0,8,6,80,
USBCLASSDRIVER_MASSSTORAGE
},
/* #include "UsbHostMassStorage.h" */
119
#endif
120
121
#if (USBHOSTHIDMOUSE_ENABLED == ON)
122
{
UsbHostHidMouse_InitHandler
,
UsbHostHidMouse_DeinitHandler
,0,0,0,0,0,3,1,2,
USBCLASSDRIVER_MOUSE
},
/* #include "UsbHostHidMouse.h" */
123
#endif
124
};
125
#endif
126
127
/*****************************************************************************/
128
/* Global function prototypes ('extern', definition in C source) */
129
/*****************************************************************************/
130
131
#endif
/* (USE_USB_HOST == 1) */
132
133
#endif
/* __CLASSDRIVERTABLE_H__ */
134
135
PDL_1_2
library
midware
usb
host
UsbHostClassDriverTable.h
Generated on Wed May 28 2014 09:28:12 for PDL for FM4 by
1.8.3.1