extern CAN_Msg_Type CanRxMsg[2]; extern UINT8 UDSCmd[2]; extern UINT8 UDSService[2]; extern UINT8 UDSSubService[2]; extern UINT8 UDSSubServiceActionCode[2]; extern UINT8 UDSSwitch; extern UINT8 UDSBattSN[BATT_SN_LEN]; typedef enum { PROCESS_CAN_STATE_IDLE = 0, PROCESS_CAN_STATE_WORK, PROCESS_CAN_STATE_SLEEP }process_CAN; void CANTaskInit(void* arg); static void Can_Receive(void); void CanMsgTx1000ms(void);