Moving structure as preparation for docs

This commit is contained in:
2025-08-06 21:05:47 +02:00
parent 885079ae70
commit 799a014b15
117 changed files with 629 additions and 664 deletions

View File

@@ -0,0 +1,43 @@
namespace AMWD.Protocols.Modbus.Serial
{
/// <summary>
/// Defines the baud rates for a serial connection.
/// </summary>
public enum BaudRate : int
{
/// <summary>
/// 2400 Baud.
/// </summary>
Baud2400 = 2400,
/// <summary>
/// 4800 Baud.
/// </summary>
Baud4800 = 4800,
/// <summary>
/// 9600 Baud.
/// </summary>
Baud9600 = 9600,
/// <summary>
/// 19200 Baud.
/// </summary>
Baud19200 = 19200,
/// <summary>
/// 38400 Baud.
/// </summary>
Baud38400 = 38400,
/// <summary>
/// 57600 Baud.
/// </summary>
Baud57600 = 57600,
/// <summary>
/// 115200 Baud.
/// </summary>
Baud115200 = 115200
}
}

View File

@@ -0,0 +1,31 @@
using System;
namespace AMWD.Protocols.Modbus.Serial.Enums
{
/// <summary>
/// Defines the flags for the RS485 driver state.
/// </summary>
[Flags]
internal enum RS485Flags
{
/// <summary>
/// RS485 is enabled.
/// </summary>
Enabled = 1,
/// <summary>
/// RS485 uses RTS on send.
/// </summary>
RtsOnSend = 2,
/// <summary>
/// RS485 uses RTS after send.
/// </summary>
RtsAfterSend = 4,
/// <summary>
/// Receive during send (duplex).
/// </summary>
RxDuringTx = 16
}
}