2020-06-22 09:35 PM
stm32f2xx HAL library version 1.8.0 & 1.9.0
pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR);
stm32f7xx HAL library version 1.14.0 & 1.15.0
pHeader->RTR = (CAN_RI0R_RTR & hcan->Instance->sFIFOMailBox[RxFifo].RIR) >> CAN_RI0R_RTR_Pos;