saved work

This commit is contained in:
Ruixiang Du
2021-07-10 21:50:27 +08:00
parent 6a8073e90c
commit 4ebef2e906
6 changed files with 55 additions and 144 deletions

View File

@@ -28,10 +28,10 @@ struct can_frame {
};
#endif
#include "protocol_v1/agilex_message_v1.h"
#include "ugv_sdk/details/interface/agilex_message.h"
bool DecodeCanFrameV1(const struct can_frame *rx_frame, AgxMessageV1 *msg);
void EncodeCanFrameV1(const AgxMessageV1 *msg, struct can_frame *tx_frame);
bool DecodeCanFrameV1(const struct can_frame *rx_frame, AgxMessage *msg);
void EncodeCanFrameV1(const AgxMessage *msg, struct can_frame *tx_frame);
uint8_t CalcCanFrameChecksumV1(uint16_t id, uint8_t *data, uint8_t dlc);
#ifdef __cplusplus