BCZT_NEW/BCZT_PANEL/lin_user.h

30 lines
339 B
C
Raw Normal View History

2023-11-21 08:26:01 +08:00
#ifndef __LIN_USER_H__
#define __LIN_USER_H__
#include "r_cg_macrodriver.h"
//config
#define MSG_NUM 2
extern uint8_t g_rxbuf[8],g_txbuf[8];
//定义
typedef struct
{
uint8_t pid;
uint8_t len;
uint8_t dir;
uint8_t *buf;
}MSGTYPE;
#define MSG_DIR_RX 0
#define MSG_DIR_TX 1
extern MSGTYPE LIN_cfg_arr[];
#endif