Commit d5a7c69b authored by 李向行's avatar 李向行

🐞 fix:修改多包信息最长的数据长度,修改DtcDefine大小以及Data大小

parent ddbc985d
...@@ -12,7 +12,7 @@ typedef unsigned int CAN_1939_uint32_t; ...@@ -12,7 +12,7 @@ typedef unsigned int CAN_1939_uint32_t;
typedef unsigned long long CAN_1939_uint64_t; typedef unsigned long long CAN_1939_uint64_t;
#endif #endif
/*每个多包信息最长的数据长度*/ /*每个多包信息最长的数据长度*/
#define CAN1939_MESSAGE_LEN 255UL /*需要根据实际项目需求进行相关调整*/ #define CAN1939_MESSAGE_LEN 210UL /*需要根据实际项目需求进行相关调整*/
typedef union { typedef union {
CAN_1939_uint8_t data[4]; CAN_1939_uint8_t data[4];
struct struct
...@@ -26,8 +26,8 @@ typedef union { ...@@ -26,8 +26,8 @@ typedef union {
} BIT; } BIT;
} DTC_1939; } DTC_1939;
typedef union { typedef union {
DTC_1939 DtcDefine[10]; /*需要根据实际项目需求进行相关调整*/ DTC_1939 DtcDefine[52]; /*需要根据实际项目需求进行相关调整*/
CAN_1939_uint8_t Data[40]; /*需要根据实际项目需求进行相关调整*/ CAN_1939_uint8_t Data[52 * 4]; /*需要根据实际项目需求进行相关调整*/
} DtcData_un_t; } DtcData_un_t;
typedef struct typedef struct
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment