90eb1c604b
Fixed issue in the SerialProcessor when setting the time, makes sure that there's no chance of thread stealing when pulling out the junk messages Added ConformanceResult.txt to show the progress of the driver development
28 lines
794 B
C#
28 lines
794 B
C#
using System.IO.Ports;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace ASCOM.MeadeAutostar497.Controller
|
|
{
|
|
[ComVisible(false)]
|
|
public interface ISerialProcessor
|
|
{
|
|
bool IsOpen { get; }
|
|
bool DtrEnable { get; set; }
|
|
bool RtsEnable { get; set; }
|
|
int BaudRate { get; set; }
|
|
int DataBits { get; set; }
|
|
StopBits StopBits { get; set; }
|
|
Parity Parity { get; set; }
|
|
string PortName { get; set; }
|
|
string[] GetPortNames();
|
|
void Open();
|
|
void Close();
|
|
|
|
string CommandTerminated(string command, string terminator);
|
|
char CommandChar(string command);
|
|
string ReadTerminated(string terminator);
|
|
void Command(string command);
|
|
void Lock();
|
|
void Unlock();
|
|
}
|
|
} |