Scs #3

Merged
cala-br merged 32 commits from scs into master 2022-02-23 21:08:47 +01:00
2 changed files with 6 additions and 4 deletions
Showing only changes of commit e4a0988111 - Show all commits
+5 -4
View File
@@ -22,7 +22,7 @@ typedef enum {
MMR_CAN_MESSAGE_ACK = B_(0001),
MMR_CAN_MESSAGE_TYPE_MULTI_FRAME = B_(0010),
MMR_CAN_MESSAGE_TYPE_MULTI_FRAME_END = B_(0011),
MMR_CAN_MESSAGE_TYPE_NORMAL = B_(1000),
MMR_CAN_MESSAGE_TYPE_NORMAL = B_(0100),
} MmrCanMessageType;
@@ -40,9 +40,10 @@ typedef enum {
*/
typedef struct {
MmrCanMessagePriority priority : 3;
MmrCanMessageId messageId : 10;
uint32_t senderId : 12;
MmrCanMessageType messageType : 4;
uint16_t messageId : 10;
uint16_t senderId : 10;
uint8_t seqNumber : 3;
MmrCanMessageType messageType : 3;
} MmrCanHeader;
+1
View File
@@ -1,6 +1,7 @@
#ifndef INC_MMR_CAN_MESSAGE_ID_H_
#define INC_MMR_CAN_MESSAGE_ID_H_
#include <stdint.h>
#include <stdbool.h>
#include "mmr_can_binary_literals.h"