mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-06 07:58:28 -04:00
dad36d2e42
fix config panel value change detection add loiter_ to AC config screen Add praram name to Friendly param, and exception ignoring. fix param file note line intergrate andrews gimbal config. fix any possible log appending issues remove old cli planner on connect modify speech to not crash on windows mono
59 lines
1.8 KiB
C#
59 lines
1.8 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using System.IO.Ports;
|
|
using System.IO;
|
|
using System.Reflection;
|
|
|
|
namespace ArdupilotMega.Comms
|
|
{
|
|
public interface ICommsSerial
|
|
{
|
|
// from serialport class
|
|
// Methods
|
|
void Close();
|
|
void DiscardInBuffer();
|
|
//void DiscardOutBuffer();
|
|
void Open();
|
|
int Read(byte[] buffer, int offset, int count);
|
|
//int Read(char[] buffer, int offset, int count);
|
|
int ReadByte();
|
|
int ReadChar();
|
|
string ReadExisting();
|
|
string ReadLine();
|
|
//string ReadTo(string value);
|
|
void Write(string text);
|
|
void Write(byte[] buffer, int offset, int count);
|
|
//void Write(char[] buffer, int offset, int count);
|
|
void WriteLine(string text);
|
|
|
|
void toggleDTR();
|
|
|
|
// Properties
|
|
//Stream BaseStream { get; }
|
|
int BaudRate { get; set; }
|
|
//bool BreakState { get; set; }
|
|
int BytesToRead { get; }
|
|
int BytesToWrite { get; }
|
|
//bool CDHolding { get; }
|
|
//bool CtsHolding { get; }
|
|
int DataBits { get; set; }
|
|
//bool DiscardNull { get; set; }
|
|
//bool DsrHolding { get; }
|
|
bool DtrEnable { get; set; }
|
|
//Encoding Encoding { get; set; }
|
|
//Handshake Handshake { get; set; }
|
|
bool IsOpen { get; }
|
|
//string NewLine { get; set; }
|
|
Parity Parity { get; set; }
|
|
//byte ParityReplace { get; set; }
|
|
string PortName { get; set; }
|
|
int ReadBufferSize { get; set; }
|
|
int ReadTimeout { get; set; }
|
|
bool RtsEnable { get; set; }
|
|
StopBits StopBits { get; set; }
|
|
int WriteBufferSize { get; set; }
|
|
int WriteTimeout { get; set; }
|
|
}
|
|
}
|