throttle speed before ejection
[aversive.git] / include / aversive / types.h
1 /*  
2  *  Copyright Droids Corporation, Microb Technology, Eirbot (2005)
3  * 
4  *  This program is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This program is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this program; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  *
18  *  Revision : $Id: types.h,v 1.1.2.1 2007-05-23 17:18:09 zer0 Exp $
19  *
20  */
21
22 #ifndef _AVERSIVE_TYPES_H_
23 #define _AVERSIVE_TYPES_H_
24
25 #include <inttypes.h>
26
27 #define U08_MIN 0x00
28 #define U08_MAX 0xFF
29 #define U16_MIN 0x0000
30 #define U16_MAX 0xFFFF
31 #define U32_MIN 0x00000000
32 #define U32_MAX 0xFFFFFFFF
33 #define U64_MIN 0x0000000000000000
34 #define U64_MAX 0xFFFFFFFFFFFFFFFF
35 #define S08_MIN 0x80
36 #define S08_MAX 0x7F
37 #define S16_MIN 0x8000
38 #define S16_MAX 0x7FFF
39 #define S32_MIN 0x80000000
40 #define S32_MAX 0x7FFFFFFF
41 #define S64_MIN 0x8000000000000000
42 #define S64_MAX 0x7FFFFFFFFFFFFFFF
43
44 /* you should use uintXX_t instead of uXX which is more standard */
45
46 /* explicit types u = unsigned, s = signed  */
47 typedef uint8_t   u08;
48 typedef uint16_t  u16;
49 typedef uint32_t  u32;
50 typedef uint64_t  u64;
51 typedef int8_t    s08;
52 typedef int16_t   s16;
53 typedef int32_t   s32;
54 typedef int64_t   s64;
55
56
57 #endif /* _AVERSIVE_TYPES_H_ */