123456789101112131415161718192021222324252627282930313233343536 |
- /*
- * @Author : ChenJie
- * @Date : 2021-12-20 14:48:17
- * @Version : V3.0
- * @LastEditors : ChenJie
- * @LastEditTime : 2021-12-27 16:11:07
- * @Description : 应用层can协议转换
- * @FilePath : \VehicleControl\VehicleControl\src\System\Vehicle\Communication\BleCanProtocolFunc.h
- */
- /*
- * CanProtocol.h
- *can协议转换
- * Created on: 2021年12月20日
- * Author: QiXiang_CHENJIE
- */
- #include "Std_Types.h"
- #include "CanVar.h"
- #ifndef SYSTEM_VEHICLE_CANPROTOCOL_H_
- #define SYSTEM_VEHICLE_CANPROTOCOL_H_
- typedef struct
- {
- uint8 UdsSer;
- uint8 UdsSubSer;
- uint8 Seq;
- uint8 Data1;
- uint8 Data2;
- uint8 Data3;
- uint8 Data4;
- } UdsAnsType;
- void UdsPosAns(UdsAnsType UdsAnsData);
- void UdsNegAns(UdsAnsType UdsAnsData);
- void Can2ProtocolCode(uint8 CmdIdx,uint8 DataIdx,uint8 Byte0Num,uint32 *InnerCanID,uint8 *Data);
- void Can2ProtocolDecode(uint32 Can2ID,uint8 Data[]);
- void Can2DataCode(uint8 DataIdx, uint8 Byte0Num,uint8 Data[]);
- void Can2DataDecode(uint8 Data[]);
- #endif /* SYSTEM_VEHICLE_CANPROTOCOL_H_ */
|