Fix incorrect message byte indices
This commit is contained in:
parent
0f20a327f2
commit
29bd0ba88f
1 changed files with 11 additions and 11 deletions
22
messages.h
22
messages.h
|
@ -12,27 +12,27 @@
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t bits[2];
|
uint8_t bits[2];
|
||||||
} can_msg_feedback_status_t;
|
} can_msg_feedback_status_t;
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_RESET_SW 1
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_RESET_SW 0
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_RESET_SW 0x04
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_RESET_SW 0x04
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_H 1
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_H 0
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_H 0x02
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_H 0x02
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_G 1
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_G 0
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_G 0x01
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_G 0x01
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_F 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_F 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_F 0x80
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_F 0x80
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_E 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_E 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_E 0x40
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_E 0x40
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_D 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_EMPTY_D 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_D 0x20
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_EMPTY_D 0x20
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_H 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_H 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_H 0x10
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_H 0x10
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_G 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_G 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_G 0x08
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_G 0x08
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_F 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_F 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_F 0x04
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_F 0x04
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_E 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_E 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_E 0x02
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_E 0x02
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_D 0
|
#define CAN_MSG_FEEDBACK_STATUS_FIELD_END_D 1
|
||||||
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_D 0x01
|
#define CAN_MSG_FEEDBACK_STATUS_BIT_END_D 0x01
|
||||||
|
|
||||||
#define CAN_MSG_POWER_STATUS 0x011
|
#define CAN_MSG_POWER_STATUS 0x011
|
||||||
|
|
Loading…
Reference in a new issue