diff -r f45fd4cd3832 -r 34654679f262 doc/doxygen/html/unix_2applicfg_8h-source.html --- a/doc/doxygen/html/unix_2applicfg_8h-source.html Fri Jul 06 10:53:15 2007 +0200 +++ b/doc/doxygen/html/unix_2applicfg_8h-source.html Mon Jul 16 08:56:03 2007 +0200 @@ -18,7 +18,7 @@
  • Globals
  • +include » unix

    applicfg.h

    Go to the documentation of this file.
    00001 /*
     00002 This file is part of CanFestival, a library implementing CanOpen Stack. 
     00003 
    @@ -46,80 +46,81 @@
     00025 
     00026 #include <string.h>
     00027 #include <stdio.h>
    -00028 
    -00029 /*  Define the architecture : little_endian or big_endian
    -00030  -----------------------------------------------------
    -00031  Test :
    -00032  UNS32 v = 0x1234ABCD;
    -00033  char *data = &v;
    -00034 
    -00035  Result for a little_endian architecture :
    -00036  data[0] = 0xCD;
    -00037  data[1] = 0xAB;
    -00038  data[2] = 0x34;
    -00039  data[3] = 0x12;
    -00040 
    -00041  Result for a big_endian architecture :
    -00042  data[0] = 0x12;
    -00043  data[1] = 0x34;
    -00044  data[2] = 0xAB;
    -00045  data[3] = 0xCD;
    -00046  */
    -00047 
    -00048 /* Integers */
    -00049 #define INTEGER8 char
    -00050 #define INTEGER16 short
    -00051 #define INTEGER24
    -00052 #define INTEGER32 long
    -00053 #define INTEGER40
    -00054 #define INTEGER48
    -00055 #define INTEGER56
    -00056 #define INTEGER64
    -00057 
    -00058 /* Unsigned integers */
    -00059 #define UNS8   unsigned char
    -00060 #define UNS16  unsigned short
    -00061 #define UNS32  unsigned long
    -00062 #define UNS24
    -00063 #define UNS40
    -00064 #define UNS48
    -00065 #define UNS56
    -00066 #define UNS64 
    -00067 
    -00068 /* Reals */
    -00069 #define REAL32  float
    -00070 #define REAL64 double
    -00071 
    -00072 /* Definition of error and warning macros */
    -00073 /* -------------------------------------- */
    -00074 #if defined DEBUG_ERR_CONSOLE_ON || defined DEBUG_WAR_CONSOLE_ON
    -00075 #include <stdio.h>
    -00076 #endif
    -00077 
    -00078 /* Definition of MSG_ERR */
    -00079 /* --------------------- */
    -00080 #ifdef DEBUG_ERR_CONSOLE_ON
    -00081 #    define MSG_ERR(num, str, val)            \
    -00082           printf("%s,%d : 0X%x %s 0X%x \n",__FILE__, __LINE__,num, str, val);
    -00083 #else
    -00084 #    define MSG_ERR(num, str, val)
    -00085 #endif
    -00086 
    -00087 /* Definition of MSG_WAR */
    -00088 /* --------------------- */
    -00089 #ifdef DEBUG_WAR_CONSOLE_ON
    -00090 #    define MSG_WAR(num, str, val)          \
    -00091           printf("%s,%d : 0X%x %s 0X%x \n",__FILE__, __LINE__,num, str, val);
    -00092 #else
    -00093 #    define MSG_WAR(num, str, val)
    -00094 #endif
    -00095 
    -00096 typedef void* CAN_HANDLE;
    -00097 
    -00098 typedef void* CAN_PORT;
    -00099 
    -00100 #endif
    -

    Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  +00028 #include <sys/types.h> +00029 +00030 /* Define the architecture : little_endian or big_endian +00031 ----------------------------------------------------- +00032 Test : +00033 UNS32 v = 0x1234ABCD; +00034 char *data = &v; +00035 +00036 Result for a little_endian architecture : +00037 data[0] = 0xCD; +00038 data[1] = 0xAB; +00039 data[2] = 0x34; +00040 data[3] = 0x12; +00041 +00042 Result for a big_endian architecture : +00043 data[0] = 0x12; +00044 data[1] = 0x34; +00045 data[2] = 0xAB; +00046 data[3] = 0xCD; +00047 */ +00048 +00049 /* Integers */ +00050 #define INTEGER8 int8_t +00051 #define INTEGER16 int16_t +00052 #define INTEGER24 int32_t +00053 #define INTEGER32 int32_t +00054 #define INTEGER40 int64_t +00055 #define INTEGER48 int64_t +00056 #define INTEGER56 int64_t +00057 #define INTEGER64 int64_t +00058 +00059 /* Unsigned integers */ +00060 #define UNS8 u_int8_t +00061 #define UNS16 u_int16_t +00062 #define UNS32 u_int32_t +00063 #define UNS24 u_int32_t +00064 #define UNS40 u_int64_t +00065 #define UNS48 u_int64_t +00066 #define UNS56 u_int64_t +00067 #define UNS64 u_int64_t +00068 +00069 /* Reals */ +00070 #define REAL32 float +00071 #define REAL64 double +00072 +00073 /* Definition of error and warning macros */ +00074 /* -------------------------------------- */ +00075 #if defined DEBUG_ERR_CONSOLE_ON || defined DEBUG_WAR_CONSOLE_ON +00076 #include <stdio.h> +00077 #endif +00078 +00079 /* Definition of MSG_ERR */ +00080 /* --------------------- */ +00081 #ifdef DEBUG_ERR_CONSOLE_ON +00082 # define MSG_ERR(num, str, val) \ +00083 printf("%s,%d : 0X%x %s 0X%x \n",__FILE__, __LINE__,num, str, val); +00084 #else +00085 # define MSG_ERR(num, str, val) +00086 #endif +00087 +00088 /* Definition of MSG_WAR */ +00089 /* --------------------- */ +00090 #ifdef DEBUG_WAR_CONSOLE_ON +00091 # define MSG_WAR(num, str, val) \ +00092 printf("%s,%d : 0X%x %s 0X%x \n",__FILE__, __LINE__,num, str, val); +00093 #else +00094 # define MSG_WAR(num, str, val) +00095 #endif +00096 +00097 typedef void* CAN_HANDLE; +00098 +00099 typedef void* CAN_PORT; +00100 +00101 #endif +
    Generated on Mon Jul 2 19:10:16 2007 for CanFestival by  doxygen 1.5.1