A new question.
If, for example, I want to send out the entire id155_INIT[8], I can do it like this:
FC_CAN_SetTxIdent_1(0, 0x155);FC_CAN_SetTxData_1(0, 8, FCV_id155_INIT[0], FCV_id155_INIT[1], FCV_id155_INIT[2], FCV_id155_INIT[3], FCV_id155_INIT[4], FCV_id155_INIT[5], FCV_id155_INIT[6], FCV_id155_INIT[7]);FC_CAN_SendBuffer_1(0);
but as long as I send out the entire variable unchanged, there will be a lot of writing and I wonder if there is an easier way to do this.
I try:
FC_CAN_SetTxIdent_1(0, 0x155);FC_CAN_SetTxData_1(0, 8, FCV_id155[8]);FC_CAN_SendBuffer_1(0);
But it does not want to accept this. FC then says "error: too few arguments to function 'FC_CAN_SetTxData_1'"
Sorry the long hand method is currently the only way. If you put the code inside a macro then you would just have to call the macro whenever you want to send the data.
We could add a function to allow the data to be loaded from and to an array so I'll get this on the list.
Sorry the long hand method is currently the only way. If you put the code inside a macro then you would just have to call the macro whenever you want to send the data.
We could add a function to allow the data to be loaded from and to an array so I'll get this on the list.
Thanks Ben. it would have been a nice function to have. In the meantime, I'll do as you suggest