can_link.h 543 B

123456789101112131415161718
  1. #ifndef __CAN_LINK_H__
  2. #define __CAN_LINK_H__
  3. #include "fdcan.h"
  4. #include <stdbool.h>
  5. //pmu消息id
  6. #define WEIGHT_MSG_ID 0x81321 //称重消息id
  7. //#define HW_PUMP_MSG__ID 0x2010010
  8. #define PUMP_MSG_ID 0x01000 //水泵pwm消息id
  9. #define SPRAY_MSG_ID 0x01001 //喷头pwm消息id
  10. #define FLOW_SPEED_MSG_ID 0x01002 //流量计速度消息id
  11. #define FLOW_COUNT_MSG_ID 0x01003 //流量计计数消息id
  12. void can_recv_HD_ESC_msg(uint8_t *recv_buf, uint32_t len, uint32_t id);
  13. extern uint32_t CanGetHalDataLengthToDec( uint32_t DataLength );
  14. #endif