|
1 /* Cypress West Bridge API header file (cyastypes.h) |
|
2 ## =========================== |
|
3 ## |
|
4 ## Copyright Cypress Semiconductor Corporation, 2006-2009, |
|
5 ## All Rights Reserved |
|
6 ## UNPUBLISHED, LICENSED SOFTWARE. |
|
7 ## |
|
8 ## CONFIDENTIAL AND PROPRIETARY INFORMATION |
|
9 ## WHICH IS THE PROPERTY OF CYPRESS. |
|
10 ## |
|
11 ## Use of this file is governed |
|
12 ## by the license agreement included in the file |
|
13 ## |
|
14 ## <install>/license/license.txt |
|
15 ## |
|
16 ## where <install> is the Cypress software |
|
17 ## installation root directory path. |
|
18 ## |
|
19 ## =========================== |
|
20 */ |
|
21 |
|
22 #ifndef _INCLUDED_CYASTYPES_H_ |
|
23 #define _INCLUDED_CYASTYPES_H_ |
|
24 |
|
25 #include "cyashaldef.h" |
|
26 |
|
27 /* Types that are not available on specific platforms. |
|
28 * These are used only in the reference HAL implementations and |
|
29 * are not required for using the API. |
|
30 */ |
|
31 #ifdef __unix__ |
|
32 typedef unsigned long DWORD; |
|
33 typedef void * LPVOID; |
|
34 #define WINAPI |
|
35 #define INFINITE (0xFFFFFFFF) |
|
36 #define PtrToUint(ptr) ((unsigned int)(ptr)) |
|
37 #endif |
|
38 |
|
39 /* Basic types used by the entire API */ |
|
40 |
|
41 /* Summary |
|
42 This type represents an endpoint number |
|
43 */ |
|
44 typedef uint8_t CyAsEndPointNumber_t ; |
|
45 |
|
46 /* Summary |
|
47 This type is used to return status information from an API call. |
|
48 */ |
|
49 typedef uint16_t CyAsReturnStatus_t ; |
|
50 |
|
51 /* Summary |
|
52 This type represents a bus number |
|
53 */ |
|
54 typedef uint32_t CyAsBusNumber_t ; |
|
55 |
|
56 /* Summary |
|
57 All APIs provided with this release are marked extern through this definition. |
|
58 This definition can be changed to meet the scope changes required in the user |
|
59 build environment. |
|
60 |
|
61 For example, this can be changed to __declspec(exportdll) to enable exporting |
|
62 the API from a DLL. |
|
63 */ |
|
64 #define EXTERN extern |
|
65 |
|
66 #endif |