Loading files
using System.IO.Ports;
namespace Hast.Communication.Constants
{
public static class CommunicationConstants
{
public static class Ethernet
{
public const string ChannelName = "Ethernet";
public static class Ports
{
public const int WhoIsAvailableRequest = 34050;
public const int WhoIsAvailableResponse = 33000;
}
public static class Signals
{
public const char Busy = 'b';
public const char Ready = 'r';
}
}
public static class Serial
{
public const int DefaultBaudRate = 9600;
public const Parity DefaultParity = Parity.None;
public const StopBits DefaultStopBits = StopBits.One;
public const int DefaultWriteTimeoutMilliseconds = 10000;
public const string ChannelName = "Serial";
public static class Signals
{
public const char Ping = 'p';
public const char Ready = 'r';
}
public enum CommunicationState
{
WaitForFirstResponse,
ReceivingExecutionInformation,
ReceivingOutputByteCount,
ReceivingOuput,
Finished
}
}
}
}
6e272a916This file is pinned to the selected release. Download the original to open it in your design tool.