CANTask.h 436 B

12345678910111213141516171819202122232425
  1. extern CAN_Msg_Type CanRxMsg[2];
  2. extern UINT8 UDSCmd[2];
  3. extern UINT8 UDSService[2];
  4. extern UINT8 UDSSubService[2];
  5. extern UINT8 UDSSubServiceActionCode[2];
  6. extern UINT8 UDSSwitch;
  7. extern UINT8 UDSBattSN[BATT_SN_LEN];
  8. typedef enum
  9. {
  10. PROCESS_CAN_STATE_IDLE = 0,
  11. PROCESS_CAN_STATE_WORK,
  12. PROCESS_CAN_STATE_SLEEP
  13. }process_CAN;
  14. void CANTaskInit(void* arg);
  15. static void Can_Receive(void);
  16. void CanMsgTx1000ms(void);