Enum
public enum BaudRate

Namespace: SharpMeter.Core.Protocol

ANSI C12.18 baud rate identifiers for serial communication negotiation.

Fields

NameDescription
Baud1200 static 1200 baud.
Baud14400 static 14400 baud.
Baud19200 static 19200 baud.
Baud2400 static 2400 baud.
Baud28800 static 28800 baud.
Baud300 static 300 baud.
Baud38400 static 38400 baud.
Baud4800 static 4800 baud.
Baud600 static 600 baud.
Baud9600 static 9600 baud (default).

Baud1200

Baud1200 = 3

1200 baud.

Baud14400

Baud14400 = 7

14400 baud.

Baud19200

Baud19200 = 8

19200 baud.

Baud2400

Baud2400 = 4

2400 baud.

Baud28800

Baud28800 = 9

28800 baud.

Baud300

Baud300 = 1

300 baud.

Baud38400

Baud38400 = 10

38400 baud.

Baud4800

Baud4800 = 5

4800 baud.

Baud600

Baud600 = 2

600 baud.

Baud9600

Baud9600 = 6

9600 baud (default).

View Source
/// <summary>
///     ANSI C12.18 baud rate identifiers for serial communication negotiation.
/// </summary>
[SuppressMessage("Design", "CA1028:Enum storage should be Int32", Justification = "Wire protocol requires byte for binary serialization.")]
[SuppressMessage("Design", "CA1008:Enums should have zero value", Justification = "Protocol-defined values; 0x00 is not a valid baud rate identifier.")]
public enum BaudRate : byte
{
    /// <summary>300 baud.</summary>
    Baud300 = 0x01,
    /// <summary>600 baud.</summary>
    Baud600 = 0x02,
    /// <summary>1200 baud.</summary>
    Baud1200 = 0x03,
    /// <summary>2400 baud.</summary>
    Baud2400 = 0x04,
    /// <summary>4800 baud.</summary>
    Baud4800 = 0x05,
    /// <summary>9600 baud (default).</summary>
    Baud9600 = 0x06,
    /// <summary>14400 baud.</summary>
    Baud14400 = 0x07,
    /// <summary>19200 baud.</summary>
    Baud19200 = 0x08,
    /// <summary>28800 baud.</summary>
    Baud28800 = 0x09,
    /// <summary>38400 baud.</summary>
    Baud38400 = 0x0A
}
Was this page helpful?