Other Parts Discussed in Thread: HALCOGEN
Tool/software: TI-RTOS
Hi,
is there an option to receive messeages with extended AND standard IDs in one messagebox?
thanks,
br Peter
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI-RTOS
Hi,
is there an option to receive messeages with extended AND standard IDs in one messagebox?
thanks,
br Peter
static void init_can_device (can_device_t* hcan) {
uint8_t mailbox;
can_cmd_iface_t* ifx = CAN_GET_IF1(hcan->Instance);
for (mailbox = MAILBOX_COUNT_TX + 1; mailbox <= MAILBOX_COUNT_TOTAL; mailbox++) {
while ((ifx->IFxSTAT & IFxSTAT_BUSY) == IFxSTAT_BUSY) {
};
ifx->IFxCMD = IFxCMD_WRITE | IFxCMD_MASK | IFxCMD_ARB | IFxCMD_CLR_INT_PND | IFxCMD_CONTROL;
ifx->IFxMSK = IFxMSK_MDir;
ifx->IFxARB = IFxARB_MsgVal;
ifx->IFxMCTL = IFxMCTL_UMask | IFxMCTL_RxIE;
if (mailbox == MAILBOX_COUNT_TOTAL) { /* last buffer in FIFO */
ifx->IFxMCTL |= IFxMCTL_EoB;
}
ifx->IFxNO = mailbox;
}
canEnableErrorNotification (hcan->Instance);
}
You can setup can malbox to receive ANY can messages.
thank you for the answeres. I solved my problem by setting the MXtb bit to zero.
canREG3->IF1MSK = 0x00000000;
now i get a notification for every message.
br Peter