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.

TMS570LS3137: Questions about Flexray FTU sample code

Part Number: TMS570LS3137


In function frayHighLevelInterrupt,why 0x8014 == (e_value & 0x8014) but not 0x8014 == (s_value & 0x8014) ?And when I run the code with 2 nodes,but some error interrupts were generated.

void frayHighLevelInterrupt(void)
{
    unsigned int e_value;
    unsigned int s_value;

    e_value = frayREG1->EIR_UN.EIR_UL;
    s_value = frayREG1->SIR_UN.SIR_UL;


    frayREG1->EIR_UN.EIR_UL = e_value;
    frayREG1->SIR_UN.SIR_UL = s_value;

    if ( 0 != e_value )
    {
       frayErrorNotification(frayREG1, e_value);
    }

    //0x8014: SDS(15th bit), RXI (4th), CYCS (2th bit)
    if ( 0x8014 == (e_value & 0x8014))
    {
       frayStatusChangeNotification(frayREG1, s_value);
    }
 }