/* add user code begin Header */ /** ************************************************************************** * @file wk_can.h * @brief header file of work bench config ************************************************************************** * Copyright (c) 2025, Artery Technology, All rights reserved. * * The software Board Support Package (BSP) that is made available to * download from Artery official website is the copyrighted work of Artery. * Artery authorizes customers to use, copy, and distribute the BSP * software and its related documentation for the purpose of design and * development in conjunction with Artery microcontrollers. Use of the * software is governed by this copyright notice and the following disclaimer. * * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. * ************************************************************************** */ /* add user code end Header */ /* define to prevent recursive inclusion -----------------------------------*/ #ifndef __WK_CAN_H #define __WK_CAN_H #ifdef __cplusplus extern "C" { #endif /* includes -----------------------------------------------------------------------*/ #include "at32f403a_407_wk_config.h" #define FILTER_STD_ID1 ((uint16_t)0x0342) //档位 #define FILTER_STD_ID2 ((uint16_t)0x0444) //电量 #define FILTER_STD_ID3 ((uint16_t)0x0144) //测速 #define FILTER_STD_ID4 ((uint16_t)0x0345) //里程 #define FILTER_STD_ID5 ((uint16_t)0x0536) #define FILTER_STD_ID6 ((uint16_t)0x0547) #define FILTER_STD_ID7 ((uint16_t)0x04C6) #define FILTER_STD_ID8 ((uint16_t)0x04D7) /* private includes -------------------------------------------------------------*/ /* add user code begin private includes */ /* add user code end private includes */ /* exported types -------------------------------------------------------------*/ /* add user code begin exported types */ /* add user code end exported types */ /* exported constants --------------------------------------------------------*/ /* add user code begin exported constants */ /* add user code end exported constants */ /* exported macro ------------------------------------------------------------*/ /* add user code begin exported macro */ /* add user code end exported macro */ /* exported functions ------------------------------------------------------- */ /* init can1 function. */ void wk_can1_init(void); /* init can2 function. */ void wk_can2_init(void); void can_transmit_data(uint8_t *data); /* add user code begin exported functions */ /* add user code end exported functions */ #ifdef __cplusplus } #endif #endif