This repository has been archived on 2026-02-22. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
can/Src/mmr_can_message_id.c
T
Stefano Calabretti 4d5c1934a4 Scs (#3)
* Add send scs

* Create scs dict

* Fix compilation errors

* Fix compile error

* Change default include

* Add Timer SCS manager

* Remove unused files

* Fix bugs

* Add documentation

* Add SCS manager

bozza

* Refactor

* Use same naming convention

* Add tick provider

* Update header

* Fix header bit translation

* Test HandleNext OK

* Remove linting

* Remove indents

* Add documentation

* Improve docs

* Remove pointer

* Remove mailbox

* Remove useless comment

* Add newline

* Fix compile errors

* Separate scs entries from manager

* Refactor

* Fix include guards

Co-authored-by: nicolagutierrez <nicolagutierrez.ng@gmail.com>
2022-02-23 21:08:47 +01:00

20 lines
375 B
C

#include <stdint.h>
#include "mmr_can_message_id.h"
bool MMR_CAN_IsMessageIdOfType(
MmrCanMessageId msgId,
MmrCanMessageIdType type
) {
return MMR_CAN_GetMessageIdType(msgId) == type;
}
uint8_t MMR_CAN_GetMessageIdType(MmrCanMessageId msgId) {
return msgId >> 7;
}
uint8_t MMR_CAN_GetMessageIdSubtype(MmrCanMessageId msgId) {
return msgId & B8_(0111, 1111);
}