diff -r 003cc3c63855 -r f49e5a6b7804 doc/doxygen/html/win32test_8c-source.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/doc/doxygen/html/win32test_8c-source.html Fri Jun 08 09:23:56 2007 +0200 @@ -0,0 +1,185 @@ + + +CanFestival: examples/win32test/win32test.c Source File + + + + +
+
+
+
+ +

win32test.c

Go to the documentation of this file.
00001 
+00002 /* File generated by gen_cfile.py. Should not be modified. */
+00003 
+00004 #include "win32test.h"
+00005 
+00006 /**************************************************************************/
+00007 /* Declaration of the mapped variables                                    */
+00008 /**************************************************************************/
+00009 
+00010 /**************************************************************************/
+00011 /* Declaration of the value range types                                   */
+00012 /**************************************************************************/
+00013 
+00014 UNS32 win32test_valueRangeTest (UNS8 typeValue, void * value)
+00015 {
+00016   switch (typeValue) {
+00017   }
+00018   return 0;
+00019 }
+00020 
+00021 /**************************************************************************/
+00022 /* The node id                                                            */
+00023 /**************************************************************************/
+00024 /* node_id default value.*/
+00025 UNS8 win32test_bDeviceNodeId = 0x01;
+00026 
+00027 /**************************************************************************/
+00028 /* Array of message processing information */
+00029 
+00030 const UNS8 win32test_iam_a_slave = 0;
+00031 
+00032 TIMER_HANDLE win32test_heartBeatTimers[1];
+00033 
+00034 /*
+00035 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00036 
+00037                                OBJECT DICTIONARY
+00038 
+00039 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00040 */
+00041 
+00042 /* index 0x1000 :   Device Type. */
+00043                     UNS32 win32test_obj1000 = 0x12D;    /* 301 */
+00044                     subindex win32test_Index1000[] = 
+00045                      {
+00046                        { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1000 }
+00047                      };
+00048 
+00049 /* index 0x1001 :   Error Register. */
+00050                     UNS8 win32test_obj1001 = 0x0;       /* 0 */
+00051                     subindex win32test_Index1001[] = 
+00052                      {
+00053                        { RO, uint8, sizeof (UNS8), (void*)&win32test_obj1001 }
+00054                      };
+00055 
+00056 /* index 0x1005 :   SYNC COB ID. */
+00057                     UNS32 win32test_obj1005 = 0x0;      /* 0 */
+00058                     ODCallback_t win32test_Index1005_callbacks[] = 
+00059                      {
+00060                        NULL,
+00061                      };
+00062                     subindex win32test_Index1005[] = 
+00063                      {
+00064                        { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1005 }
+00065                      };
+00066 
+00067 /* index 0x1006 :   Communication / Cycle Period */
+00068                     UNS32 win32test_obj1006 = 0x0;   /* 0 */
+00069 
+00070 /* index 0x1016 :   Consumer Heartbeat Time */
+00071                     UNS8 win32test_highestSubIndex_obj1016 = 0;
+00072                     UNS32 win32test_obj1016[]={0};
+00073 
+00074 /* index 0x1017 :   Producer Heartbeat Time */ 
+00075                     UNS16 win32test_obj1017 = 0x0;   /* 0 */
+00076 
+00077 /* index 0x1018 :   Identity. */
+00078                     UNS8 win32test_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
+00079                     UNS32 win32test_obj1018_Vendor_ID = 0x0;    /* 0 */
+00080                     UNS32 win32test_obj1018_Product_Code = 0x0; /* 0 */
+00081                     UNS32 win32test_obj1018_Revision_Number = 0x0;      /* 0 */
+00082                     UNS32 win32test_obj1018_Serial_Number = 0x0;        /* 0 */
+00083                     subindex win32test_Index1018[] = 
+00084                      {
+00085                        { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1018 },
+00086                        { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Vendor_ID },
+00087                        { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Product_Code },
+00088                        { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Revision_Number },
+00089                        { RO, uint32, sizeof (UNS32), (void*)&win32test_obj1018_Serial_Number }
+00090                      };
+00091 
+00092 /* index 0x1280 :   Client SDO 1 Parameter. */
+00093                     UNS8 win32test_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
+00094                     UNS32 win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x0; /* 0 */
+00095                     UNS32 win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x0;  /* 0 */
+00096                     UNS32 win32test_obj1280_Node_ID_of_the_SDO_Server = 0x0;    /* 0 */
+00097                     subindex win32test_Index1280[] = 
+00098                      {
+00099                        { RO, uint8, sizeof (UNS8), (void*)&win32test_highestSubIndex_obj1280 },
+00100                        { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
+00101                        { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_COB_ID_Server_to_Client_Receive_SDO },
+00102                        { RW, uint32, sizeof (UNS32), (void*)&win32test_obj1280_Node_ID_of_the_SDO_Server }
+00103                      };
+00104 
+00105 const indextable win32test_objdict[] = 
+00106 {
+00107   { (subindex*)win32test_Index1000,sizeof(win32test_Index1000)/sizeof(win32test_Index1000[0]), 0x1000},
+00108   { (subindex*)win32test_Index1001,sizeof(win32test_Index1001)/sizeof(win32test_Index1001[0]), 0x1001},
+00109   { (subindex*)win32test_Index1005,sizeof(win32test_Index1005)/sizeof(win32test_Index1005[0]), 0x1005},
+00110   { (subindex*)win32test_Index1018,sizeof(win32test_Index1018)/sizeof(win32test_Index1018[0]), 0x1018},
+00111   { (subindex*)win32test_Index1280,sizeof(win32test_Index1280)/sizeof(win32test_Index1280[0]), 0x1280},
+00112 };
+00113 
+00114 const indextable * win32test_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
+00115 {
+00116         int i;
+00117         *callbacks = NULL;
+00118         switch(wIndex){
+00119                 case 0x1000: i = 0;break;
+00120                 case 0x1001: i = 1;break;
+00121                 case 0x1005: i = 2;*callbacks = win32test_Index1005_callbacks; break;
+00122                 case 0x1018: i = 3;break;
+00123                 case 0x1280: i = 4;break;
+00124                 default:
+00125                         *errorCode = OD_NO_SUCH_OBJECT;
+00126                         return NULL;
+00127         }
+00128         *errorCode = OD_SUCCESSFUL;
+00129         return &win32test_objdict[i];
+00130 }
+00131 
+00132 /* To count at which received SYNC a PDO must be sent.
+00133  * Even if no pdoTransmit are defined, at least one entry is computed
+00134  * for compilations issues.
+00135  */
+00136 UNS8 win32test_count_sync[1] = {0,};
+00137 
+00138 quick_index win32test_firstIndex = {
+00139   0, /* SDO_SVR */
+00140   4, /* SDO_CLT */
+00141   0, /* PDO_RCV */
+00142   0, /* PDO_RCV_MAP */
+00143   0, /* PDO_TRS */
+00144   0 /* PDO_TRS_MAP */
+00145 };
+00146 
+00147 quick_index win32test_lastIndex = {
+00148   0, /* SDO_SVR */
+00149   4, /* SDO_CLT */
+00150   0, /* PDO_RCV */
+00151   0, /* PDO_RCV_MAP */
+00152   0, /* PDO_TRS */
+00153   0 /* PDO_TRS_MAP */
+00154 };
+00155 
+00156 UNS16 win32test_ObjdictSize = sizeof(win32test_objdict)/sizeof(win32test_objdict[0]); 
+00157 
+00158 CO_Data win32test_Data = CANOPEN_NODE_DATA_INITIALIZER(win32test);
+00159 
+

Generated on Fri Jun 8 08:51:39 2007 for CanFestival by  + +doxygen 1.5.1
+ +