examples/TestMasterSlave/TestSlave.c File Reference

#include "TestSlave.h"

Functions

UNS32 TestSlave_valueRangeTest (UNS8 typeValue, void *value)
const indextableTestSlave_scanIndexOD (UNS16 wIndex, UNS32 *errorCode, ODCallback_t **callbacks)

Variables

UNS8 SlaveMap1 = 0x0
UNS8 SlaveMap2 = 0x0
UNS8 SlaveMap3 = 0x0
UNS8 SlaveMap4 = 0x0
UNS8 SlaveMap5 = 0x0
UNS8 SlaveMap6 = 0x0
UNS8 SlaveMap7 = 0x0
UNS8 SlaveMap8 = 0x0
UNS8 SlaveMap9 = 0x0
UNS32 SlaveMap10 = 0x0
UNS16 SlaveMap11 = 0x0
UNS8 TestSlave_bDeviceNodeId = 0x00
const UNS8 TestSlave_iam_a_slave = 1
TIMER_HANDLE TestSlave_heartBeatTimers [1]
UNS32 TestSlave_obj1000 = 0x12D
subindex TestSlave_Index1000 []
UNS8 TestSlave_obj1001 = 0x0
subindex TestSlave_Index1001 []
UNS32 TestSlave_obj1005 = 0x80
ODCallback_t TestSlave_Index1005_callbacks []
subindex TestSlave_Index1005 []
UNS32 TestSlave_obj1006 = 0x0
ODCallback_t TestSlave_Index1006_callbacks []
subindex TestSlave_Index1006 []
UNS8 TestSlave_highestSubIndex_obj1010 = 4
UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0
UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0
UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0
UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0
ODCallback_t TestSlave_Index1010_callbacks []
subindex TestSlave_Index1010 []
UNS8 TestSlave_highestSubIndex_obj1011 = 4
UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0
UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0
UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0
UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0
ODCallback_t TestSlave_Index1011_callbacks []
subindex TestSlave_Index1011 []
UNS8 TestSlave_highestSubIndex_obj1016 = 0
UNS32 TestSlave_obj1016 [] = {0}
UNS16 TestSlave_obj1017 = 0x0
ODCallback_t TestSlave_Index1017_callbacks []
subindex TestSlave_Index1017 []
UNS8 TestSlave_highestSubIndex_obj1018 = 4
UNS32 TestSlave_obj1018_Vendor_ID = 0x0
UNS32 TestSlave_obj1018_Product_Code = 0x0
UNS32 TestSlave_obj1018_Revision_Number = 0x0
UNS32 TestSlave_obj1018_Serial_Number = 0x0
subindex TestSlave_Index1018 []
UNS8 TestSlave_highestSubIndex_obj1200 = 2
UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x601
UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x581
subindex TestSlave_Index1200 []
UNS8 TestSlave_highestSubIndex_obj1800 = 5
UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x182
UNS8 TestSlave_obj1800_Transmission_Type = 0x0
UNS16 TestSlave_obj1800_Inhibit_Time = 0x0
UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0
UNS16 TestSlave_obj1800_Event_Timer = 0x0
subindex TestSlave_Index1800 []
UNS8 TestSlave_highestSubIndex_obj1801 = 5
UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x0
UNS8 TestSlave_obj1801_Transmission_Type = 0x0
UNS16 TestSlave_obj1801_Inhibit_Time = 0x0
UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0
UNS16 TestSlave_obj1801_Event_Timer = 0x0
subindex TestSlave_Index1801 []
UNS8 TestSlave_highestSubIndex_obj1A00 = 10
UNS32 TestSlave_obj1A00 []
subindex TestSlave_Index1A00 []
UNS8 TestSlave_highestSubIndex_obj1A01 = 1
UNS32 TestSlave_obj1A01 []
subindex TestSlave_Index1A01 []
subindex TestSlave_Index2000 []
subindex TestSlave_Index2001 []
subindex TestSlave_Index2002 []
subindex TestSlave_Index2003 []
subindex TestSlave_Index2004 []
subindex TestSlave_Index2005 []
subindex TestSlave_Index2006 []
subindex TestSlave_Index2007 []
subindex TestSlave_Index2008 []
subindex TestSlave_Index2009 []
subindex TestSlave_Index200A []
const indextable TestSlave_objdict []
UNS8 TestSlave_count_sync [2] = {0,}
quick_index TestSlave_firstIndex
quick_index TestSlave_lastIndex
UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0])
CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave)

Function Documentation

const indextable* TestSlave_scanIndexOD ( UNS16  wIndex,
UNS32 *  errorCode,
ODCallback_t **  callbacks 
)

UNS32 TestSlave_valueRangeTest ( UNS8  typeValue,
void *  value 
)


Variable Documentation

UNS8 SlaveMap1 = 0x0

UNS32 SlaveMap10 = 0x0

UNS16 SlaveMap11 = 0x0

UNS8 SlaveMap2 = 0x0

UNS8 SlaveMap3 = 0x0

UNS8 SlaveMap4 = 0x0

UNS8 SlaveMap5 = 0x0

UNS8 SlaveMap6 = 0x0

UNS8 SlaveMap7 = 0x0

UNS8 SlaveMap8 = 0x0

UNS8 SlaveMap9 = 0x0

UNS8 TestSlave_bDeviceNodeId = 0x00

UNS8 TestSlave_count_sync[2] = {0,}

CO_Data TestSlave_Data = CANOPEN_NODE_DATA_INITIALIZER(TestSlave)

quick_index TestSlave_firstIndex

Initial value:

 {
  8, 
  0, 
  0, 
  0, 
  9, 
  11 
}

TIMER_HANDLE TestSlave_heartBeatTimers[1]

UNS8 TestSlave_highestSubIndex_obj1010 = 4

UNS8 TestSlave_highestSubIndex_obj1011 = 4

UNS8 TestSlave_highestSubIndex_obj1016 = 0

UNS8 TestSlave_highestSubIndex_obj1018 = 4

UNS8 TestSlave_highestSubIndex_obj1200 = 2

UNS8 TestSlave_highestSubIndex_obj1800 = 5

UNS8 TestSlave_highestSubIndex_obj1801 = 5

UNS8 TestSlave_highestSubIndex_obj1A00 = 10

UNS8 TestSlave_highestSubIndex_obj1A01 = 1

const UNS8 TestSlave_iam_a_slave = 1

subindex TestSlave_Index1000[]

Initial value:

 
                     {
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1000 }
                     }

subindex TestSlave_Index1001[]

Initial value:

 
                     {
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_obj1001 }
                     }

subindex TestSlave_Index1005[]

Initial value:

 
                     {
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1005 }
                     }

ODCallback_t TestSlave_Index1005_callbacks[]

Initial value:

 
                     {
                       NULL,
                     }

subindex TestSlave_Index1006[]

Initial value:

 
                     {
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1006 }
                     }

ODCallback_t TestSlave_Index1006_callbacks[]

Initial value:

 
                     {
                       NULL,
                     }

subindex TestSlave_Index1010[]

Initial value:

ODCallback_t TestSlave_Index1010_callbacks[]

Initial value:

 
                     {
                       NULL,
                       NULL,
                       NULL,
                       NULL,
                       NULL,
                     }

subindex TestSlave_Index1011[]

Initial value:

ODCallback_t TestSlave_Index1011_callbacks[]

Initial value:

 
                     {
                       NULL,
                       NULL,
                       NULL,
                       NULL,
                       NULL,
                     }

subindex TestSlave_Index1017[]

Initial value:

 
                     {
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1017 }
                     }

ODCallback_t TestSlave_Index1017_callbacks[]

Initial value:

 
                     {
                       NULL,
                     }

subindex TestSlave_Index1018[]

Initial value:

 
                     {
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1018 },
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Vendor_ID },
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Product_Code },
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Revision_Number },
                       { RO, uint32, sizeof (UNS32), (void*)&TestSlave_obj1018_Serial_Number }
                     }

subindex TestSlave_Index1200[]

Initial value:

subindex TestSlave_Index1800[]

Initial value:

 
                     {
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1800 },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1800_COB_ID_used_by_PDO },
                       { RW|TO_BE_SAVE, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Transmission_Type },
                       { RW|TO_BE_SAVE, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Inhibit_Time },
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1800_Compatibility_Entry },
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1800_Event_Timer }
                     }

subindex TestSlave_Index1801[]

Initial value:

 
                     {
                       { RO, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1801 },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1801_COB_ID_used_by_PDO },
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Transmission_Type },
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Inhibit_Time },
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_obj1801_Compatibility_Entry },
                       { RW, uint16, sizeof (UNS16), (void*)&TestSlave_obj1801_Event_Timer }
                     }

subindex TestSlave_Index1A00[]

Initial value:

 
                     {
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A00 },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[0] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[1] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[2] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[3] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[4] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[5] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[6] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[7] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[8] },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A00[9] }
                     }

subindex TestSlave_Index1A01[]

Initial value:

 
                     {
                       { RW, uint8, sizeof (UNS8), (void*)&TestSlave_highestSubIndex_obj1A01 },
                       { RW, uint32, sizeof (UNS32), (void*)&TestSlave_obj1A01[0] }
                     }

subindex TestSlave_Index2000[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap1 }
                     }

subindex TestSlave_Index2001[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap2 }
                     }

subindex TestSlave_Index2002[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap3 }
                     }

subindex TestSlave_Index2003[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap4 }
                     }

subindex TestSlave_Index2004[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap5 }
                     }

subindex TestSlave_Index2005[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap6 }
                     }

subindex TestSlave_Index2006[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap7 }
                     }

subindex TestSlave_Index2007[]

Initial value:

 
                     {
                       { RW, boolean, sizeof (UNS8), (void*)&SlaveMap8 }
                     }

subindex TestSlave_Index2008[]

Initial value:

 
                     {
                       { RW, uint8, sizeof (UNS8), (void*)&SlaveMap9 }
                     }

subindex TestSlave_Index2009[]

Initial value:

 
                     {
                       { RW, uint32, sizeof (UNS32), (void*)&SlaveMap10 }
                     }

subindex TestSlave_Index200A[]

Initial value:

 
                     {
                       { RW, uint16, sizeof (UNS16), (void*)&SlaveMap11 }
                     }

quick_index TestSlave_lastIndex

Initial value:

 {
  8, 
  0, 
  0, 
  0, 
  10, 
  12 
}

UNS32 TestSlave_obj1000 = 0x12D

UNS8 TestSlave_obj1001 = 0x0

UNS32 TestSlave_obj1005 = 0x80

UNS32 TestSlave_obj1006 = 0x0

UNS32 TestSlave_obj1010_Save_All_Parameters = 0x0

UNS32 TestSlave_obj1010_Save_Application_Parameters = 0x0

UNS32 TestSlave_obj1010_Save_Communication_Parameters = 0x0

UNS32 TestSlave_obj1010_Save_Manufacturer_Parameters = 0x0

UNS32 TestSlave_obj1011_Restore_All_Default_Parameters = 0x0

UNS32 TestSlave_obj1011_Restore_Application_Default_Parameters = 0x0

UNS32 TestSlave_obj1011_Restore_Communication_Default_Parameters = 0x0

UNS32 TestSlave_obj1011_Restore_Manufacturer_Default_Parameters = 0x0

UNS32 TestSlave_obj1016[] = {0}

UNS16 TestSlave_obj1017 = 0x0

UNS32 TestSlave_obj1018_Product_Code = 0x0

UNS32 TestSlave_obj1018_Revision_Number = 0x0

UNS32 TestSlave_obj1018_Serial_Number = 0x0

UNS32 TestSlave_obj1018_Vendor_ID = 0x0

UNS32 TestSlave_obj1200_COB_ID_Client_to_Server_Receive_SDO = 0x601

UNS32 TestSlave_obj1200_COB_ID_Server_to_Client_Transmit_SDO = 0x581

UNS32 TestSlave_obj1800_COB_ID_used_by_PDO = 0x182

UNS8 TestSlave_obj1800_Compatibility_Entry = 0x0

UNS16 TestSlave_obj1800_Event_Timer = 0x0

UNS16 TestSlave_obj1800_Inhibit_Time = 0x0

UNS8 TestSlave_obj1800_Transmission_Type = 0x0

UNS32 TestSlave_obj1801_COB_ID_used_by_PDO = 0x0

UNS8 TestSlave_obj1801_Compatibility_Entry = 0x0

UNS16 TestSlave_obj1801_Event_Timer = 0x0

UNS16 TestSlave_obj1801_Inhibit_Time = 0x0

UNS8 TestSlave_obj1801_Transmission_Type = 0x0

UNS32 TestSlave_obj1A00[]

Initial value:

 
                    {
                      0x20000001,       
                      0x20010001,       
                      0x20020001,       
                      0x20030001,       
                      0x20040001,       
                      0x20050001,       
                      0x20060001,       
                      0x20070001,       
                      0x20080008,       
                      0x20090020        
                    }

UNS32 TestSlave_obj1A01[]

Initial value:

 
                    {
                      0x200A0010        
                    }

const indextable TestSlave_objdict[]

Initial value:

 
{
  { (subindex*)TestSlave_Index1000,sizeof(TestSlave_Index1000)/sizeof(TestSlave_Index1000[0]), 0x1000},
  { (subindex*)TestSlave_Index1001,sizeof(TestSlave_Index1001)/sizeof(TestSlave_Index1001[0]), 0x1001},
  { (subindex*)TestSlave_Index1005,sizeof(TestSlave_Index1005)/sizeof(TestSlave_Index1005[0]), 0x1005},
  { (subindex*)TestSlave_Index1006,sizeof(TestSlave_Index1006)/sizeof(TestSlave_Index1006[0]), 0x1006},
  { (subindex*)TestSlave_Index1010,sizeof(TestSlave_Index1010)/sizeof(TestSlave_Index1010[0]), 0x1010},
  { (subindex*)TestSlave_Index1011,sizeof(TestSlave_Index1011)/sizeof(TestSlave_Index1011[0]), 0x1011},
  { (subindex*)TestSlave_Index1017,sizeof(TestSlave_Index1017)/sizeof(TestSlave_Index1017[0]), 0x1017},
  { (subindex*)TestSlave_Index1018,sizeof(TestSlave_Index1018)/sizeof(TestSlave_Index1018[0]), 0x1018},
  { (subindex*)TestSlave_Index1200,sizeof(TestSlave_Index1200)/sizeof(TestSlave_Index1200[0]), 0x1200},
  { (subindex*)TestSlave_Index1800,sizeof(TestSlave_Index1800)/sizeof(TestSlave_Index1800[0]), 0x1800},
  { (subindex*)TestSlave_Index1801,sizeof(TestSlave_Index1801)/sizeof(TestSlave_Index1801[0]), 0x1801},
  { (subindex*)TestSlave_Index1A00,sizeof(TestSlave_Index1A00)/sizeof(TestSlave_Index1A00[0]), 0x1A00},
  { (subindex*)TestSlave_Index1A01,sizeof(TestSlave_Index1A01)/sizeof(TestSlave_Index1A01[0]), 0x1A01},
  { (subindex*)TestSlave_Index2000,sizeof(TestSlave_Index2000)/sizeof(TestSlave_Index2000[0]), 0x2000},
  { (subindex*)TestSlave_Index2001,sizeof(TestSlave_Index2001)/sizeof(TestSlave_Index2001[0]), 0x2001},
  { (subindex*)TestSlave_Index2002,sizeof(TestSlave_Index2002)/sizeof(TestSlave_Index2002[0]), 0x2002},
  { (subindex*)TestSlave_Index2003,sizeof(TestSlave_Index2003)/sizeof(TestSlave_Index2003[0]), 0x2003},
  { (subindex*)TestSlave_Index2004,sizeof(TestSlave_Index2004)/sizeof(TestSlave_Index2004[0]), 0x2004},
  { (subindex*)TestSlave_Index2005,sizeof(TestSlave_Index2005)/sizeof(TestSlave_Index2005[0]), 0x2005},
  { (subindex*)TestSlave_Index2006,sizeof(TestSlave_Index2006)/sizeof(TestSlave_Index2006[0]), 0x2006},
  { (subindex*)TestSlave_Index2007,sizeof(TestSlave_Index2007)/sizeof(TestSlave_Index2007[0]), 0x2007},
  { (subindex*)TestSlave_Index2008,sizeof(TestSlave_Index2008)/sizeof(TestSlave_Index2008[0]), 0x2008},
  { (subindex*)TestSlave_Index2009,sizeof(TestSlave_Index2009)/sizeof(TestSlave_Index2009[0]), 0x2009},
  { (subindex*)TestSlave_Index200A,sizeof(TestSlave_Index200A)/sizeof(TestSlave_Index200A[0]), 0x200A},
}

UNS16 TestSlave_ObjdictSize = sizeof(TestSlave_objdict)/sizeof(TestSlave_objdict[0])


Generated on Mon Jun 4 15:50:45 2007 for CanFestival by  doxygen 1.5.1