sggt/App/HART/hart.h

17 lines
401 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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