#ifndef __HART_H #define __HART_H #include "usart.h" #include "data_type_def.h" #define RTS_ON GPIO_PIN_RESET #define RTS_OFF GPIO_PIN_SET void hart_send(UART_HandleTypeDef *huart, uint8_t *data); void hart_communicate(st_scom *scom); //DEVICE <---SIG---> PC //将来自设备的HART数据装载至com485_tx,将comhart_tx的HART数据发送至设备 void transparent_hart(st_scom *scom); #endif