Fix compilation errors

This commit is contained in:
Stefano Calabretti
2022-02-03 19:29:58 +01:00
parent 0069f68331
commit e4a0988111
2 changed files with 6 additions and 4 deletions
+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"