µTasker Forum
µTasker Forum => NXPTM M522XX, KINETIS and i.MX RT => Topic started by: tr111 on November 30, 2007, 09:50:28 AM
-
my 52235 run in the lpb mode,I can sent the data,but now I want to get data???
tCANParameters.ulTxID = 0x80000000; // default ID of destination
tCANParameters.ulRxID = (CAN_EXTENDED_ID | 0x00000000); // our ID
the ulTxID and ulRxID must be same to send data to itself????
the destination ID I am not sure!
int the "static void fnCanInt(int iIntBuf)",
it will goto the"else {
COLDFIRE_CAN_BUF *ptrMessageBuffer = MBUFF0_ADD;
ptrMessageBuffer += iIntBuf;
*(unsigned char *)ptrMessageBuffer = 0; // deactivate buffer so that it doesn't get overwitten
can_int_message[MSG_INTERRUPT_EVENT] = CAN_RX_MSG; // Rx message received
ptrCanQue->ucMode |= CAN_RX_BUF_FULL; // Indicate message waiting
}"
I don't konw which to add the "
...... case INTERRUPT_EVENT: // on an interrupt event
switch (ucInputMessage[MSG_INTERRUPT_EVENT]) {
case CAN_RX_MSG:: // A CAN rx. message is waiting
Length = fnRead(CAN_interface_ID, ucInputMessage,
(0 | GET_CAN_RX_TIME_STAMP | GET_CAN_RX_ID));
// collect the message along with some details
break; ......
"
is In the "
void fnApplication(TTASKTABLE *ptrTaskTable) // Application task".
that has the "case INTERRUPT_EVENT:
switch (ucInputMessage[MSG_INTERRUPT_EVENT]) {
case TX_FREE:
if (iAppState == STATE_BLOCKED) { // The TCP buffer we were waiting for has become free
iAppState = STATE_ACTIVE;
}
break;"
I add the "case CAN_RX_MSG:: // A CAN rx. message is waiting
Length = fnRead(CAN_interface_ID, ucInputMessage,
(0 | GET_CAN_RX_TIME_STAMP | GET_CAN_RX_ID));
// collect the message along with some details
break;
" to the fnApplication,but I can't get the data! I want to get the data that I sent.
How can I get the data!