I believe I have found an error in the HAL. Where and how can I report it?
I am getting a CAN message with the function `HAL_CAN_GetRxMessage`.
The struct `CAN_RxHeaderTypeDef` has a field called `RTR`.
The doc string says: "This parameter can be a value of @ref CAN_remote_transmission_request".
`CAN_remote_transmission_request` consists of two macros:
#define CAN_RTR_DATA (0x00000000U) /*!< Data frame */
#define CAN_RTR_REMOTE (0x00000002U) /*!< Remote frame */
The received CAN message, however, has a RTR value of 1 because it is shifted by `CAN_RI0R_RTR_Pos` to result in a boolean value.
When sending the message with `HAL_CAN_AddTxMessage` it is checked with `assert_param(IS_CAN_RTR(pHeader->RTR));` that RTR is indeed either `CAN_RTR_DATA` or `CAN_RTR_REMOTE` and not 1.
