You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
3.5 KiB

4 months ago
/******************************************************************************
版权所有 (C), 2018-2099, Radkil
******************************************************************************
文 件 名 : drv_interface.h
版 本 号 : 初稿
作 者 : radkil
生成日期 : 2026年6月8日
最近修改 :
功能描述 : drv_interface.c 的头文件
修改历史 :
1.日 期 : 2026年6月8日
作 者 : radkil
修改内容 : 创建文件
******************************************************************************/
/*----------------------------------------------*
* 外部变量说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 外部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 内部函数原型说明 *
*----------------------------------------------*/
/*----------------------------------------------*
* 全局变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 模块级变量 *
*----------------------------------------------*/
/*----------------------------------------------*
* 常量定义 *
*----------------------------------------------*/
/*----------------------------------------------*
* 宏定义 *
*----------------------------------------------*/
#ifndef __DRV_INTERFACE_H__
#define __DRV_INTERFACE_H__
#ifdef __cplusplus
#if __cplusplus
extern "C"{
#endif
#endif /* __cplusplus */
/*==============================================*
* include header files *
*----------------------------------------------*/
#include "common.h"
#include "main.h"
#include "bsp_uart.h"
#include "bsp_CAN.h"
#include "fdcan.h"
#include "bsp_CV.pb.h"
4 months ago
/*==============================================*
* constants or macros define *
*----------------------------------------------*/
typedef enum {
COM_LPUART = 0,
COM_RS485_1,
COM_LTE_7S0,
COM_RS485_2,
COM_INTERCALL,
COM_SBUS,
COM_RS485_3,
COM_RS485_4,
COM_MAX
} BHBF_Com_e;
4 months ago
/*==============================================*
* project-wide global variables *
*----------------------------------------------*/
extern TComCtrl *g_apstUart[COM_MAX];
4 months ago
extern TComCtrl *g_ptCAN1;
extern TComCtrl *g_ptCAN2;
extern CV_struct_define g_stCV;
4 months ago
/*==============================================*
* routines' or functions' implementations *
*----------------------------------------------*/
1 day ago
extern int LPUART_Send(char *_pBuffer, uint32_t _iSize);
4 months ago
extern int E28_SBUS_Send(char *_pBuffer, uint32_t _iSize);
extern int FDCAN1_Send(char *_pBuffer, uint32_t _iSize);
extern int FDCAN2_Send(char *_pBuffer, uint32_t _iSize);
extern int InterCall_Send(char *_pBuffer, uint32_t _iSize);
extern int LTE_7S0_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_1_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_2_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_3_Send(char *_pBuffer, uint32_t _iSize);
extern int RS485_4_Send(char *_pBuffer, uint32_t _iSize);
4 months ago
extern void Drv_InterfaceInit(void);
4 months ago
#ifdef __cplusplus
#if __cplusplus
}
#endif
#endif /* __cplusplus */
#endif /* __DRV_INTERFACE_H__ */