equal
deleted
inserted
replaced
35 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ |
35 #define valueRange_EMC 0x9F /* Type for index 0x1003 subindex 0x00 (only set of value 0 is possible) */ |
36 UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) |
36 UNS32 TestMaster_valueRangeTest (UNS8 typeValue, void * value) |
37 { |
37 { |
38 switch (typeValue) { |
38 switch (typeValue) { |
39 case valueRange_EMC: |
39 case valueRange_EMC: |
40 if (*(UNS8*)value > (UNS8)0) return OD_VALUE_TOO_HIGH; |
40 if (*(UNS8*)value != (UNS8)0) return OD_VALUE_RANGE_EXCEEDED; |
41 break; |
41 break; |
42 } |
42 } |
43 return 0; |
43 return 0; |
44 } |
44 } |
45 |
45 |
46 /**************************************************************************/ |
46 /**************************************************************************/ |
47 /* The node id */ |
47 /* The node id */ |
48 /**************************************************************************/ |
48 /**************************************************************************/ |
49 /* node_id default value.*/ |
49 /* node_id default value.*/ |
50 UNS8 TestMaster_bDeviceNodeId = 0x01; |
50 UNS8 TestMaster_bDeviceNodeId = 0x00; |
51 |
51 |
52 /**************************************************************************/ |
52 /**************************************************************************/ |
53 /* Array of message processing information */ |
53 /* Array of message processing information */ |
54 |
54 |
55 const UNS8 TestMaster_iam_a_slave = 0; |
55 const UNS8 TestMaster_iam_a_slave = 0; |