17 bool init(CAN_HandleTypeDef *hcan,
size_t rx_queue_size = 64);
23 CAN_HandleTypeDef *hcan_;
24 osMessageQueueId_t rx_queue_;
26 static std::unordered_map<CAN_HandleTypeDef *, CAN *> instances_;
27 friend void ::HAL_CAN_RxFifo0MsgPendingCallback(CAN_HandleTypeDef *hcan);