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

objdict.c

Go to the documentation of this file.
00001 
+00002 /* File generated by gen_cfile.py. Should not be modified. */
+00003 
+00004 #include "objdict.h"
+00005 
+00006 /**************************************************************************/
+00007 /* Declaration of the mapped variables                                    */
+00008 /**************************************************************************/
+00009 UNS16 acceptanceFilter1 = 0x0;          /* Mapped at index 0x2015, subindex 0x00 */
+00010 UNS16 acceptanceFilter2 = 0x0;          /* Mapped at index 0x2016, subindex 0x00 */
+00011 UNS16 acceptanceFilter3 = 0x0;          /* Mapped at index 0x2017, subindex 0x00 */
+00012 UNS16 acceptanceFilter4 = 0x0;          /* Mapped at index 0x2018, subindex 0x00 */
+00013 UNS16 mask1 = 0x0;              /* Mapped at index 0x2019, subindex 0x00 */
+00014 UNS16 mask2 = 0x0;              /* Mapped at index 0x2020, subindex 0x00 */
+00015 UNS16 mask3 = 0x0;              /* Mapped at index 0x2021, subindex 0x00 */
+00016 UNS16 mask4 = 0x0;              /* Mapped at index 0x2022, subindex 0x00 */
+00017 UNS8 applyDownloadedFilters = 0x0;              /* Mapped at index 0x2023, subindex 0x00 */
+00018 
+00019 /**************************************************************************/
+00020 /* Declaration of the value range types                                   */
+00021 /**************************************************************************/
+00022 
+00023 UNS32 gene_SYNC_valueRangeTest (UNS8 typeValue, void * value)
+00024 {
+00025   switch (typeValue) {
+00026   }
+00027   return 0;
+00028 }
+00029 
+00030 /**************************************************************************/
+00031 /* The node id                                                            */
+00032 /**************************************************************************/
+00033 /* node_id default value.*/
+00034 UNS8 gene_SYNC_bDeviceNodeId = 0x03;
+00035 
+00036 /**************************************************************************/
+00037 /* Array of message processing information */
+00038 
+00039 const UNS8 gene_SYNC_iam_a_slave = 1;
+00040 
+00041 TIMER_HANDLE gene_SYNC_heartBeatTimers[1];
+00042 
+00043 /*
+00044 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00045 
+00046                                OBJECT DICTIONARY
+00047 
+00048 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
+00049 */
+00050 
+00051 /* index 0x1000 :   Device Type. */
+00052                     UNS32 gene_SYNC_obj1000 = 0x0;      /* 0 */
+00053                     subindex gene_SYNC_Index1000[] = 
+00054                      {
+00055                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1000 }
+00056                      };
+00057 
+00058 /* index 0x1001 :   Error Register. */
+00059                     UNS8 gene_SYNC_obj1001 = 0x0;       /* 0 */
+00060                     subindex gene_SYNC_Index1001[] = 
+00061                      {
+00062                        { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_obj1001 }
+00063                      };
+00064 
+00065 /* index 0x1005 :   SYNC COB ID. */
+00066                     UNS32 gene_SYNC_obj1005 = 0x40000080;       /* 1073741952 */
+00067                     ODCallback_t gene_SYNC_Index1005_callbacks[] = 
+00068                      {
+00069                        NULL,
+00070                      };
+00071                     subindex gene_SYNC_Index1005[] = 
+00072                      {
+00073                        { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1005 }
+00074                      };
+00075 
+00076 /* index 0x1006 :   Communication / Cycle Period. */
+00077                     UNS32 gene_SYNC_obj1006 = 0x2710;   /* 10000 */
+00078                     ODCallback_t gene_SYNC_Index1006_callbacks[] = 
+00079                      {
+00080                        NULL,
+00081                      };
+00082                     subindex gene_SYNC_Index1006[] = 
+00083                      {
+00084                        { RW, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1006 }
+00085                      };
+00086 
+00087 /* index 0x1008 :   Manufacturer Device Name. */
+00088                     UNS8 gene_SYNC_obj1008[10] = "GENE_SYNC";
+00089                     subindex gene_SYNC_Index1008[] = 
+00090                      {
+00091                        { RO, visible_string, sizeof (gene_SYNC_obj1008), (void*)&gene_SYNC_obj1008 }
+00092                      };
+00093 
+00094 /* index 0x1016 :   Consumer Heartbeat Time */
+00095                     UNS8 gene_SYNC_highestSubIndex_obj1016 = 0;
+00096                     UNS32 gene_SYNC_obj1016[];
+00097                     subindex gene_SYNC_Index1016[];
+00098 
+00099 /* index 0x1017 :   Producer Heartbeat Time */ 
+00100                     UNS16 gene_SYNC_obj1017 = 0x0;   /* 0 */
+00101 
+00102 /* index 0x1018 :   Identity. */
+00103                     UNS8 gene_SYNC_highestSubIndex_obj1018 = 4; /* number of subindex - 1*/
+00104                     UNS32 gene_SYNC_obj1018_Vendor_ID = 0x0;    /* 0 */
+00105                     UNS32 gene_SYNC_obj1018_Product_Code = 0x0; /* 0 */
+00106                     UNS32 gene_SYNC_obj1018_Revision_Number = 0x0;      /* 0 */
+00107                     UNS32 gene_SYNC_obj1018_Serial_Number = 0x0;        /* 0 */
+00108                     subindex gene_SYNC_Index1018[] = 
+00109                      {
+00110                        { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1018 },
+00111                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Vendor_ID },
+00112                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Product_Code },
+00113                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Revision_Number },
+00114                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1018_Serial_Number }
+00115                      };
+00116 
+00117 /* index 0x1200 :   Server SDO Parameter. */
+00118                     UNS8 gene_SYNC_highestSubIndex_obj1200 = 2; /* number of subindex - 1*/
+00119                     UNS32 gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x0;  /* 0 */
+00120                     UNS32 gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x0; /* 0 */
+00121                     subindex gene_SYNC_Index1200[] = 
+00122                      {
+00123                        { RO, uint8, sizeof (UNS8), (void*)&gene_SYNC_highestSubIndex_obj1200 },
+00124                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Client_to_Server_Receive_SDO },
+00125                        { RO, uint32, sizeof (UNS32), (void*)&gene_SYNC_obj1200_COB_ID_Server_to_Client_Transmit_SDO }
+00126                      };
+00127 
+00128 /* index 0x2015 :   Mapped variable acceptanceFilter1 */
+00129                     subindex gene_SYNC_Index2015[] = 
+00130                      {
+00131                        { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter1 }
+00132                      };
+00133 
+00134 /* index 0x2016 :   Mapped variable acceptanceFilter2 */
+00135                     subindex gene_SYNC_Index2016[] = 
+00136                      {
+00137                        { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter2 }
+00138                      };
+00139 
+00140 /* index 0x2017 :   Mapped variable acceptanceFilter3 */
+00141                     subindex gene_SYNC_Index2017[] = 
+00142                      {
+00143                        { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter3 }
+00144                      };
+00145 
+00146 /* index 0x2018 :   Mapped variable acceptanceFilter4 */
+00147                     subindex gene_SYNC_Index2018[] = 
+00148                      {
+00149                        { RW, uint16, sizeof (UNS16), (void*)&acceptanceFilter4 }
+00150                      };
+00151 
+00152 /* index 0x2019 :   Mapped variable mask1 */
+00153                     subindex gene_SYNC_Index2019[] = 
+00154                      {
+00155                        { RW, uint16, sizeof (UNS16), (void*)&mask1 }
+00156                      };
+00157 
+00158 /* index 0x2020 :   Mapped variable mask2 */
+00159                     subindex gene_SYNC_Index2020[] = 
+00160                      {
+00161                        { RW, uint16, sizeof (UNS16), (void*)&mask2 }
+00162                      };
+00163 
+00164 /* index 0x2021 :   Mapped variable mask3 */
+00165                     subindex gene_SYNC_Index2021[] = 
+00166                      {
+00167                        { RW, uint16, sizeof (UNS16), (void*)&mask3 }
+00168                      };
+00169 
+00170 /* index 0x2022 :   Mapped variable mask4 */
+00171                     subindex gene_SYNC_Index2022[] = 
+00172                      {
+00173                        { RW, uint16, sizeof (UNS16), (void*)&mask4 }
+00174                      };
+00175 
+00176 /* index 0x2023 :   Mapped variable applyDownloadedFilters */
+00177                     subindex gene_SYNC_Index2023[] = 
+00178                      {
+00179                        { RW, uint8, sizeof (UNS8), (void*)&applyDownloadedFilters }
+00180                      };
+00181 
+00182 const indextable gene_SYNC_objdict[] = 
+00183 {
+00184   { (subindex*)gene_SYNC_Index1000,sizeof(gene_SYNC_Index1000)/sizeof(gene_SYNC_Index1000[0]), 0x1000},
+00185   { (subindex*)gene_SYNC_Index1001,sizeof(gene_SYNC_Index1001)/sizeof(gene_SYNC_Index1001[0]), 0x1001},
+00186   { (subindex*)gene_SYNC_Index1005,sizeof(gene_SYNC_Index1005)/sizeof(gene_SYNC_Index1005[0]), 0x1005},
+00187   { (subindex*)gene_SYNC_Index1006,sizeof(gene_SYNC_Index1006)/sizeof(gene_SYNC_Index1006[0]), 0x1006},
+00188   { (subindex*)gene_SYNC_Index1008,sizeof(gene_SYNC_Index1008)/sizeof(gene_SYNC_Index1008[0]), 0x1008},
+00189   { (subindex*)gene_SYNC_Index1018,sizeof(gene_SYNC_Index1018)/sizeof(gene_SYNC_Index1018[0]), 0x1018},
+00190   { (subindex*)gene_SYNC_Index1200,sizeof(gene_SYNC_Index1200)/sizeof(gene_SYNC_Index1200[0]), 0x1200},
+00191   { (subindex*)gene_SYNC_Index2015,sizeof(gene_SYNC_Index2015)/sizeof(gene_SYNC_Index2015[0]), 0x2015},
+00192   { (subindex*)gene_SYNC_Index2016,sizeof(gene_SYNC_Index2016)/sizeof(gene_SYNC_Index2016[0]), 0x2016},
+00193   { (subindex*)gene_SYNC_Index2017,sizeof(gene_SYNC_Index2017)/sizeof(gene_SYNC_Index2017[0]), 0x2017},
+00194   { (subindex*)gene_SYNC_Index2018,sizeof(gene_SYNC_Index2018)/sizeof(gene_SYNC_Index2018[0]), 0x2018},
+00195   { (subindex*)gene_SYNC_Index2019,sizeof(gene_SYNC_Index2019)/sizeof(gene_SYNC_Index2019[0]), 0x2019},
+00196   { (subindex*)gene_SYNC_Index2020,sizeof(gene_SYNC_Index2020)/sizeof(gene_SYNC_Index2020[0]), 0x2020},
+00197   { (subindex*)gene_SYNC_Index2021,sizeof(gene_SYNC_Index2021)/sizeof(gene_SYNC_Index2021[0]), 0x2021},
+00198   { (subindex*)gene_SYNC_Index2022,sizeof(gene_SYNC_Index2022)/sizeof(gene_SYNC_Index2022[0]), 0x2022},
+00199   { (subindex*)gene_SYNC_Index2023,sizeof(gene_SYNC_Index2023)/sizeof(gene_SYNC_Index2023[0]), 0x2023},
+00200 };
+00201 
+00202 const indextable * gene_SYNC_scanIndexOD (UNS16 wIndex, UNS32 * errorCode, ODCallback_t **callbacks)
+00203 {
+00204         int i;
+00205         *callbacks = NULL;
+00206         switch(wIndex){
+00207                 case 0x1000: i = 0;break;
+00208                 case 0x1001: i = 1;break;
+00209                 case 0x1005: i = 2;*callbacks = gene_SYNC_Index1005_callbacks; break;
+00210                 case 0x1006: i = 3;*callbacks = gene_SYNC_Index1006_callbacks; break;
+00211                 case 0x1008: i = 4;break;
+00212                 case 0x1018: i = 5;break;
+00213                 case 0x1200: i = 6;break;
+00214                 case 0x2015: i = 7;break;
+00215                 case 0x2016: i = 8;break;
+00216                 case 0x2017: i = 9;break;
+00217                 case 0x2018: i = 10;break;
+00218                 case 0x2019: i = 11;break;
+00219                 case 0x2020: i = 12;break;
+00220                 case 0x2021: i = 13;break;
+00221                 case 0x2022: i = 14;break;
+00222                 case 0x2023: i = 15;break;
+00223                 default:
+00224                         *errorCode = OD_NO_SUCH_OBJECT;
+00225                         return NULL;
+00226         }
+00227         *errorCode = OD_SUCCESSFUL;
+00228         return &gene_SYNC_objdict[i];
+00229 }
+00230 
+00231 /* To count at which received SYNC a PDO must be sent.
+00232  * Even if no pdoTransmit are defined, at least one entry is computed
+00233  * for compilations issues.
+00234  */
+00235 UNS8 gene_SYNC_count_sync[1] = {0,};
+00236 
+00237 quick_index gene_SYNC_firstIndex = {
+00238   6, /* SDO_SVR */
+00239   0, /* SDO_CLT */
+00240   0, /* PDO_RCV */
+00241   0, /* PDO_RCV_MAP */
+00242   0, /* PDO_TRS */
+00243   0 /* PDO_TRS_MAP */
+00244 };
+00245 
+00246 quick_index gene_SYNC_lastIndex = {
+00247   6, /* SDO_SVR */
+00248   0, /* SDO_CLT */
+00249   0, /* PDO_RCV */
+00250   0, /* PDO_RCV_MAP */
+00251   0, /* PDO_TRS */
+00252   0 /* PDO_TRS_MAP */
+00253 };
+00254 
+00255 UNS16 gene_SYNC_ObjdictSize = sizeof(gene_SYNC_objdict)/sizeof(gene_SYNC_objdict[0]); 
+00256 
+00257 CO_Data gene_SYNC_Data = CANOPEN_NODE_DATA_INITIALIZER(gene_SYNC);
+00258 
+

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