ST的CAN库这里是不是错的? void CAN_Receive(u8 FIFONumber, CanRxMsg* RxMessage) { /* Check the parameters */ assert_param(IS_CAN_FIFO(FIFONumber));
/* Get the Id */ RxMessage->StdId = (u32)0x000007FF & (CAN->sFIFOMailBox[FIFONumber].RIR >> 21); RxMessage->ExtId = (u32)0x0003FFFF & (CAN->sFIFOMailBox[FIFONumber].RIR >> 3);//这里是不是错的? //扩展模式是28位ID标识应该是0x1FFFFFFF啊, 应该为下面的才对啊 RxMessage->ExtId = (u32)0x1FFFFFFF & (CAN->sFIFOMailBox[FIFONumber].RIR >> 3);//这里是不是错的? |