#ifndef _RS485MASTER_H_
#define _RS485MASTER_H_

#include "rs485.h"
#include "common.h"

extern TRS485Handle RS485MasterHandle;


#define RX485_MASTER_TX_BUFFER_SIZE		64
#define RX485_MASTER_RX_BUFFER_SIZE		64

typedef struct
{
	int Status;
	int Enabled;
	unsigned char TXData[RX485_MASTER_TX_BUFFER_SIZE];
	unsigned char RXData[RX485_MASTER_RX_BUFFER_SIZE];
	int TXLength;
	int RXLength;
} TRS485TestData;

extern TRS485TestData RS485MasterTestData;

extern TMonitoringInfo MonitoringInfo;

extern TRS485DebugInfo RS485DebugInfo;
//extern char RS485MasterTXData[RX485_MASTER_TX_BUFFER_SIZE];
//extern char RS485MasterRXData[RX485_MASTER_RX_BUFFER_SIZE];


#endif
