📄 src/Payloads/ArgumentEnums.cs
namespace SharpDlt;

/// <summary>Width of an integer argument. The numeric value is the size in bytes.</summary>
public enum DltIntegerWidth
{
    /// <summary>8 bit integer.</summary>
    Bits8 = 1,

    /// <summary>16 bit integer.</summary>
    Bits16 = 2,

    /// <summary>32 bit integer.</summary>
    Bits32 = 4,

    /// <summary>64 bit integer.</summary>
    Bits64 = 8,
}

/// <summary>Width of a floating point argument. The numeric value is the size in bytes.</summary>
public enum DltFloatWidth
{
    /// <summary>32 bit (single precision) float.</summary>
    Bits32 = 4,

    /// <summary>64 bit (double precision) float.</summary>
    Bits64 = 8,
}

/// <summary>Coding (SCOD) of a string argument.</summary>
public enum DltStringCoding
{
    /// <summary>8 bit coding, ASCII by default.</summary>
    Ascii = 0,

    /// <summary>UTF-8 coding.</summary>
    Utf8 = 1,
}