V2.13 使用新的can帧回复数据

解决ew自检模式 8导致小板死机的bug,自检返回值除以400,单位0.1ms
This commit is contained in:
ranchuan
2024-01-08 18:04:05 +08:00
parent b9224f2293
commit bcbd02a72c
16 changed files with 203 additions and 127 deletions

View File

@@ -4,6 +4,8 @@
//#include "define.h"
#include "stm32f10x_can.h"
typedef struct{
uint32_t Reserve1 :3;
uint32_t srcMACID :5;
@@ -14,11 +16,26 @@ typedef struct{
uint32_t SegFlag :2;
uint32_t SegNum :8;
}YeCanID_st_old;
typedef struct{
uint32_t SegNum :8;
uint32_t Reserve0 :2;
uint32_t ACK :1;
uint32_t FunClass :6;
uint32_t SegFlag :2;
uint32_t destMACID :5;
uint32_t srcMACID :5;
uint32_t Reserve1 :3;
}YeCanID_st;
typedef union{
uint32_t Exide;
YeCanID_st yecanid;
YeCanID_st_old yecanid_old;
}YeCanID_un;