Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
651b5b7c8This file is pinned to the selected release. Download the original to open it in your design tool.
using System.IO.Ports;
namespace Hast.Communication.Constants.CommunicationConstants
{
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 = nameof(Serial);
public static class Signals
{
public const char Ping = 'p';
public const char Ready = 'r';
}
public enum CommunicationState
{
WaitForFirstResponse,
ReceivingExecutionInformation,
ReceivingOutputByteCount,
ReceivingOuput,
Finished
}
}
}