examples/TestMasterSlave/TestMaster.c
changeset 284 24bf3d692993
parent 236 905677ed00f3
child 287 fa4df65d0683
equal deleted inserted replaced
283:e0b3096230e5 284:24bf3d692993
    64                     subindex TestMaster_Index1001[] = 
    64                     subindex TestMaster_Index1001[] = 
    65                      {
    65                      {
    66                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
    66                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_obj1001 }
    67                      };
    67                      };
    68 
    68 
       
    69 /* index 0x1003 :   Pre-defined Error Field */
       
    70                     UNS8 TestMaster_highestSubIndex_obj1003 = 0; /* number of subindex - 1*/
       
    71                     UNS32 TestMaster_obj1003[] = 
       
    72                     {
       
    73                       0x0	/* 0 */
       
    74                     };
       
    75                     ODCallback_t TestMaster_Index1003_callbacks[] = 
       
    76                      {
       
    77                        NULL,
       
    78                        NULL,
       
    79                      };
       
    80                     subindex TestMaster_Index1003[] = 
       
    81                      {
       
    82                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1003 },
       
    83                        { RO, uint32, sizeof (UNS32), (void*)&TestMaster_obj1003[0] }
       
    84                      };
       
    85 
    69 /* index 0x1005 :   SYNC COB ID. */
    86 /* index 0x1005 :   SYNC COB ID. */
    70                     UNS32 TestMaster_obj1005 = 0x40000080;	/* 1073741952 */
    87                     UNS32 TestMaster_obj1005 = 0x40000080;	/* 1073741952 */
    71                     ODCallback_t TestMaster_Index1005_callbacks[] = 
    88                     ODCallback_t TestMaster_Index1005_callbacks[] = 
    72                      {
    89                      {
    73                        NULL,
    90                        NULL,
   150 
   167 
   151 /* index 0x1280 :   Client SDO 1 Parameter. */
   168 /* index 0x1280 :   Client SDO 1 Parameter. */
   152                     UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
   169                     UNS8 TestMaster_highestSubIndex_obj1280 = 3; /* number of subindex - 1*/
   153                     UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602;	/* 1538 */
   170                     UNS32 TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO = 0x602;	/* 1538 */
   154                     UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582;	/* 1410 */
   171                     UNS32 TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO = 0x582;	/* 1410 */
   155                     INTEGER32 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2;	/* 2 */
   172                     UNS8 TestMaster_obj1280_Node_ID_of_the_SDO_Server = 0x2;	/* 2 */
   156                     subindex TestMaster_Index1280[] = 
   173                     subindex TestMaster_Index1280[] = 
   157                      {
   174                      {
   158                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
   175                        { RO, uint8, sizeof (UNS8), (void*)&TestMaster_highestSubIndex_obj1280 },
   159                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
   176                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Client_to_Server_Transmit_SDO },
   160                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
   177                        { RW, uint32, sizeof (UNS32), (void*)&TestMaster_obj1280_COB_ID_Server_to_Client_Receive_SDO },
   161                        { RW, int32, sizeof (INTEGER32), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
   178                        { RW, uint8, sizeof (UNS8), (void*)&TestMaster_obj1280_Node_ID_of_the_SDO_Server }
   162                      };
   179                      };
   163 
   180 
   164 /* index 0x1400 :   Receive PDO 1 Parameter. */
   181 /* index 0x1400 :   Receive PDO 1 Parameter. */
   165                     UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
   182                     UNS8 TestMaster_highestSubIndex_obj1400 = 5; /* number of subindex - 1*/
   166                     UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x200;	/* 512 */
   183                     UNS32 TestMaster_obj1400_COB_ID_used_by_PDO = 0x200;	/* 512 */