include/data.h
changeset 167 b2f8b91d89b5
parent 161 c4908cc776a9
child 172 0248c2b148bb
equal deleted inserted replaced
166:b6fbc1c59a44 167:b2f8b91d89b5
   126 	\
   126 	\
   127 	/* SDO, structure s_transfer */\
   127 	/* SDO, structure s_transfer */\
   128 	{\
   128 	{\
   129           REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(s_transfer_Initializer)\
   129           REPEAT_SDO_MAX_SIMULTANEOUS_TRANSFERTS_TIMES(s_transfer_Initializer)\
   130 	},\
   130 	},\
   131 	_SDOtimeoutError,/*&NODE_PREFIX ## _SDOtimeoutError,    /* SDOtimeoutError */\
   131 	_SDOtimeoutError,   /* SDOtimeoutError */\
   132 	\
   132 	\
   133 	/* State machine*/\
   133 	/* State machine*/\
   134 	Unknown_state,      /* nodeState */\
   134 	Unknown_state,      /* nodeState */\
   135 	/* structure s_state_communication */\
   135 	/* structure s_state_communication */\
   136 	{\
   136 	{\
   139 		0,          /* csEmergency */\
   139 		0,          /* csEmergency */\
   140 		0,          /* csSYNC */\
   140 		0,          /* csSYNC */\
   141 		0,          /* csHeartbeat */\
   141 		0,          /* csHeartbeat */\
   142 		0           /* csPDO */\
   142 		0           /* csPDO */\
   143 	},\
   143 	},\
   144 	_initialisation,/*&NODE_PREFIX ## _initialisation,     /* initialisation */\
   144 	_initialisation,     /* initialisation */\
   145 	_preOperational,/*&NODE_PREFIX ## _preOperational,     /* preOperational */\
   145 	_preOperational,     /* preOperational */\
   146 	_operational,/*&NODE_PREFIX ## _operational,        /* operational */\
   146 	_operational,        /* operational */\
   147 	_stopped,/*&NODE_PREFIX ## _stopped,            /* stopped */\
   147 	_stopped,            /* stopped */\
   148 	\
   148 	\
   149 	/* NMT-heartbeat */\
   149 	/* NMT-heartbeat */\
   150 	& NODE_PREFIX ## _highestSubIndex_obj1016, /* ConsumerHeartbeatCount */\
   150 	& NODE_PREFIX ## _highestSubIndex_obj1016, /* ConsumerHeartbeatCount */\
   151 	NODE_PREFIX ## _obj1016,                   /* ConsumerHeartbeatEntries */\
   151 	NODE_PREFIX ## _obj1016,                   /* ConsumerHeartbeatEntries */\
   152 	NODE_PREFIX ## _heartBeatTimers,           /* ConsumerHeartBeatTimers  */\
   152 	NODE_PREFIX ## _heartBeatTimers,           /* ConsumerHeartBeatTimers  */\
   153 	& NODE_PREFIX ## _obj1017,                 /* ProducerHeartBeatTime */\
   153 	& NODE_PREFIX ## _obj1017,                 /* ProducerHeartBeatTime */\
   154 	TIMER_NONE,                                /* ProducerHeartBeatTimer */\
   154 	TIMER_NONE,                                /* ProducerHeartBeatTimer */\
   155 	_heartbeatError,/*NODE_PREFIX ## _heartbeatError,            /* heartbeatError */\
   155 	_heartbeatError,           /* heartbeatError */\
   156 	\
   156 	\
   157 	{REPEAT_NMT_MAX_NODE_ID_TIMES(NMTable_Initializer)},\
   157 	{REPEAT_NMT_MAX_NODE_ID_TIMES(NMTable_Initializer)},\
   158                                                    /* is  well initialized at "Unknown_state". Is it ok ? (FD)*/\
   158                                                    /* is  well initialized at "Unknown_state". Is it ok ? (FD)*/\
   159 	\
   159 	\
   160 	/* SYNC */\
   160 	/* SYNC */\
   161 	TIMER_NONE,                                /* syncTimer */\
   161 	TIMER_NONE,                                /* syncTimer */\
   162 	& NODE_PREFIX ## _obj1005,                 /* COB_ID_Sync */\
   162 	& NODE_PREFIX ## _obj1005,                 /* COB_ID_Sync */\
   163 	& NODE_PREFIX ## _obj1006,                 /* Sync_Cycle_Period */\
   163 	& NODE_PREFIX ## _obj1006,                 /* Sync_Cycle_Period */\
   164 	/*& NODE_PREFIX ## _obj1007, */            /* Sync_window_length */\
   164 	/*& NODE_PREFIX ## _obj1007, */            /* Sync_window_length */\
   165 	_post_sync,/*NODE_PREFIX ## _post_sync,                 /* post_sync */\
   165 	_post_sync,                 /* post_sync */\
   166 	_post_TPDO,/*NODE_PREFIX ## _post_TPDO,                 /* post_TPDO */\
   166 	_post_TPDO,                 /* post_TPDO */\
   167 	\
   167 	\
   168 	/* PDO, structure s_process_var */\
   168 	/* PDO, structure s_process_var */\
   169         {\
   169         {\
   170 		0,          /* count */\
   170 		0,          /* count */\
   171 		{0}         /* data (static use, so that all the table is initialize at 0)*/\
   171 		{0}         /* data (static use, so that all the table is initialize at 0)*/\
   172         },\
   172         },\
   173         \
   173         \
   174 	/* General */\
   174 	/* General */\
   175 	0,                                         /* toggle */\
   175 	0,                                         /* toggle */\
   176 	NULL,/*NODE_PREFIX ## _canSend,                   /* canSend */\
   176 	NULL,                   /* canSend */\
   177 	NODE_PREFIX ## _scanIndexOD,                /* scanIndexOD */\
   177 	NODE_PREFIX ## _scanIndexOD,                /* scanIndexOD */\
   178 	_storeODSubIndex                /* storeODSubIndex */\
   178 	_storeODSubIndex                /* storeODSubIndex */\
   179 }
   179 }
   180 
   180 
   181 #endif /* __data_h__ */
   181 #endif /* __data_h__ */