developer | 5c2422b | 2024-03-08 00:27:44 +0800 | [diff] [blame^] | 1 | /* FILE NAME: air_types.h |
| 2 | * PURPOSE: |
| 3 | * Define the commom data type in AIR SDK. |
| 4 | * NOTES: |
| 5 | */ |
| 6 | |
| 7 | #ifndef AIR_TYPES_H |
| 8 | #define AIR_TYPES_H |
| 9 | |
| 10 | /* INCLUDE FILE DECLARATIONS |
| 11 | */ |
| 12 | |
| 13 | /* NAMING CONSTANT DECLARATIONS |
| 14 | */ |
| 15 | #ifndef FALSE |
| 16 | #define FALSE 0 |
| 17 | #endif |
| 18 | |
| 19 | #ifndef TRUE |
| 20 | #define TRUE 1 |
| 21 | #endif |
| 22 | |
| 23 | #ifndef NULL |
| 24 | #define NULL (void *)0 |
| 25 | #endif |
| 26 | |
| 27 | #ifndef LOW |
| 28 | #define LOW 0 |
| 29 | #endif |
| 30 | |
| 31 | #ifndef HIGH |
| 32 | #define HIGH 1 |
| 33 | #endif |
| 34 | |
| 35 | /* MACRO FUNCTION DECLARATIONS |
| 36 | */ |
| 37 | |
| 38 | /* DATA TYPE DECLARATIONS |
| 39 | */ |
| 40 | typedef int BOOL_T; |
| 41 | typedef signed char I8_T; |
| 42 | typedef unsigned char UI8_T; |
| 43 | typedef signed short I16_T; |
| 44 | typedef unsigned short UI16_T; |
| 45 | typedef signed int I32_T; |
| 46 | typedef unsigned int UI32_T; |
| 47 | typedef char C8_T; |
| 48 | typedef unsigned long long UI64_T; |
| 49 | |
| 50 | typedef UI8_T AIR_MAC_T[6]; |
| 51 | |
| 52 | /* EXPORTED SUBPROGRAM SPECIFICATIONS |
| 53 | */ |
| 54 | |
| 55 | #endif /* AIR_TYPES_H */ |
| 56 | |