4d5c1934a4
* 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>
20 lines
375 B
C
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);
|
|
}
|