]> sigrok.org Git - sigrok-firmware-fx2lafw.git/blob - fx2lib/include/fx2types.h
Import fx2lib into fx2lafw directly.
[sigrok-firmware-fx2lafw.git] / fx2lib / include / fx2types.h
1 // Copyright (C) 2009 Ubixum, Inc. 
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
16
17 /*! \file 
18  *  define standard types of fixed widths.
19  * */
20
21 #ifndef FXTYPES_H
22 #define FXTYPES_H
23
24 typedef unsigned int WORD;
25 typedef unsigned char BYTE;
26 typedef unsigned long DWORD;
27 typedef unsigned char BOOL; 
28 typedef enum {
29  FALSE=0,
30  TRUE
31 } BOOL_VALS;
32
33 #ifndef NULL
34 #define NULL (void*)0
35 #endif
36
37 /*-----------------------------------------------------------------------------
38    Bit Masks
39 -----------------------------------------------------------------------------*/
40
41 #define bmBIT0  1
42 #define bmBIT1  2
43 #define bmBIT2  4
44 #define bmBIT3  8
45 #define bmBIT4  16
46 #define bmBIT5  32
47 #define bmBIT6  64
48 #define bmBIT7  128
49
50 #endif