Christopher H
/
Laster_Radar_test
lightradar
Fork of Laster_Radar_test by
cdef.h@0:36109edfc712, 2015-06-22 (annotated)
- Committer:
- chrish
- Date:
- Mon Jun 22 08:52:27 2015 +0000
- Revision:
- 0:36109edfc712
Test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
chrish | 0:36109edfc712 | 1 | /******************************************************************** |
chrish | 0:36109edfc712 | 2 | * |
chrish | 0:36109edfc712 | 3 | * Name: cdef.h |
chrish | 0:36109edfc712 | 4 | * Beschreibung: grundlegende Typdefinitionen |
chrish | 0:36109edfc712 | 5 | * Autor: |
chrish | 0:36109edfc712 | 6 | * Erstellung: 23.10.2012 |
chrish | 0:36109edfc712 | 7 | * |
chrish | 0:36109edfc712 | 8 | * Revisionsliste |
chrish | 0:36109edfc712 | 9 | * Datum | Autor | Änderung |
chrish | 0:36109edfc712 | 10 | * ------------+---------------+-------------------------- |
chrish | 0:36109edfc712 | 11 | * 23.10.2012 | Altenburg | Ersterstellung |
chrish | 0:36109edfc712 | 12 | * ------------+---------------+-------------------------- |
chrish | 0:36109edfc712 | 13 | * |
chrish | 0:36109edfc712 | 14 | ********************************************************************/ |
chrish | 0:36109edfc712 | 15 | #ifndef CDEF_H |
chrish | 0:36109edfc712 | 16 | #define CDEF_H |
chrish | 0:36109edfc712 | 17 | |
chrish | 0:36109edfc712 | 18 | /**************************************************************************/ |
chrish | 0:36109edfc712 | 19 | /* Definitions */ |
chrish | 0:36109edfc712 | 20 | /**************************************************************************/ |
chrish | 0:36109edfc712 | 21 | typedef unsigned char byte; /* vorzeichenlose 8-Bit-Zahl */ |
chrish | 0:36109edfc712 | 22 | typedef unsigned short word; /* vorzeichenlose 16-Bit-Zahl */ |
chrish | 0:36109edfc712 | 23 | typedef signed char int8; /* vorzeichenbehaftete 8-Bit-Zahl */ |
chrish | 0:36109edfc712 | 24 | typedef signed short int16; /* vorzeichenbehaftete 16-Bit-Zahl */ |
chrish | 0:36109edfc712 | 25 | //typedef byte bool; /* True/False Aussage */ |
chrish | 0:36109edfc712 | 26 | typedef unsigned int dword; /* Long-Zahl */ |
chrish | 0:36109edfc712 | 27 | typedef signed int int32; |
chrish | 0:36109edfc712 | 28 | |
chrish | 0:36109edfc712 | 29 | |
chrish | 0:36109edfc712 | 30 | #define True 1 |
chrish | 0:36109edfc712 | 31 | #define False 0 |
chrish | 0:36109edfc712 | 32 | #define true 1 |
chrish | 0:36109edfc712 | 33 | #define false 0 |
chrish | 0:36109edfc712 | 34 | #define On 1 |
chrish | 0:36109edfc712 | 35 | #define Off 0 |
chrish | 0:36109edfc712 | 36 | #define Yes 1 |
chrish | 0:36109edfc712 | 37 | #define No 0 |
chrish | 0:36109edfc712 | 38 | |
chrish | 0:36109edfc712 | 39 | #define Bit0 0x01 /* Bit-Definitionen */ |
chrish | 0:36109edfc712 | 40 | #define Bit1 0x02 |
chrish | 0:36109edfc712 | 41 | #define Bit2 0x04 |
chrish | 0:36109edfc712 | 42 | #define Bit3 0x08 |
chrish | 0:36109edfc712 | 43 | #define Bit4 0x10 |
chrish | 0:36109edfc712 | 44 | #define Bit5 0x20 |
chrish | 0:36109edfc712 | 45 | #define Bit6 0x40 |
chrish | 0:36109edfc712 | 46 | #define Bit7 0x80 |
chrish | 0:36109edfc712 | 47 | #define Bit8 (1 << 8) /* Bit-Definitionen */ |
chrish | 0:36109edfc712 | 48 | #define Bit9 (1 << 9) |
chrish | 0:36109edfc712 | 49 | #define Bit10 (1 << 10) |
chrish | 0:36109edfc712 | 50 | #define Bit11 (1 << 11) |
chrish | 0:36109edfc712 | 51 | #define Bit12 (1 << 12) |
chrish | 0:36109edfc712 | 52 | #define Bit13 (1 << 13) |
chrish | 0:36109edfc712 | 53 | #define Bit14 (1 << 14) |
chrish | 0:36109edfc712 | 54 | #define Bit15 (1 << 15) |
chrish | 0:36109edfc712 | 55 | #define Bit16 (1 << 16) /* Bit-Definitionen */ |
chrish | 0:36109edfc712 | 56 | #define Bit17 (1 << 17) |
chrish | 0:36109edfc712 | 57 | #define Bit18 (1 << 18) |
chrish | 0:36109edfc712 | 58 | #define Bit19 (1 << 19) |
chrish | 0:36109edfc712 | 59 | #define Bit20 (1 << 20) |
chrish | 0:36109edfc712 | 60 | #define Bit21 (1 << 21) |
chrish | 0:36109edfc712 | 61 | #define Bit22 (1 << 22) |
chrish | 0:36109edfc712 | 62 | #define Bit23 (1 << 23) |
chrish | 0:36109edfc712 | 63 | #define Bit24 (1 << 24) /* Bit-Definitionen */ |
chrish | 0:36109edfc712 | 64 | #define Bit25 (1 << 25) |
chrish | 0:36109edfc712 | 65 | #define Bit26 (1 << 26) |
chrish | 0:36109edfc712 | 66 | #define Bit27 (1 << 27) |
chrish | 0:36109edfc712 | 67 | #define Bit28 (1 << 28) |
chrish | 0:36109edfc712 | 68 | #define Bit29 (1 << 29) |
chrish | 0:36109edfc712 | 69 | #define Bit30 (1 << 30) |
chrish | 0:36109edfc712 | 70 | #define Bit31 (1 << 31) |
chrish | 0:36109edfc712 | 71 | |
chrish | 0:36109edfc712 | 72 | |
chrish | 0:36109edfc712 | 73 | #endif |
chrish | 0:36109edfc712 | 74 | /********************************************************************/ |
chrish | 0:36109edfc712 | 75 | |
chrish | 0:36109edfc712 | 76 |