17 lines
401 B
C
17 lines
401 B
C
#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
|