14 lines
492 B
C#
14 lines
492 B
C#
|
namespace InnovEnergy.Lib.Protocols.Modbus.Conversions;
|
||
|
|
||
|
|
||
|
/// <summary>
|
||
|
/// NOTE: the endianness of a single modbus register on the wire is always big endian, as per spec.
|
||
|
/// However the endianness of compound values (Int32, float, etc.) is not specified in the spec.
|
||
|
/// Usually the endianness of compound values is little endian.
|
||
|
/// So big endian within registers and little endian for compound registers, sigh...
|
||
|
/// </summary>
|
||
|
public enum Endianness
|
||
|
{
|
||
|
LittleEndian,
|
||
|
BigEndian,
|
||
|
}
|