include/data.h
changeset 664 a03f0aa7d219
parent 636 033fe6f1ec3c
child 669 50da44ebaf00
equal deleted inserted replaced
663:70fc3603e36f 664:a03f0aa7d219
    93 	UNS32 *Sync_Cycle_Period;
    93 	UNS32 *Sync_Cycle_Period;
    94 	/*UNS32 *Sync_window_length;;*/
    94 	/*UNS32 *Sync_window_length;;*/
    95 	post_sync_t post_sync;
    95 	post_sync_t post_sync;
    96 	post_TPDO_t post_TPDO;
    96 	post_TPDO_t post_TPDO;
    97 	post_SlaveBootup_t post_SlaveBootup;
    97 	post_SlaveBootup_t post_SlaveBootup;
    98   post_SlaveStateChange_t post_SlaveStateChange;
    98     post_SlaveStateChange_t post_SlaveStateChange;
    99 	
    99 	
   100 	/* General */
   100 	/* General */
   101 	UNS8 toggle;
   101 	UNS8 toggle;
   102 	CAN_PORT canHandle;	
   102 	CAN_PORT canHandle;	
   103 	scanIndexOD_t scanIndexOD;
   103 	scanIndexOD_t scanIndexOD;
   128 
   128 
   129 #define NMTable_Initializer Unknown_state,
   129 #define NMTable_Initializer Unknown_state,
   130 
   130 
   131 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
   131 #ifdef SDO_DYNAMIC_BUFFER_ALLOCATION
   132 #define s_transfer_Initializer {\
   132 #define s_transfer_Initializer {\
   133 		0,          /* nodeId */\
   133 		0,          /* CliServNbr */\
   134 		0,          /* wohami */\
   134 		0,          /* wohami */\
   135 		SDO_RESET,  /* state */\
   135 		SDO_RESET,  /* state */\
   136 		0,          /* toggle */\
   136 		0,          /* toggle */\
   137 		0,          /* abortCode */\
   137 		0,          /* abortCode */\
   138 		0,          /* index */\
   138 		0,          /* index */\
   140 		0,          /* count */\
   140 		0,          /* count */\
   141 		0,          /* offset */\
   141 		0,          /* offset */\
   142 		{0},        /* data (static use, so that all the table is initialize at 0)*/\
   142 		{0},        /* data (static use, so that all the table is initialize at 0)*/\
   143     NULL,       /* dynamicData */ \
   143     NULL,       /* dynamicData */ \
   144     0,          /* dynamicDataSize */ \
   144     0,          /* dynamicDataSize */ \
       
   145 		0,          /* peerCRCsupport */\
       
   146 		0,          /* blksize */\
       
   147 		0,          /* ackseq */\
       
   148 		0,          /* objsize */\
       
   149 		0,          /* lastblockoffset */\
       
   150 		0,          /* seqno */\
       
   151 		0,          /* endfield */\
       
   152 		RXSTEP_INIT,/* rxstep */\
       
   153 		{0},        /* tmpData */\
   145 		0,          /* dataType */\
   154 		0,          /* dataType */\
   146 		-1,         /* timer */\
   155 		-1,         /* timer */\
   147 		NULL        /* Callback */\
   156 		NULL        /* Callback */\
   148 	  },
   157 	  },
   149 #else
   158 #else
   156 		0,          /* index */\
   165 		0,          /* index */\
   157 		0,          /* subIndex */\
   166 		0,          /* subIndex */\
   158 		0,          /* count */\
   167 		0,          /* count */\
   159 		0,          /* offset */\
   168 		0,          /* offset */\
   160 		{0},        /* data (static use, so that all the table is initialize at 0)*/\
   169 		{0},        /* data (static use, so that all the table is initialize at 0)*/\
   161 		0,          /* dataType */\
   170 		0,          /* peerCRCsupport */\
   162 		-1,         /* timer */\
   171 		0,          /* blksize */\
   163 		NULL        /* Callback */\
   172 		0,          /* ackseq */\
       
   173 		0,          /* objsize */\
       
   174 		0,          /* lastblockoffset */\
       
   175 		0,          /* seqno */\
       
   176 		0,          /* endfield */\
       
   177 		RXSTEP_INIT,/* rxstep */\
       
   178 		{0},        /* tmpData */\
       
   179 		0,          /*  */\
       
   180 		-1,         /*  */\
       
   181 		NULL        /*  */\
   164 	  },
   182 	  },
   165 #endif //SDO_DYNAMIC_BUFFER_ALLOCATION
   183 #endif //SDO_DYNAMIC_BUFFER_ALLOCATION
   166 
   184 
   167 #define ERROR_DATA_INITIALIZER \
   185 #define ERROR_DATA_INITIALIZER \
   168 	{\
   186 	{\