Improvements (#11)

* Use default include

* Add conversions

* Add TryReceive
This commit was merged in pull request #11.
This commit is contained in:
Stefano Calabretti
2022-04-11 15:50:56 +02:00
committed by GitHub
parent aec32cb58e
commit efdd4655a3
6 changed files with 63 additions and 16 deletions
+12 -1
View File
@@ -230,9 +230,20 @@ HalStatus MMR_CAN_Send(CanHandle *hcan, MmrCanPacket packet);
*/
HalStatus MMR_CAN_SendNoTamper(CanHandle *hcan, MmrCanPacket packet);
/**
* @brief
* Receives a can message from the network.
* Tries to receive a message.
*/
MmrResult MMR_CAN_TryReceive(CanHandle *hcan, MmrCanMessage *result);
/**
* @brief
* Reads a CAN message and stores it inside the
* given MmrCanMessage struct.
*
* If a multi-frame message is received, this function will block
* and read every frame for that particular message.
*/
HalStatus MMR_CAN_Receive(CanHandle *hcan, MmrCanMessage *result);