PM.BO/Command.cs
/// <summary>
/// Gets the equatable byte stuffed value
/// </summary>
/// <param name="frameByte">The byte to convert</param>
/// <returns>The equatable value</returns>
Gets the equatable byte stuffed value
Gets the equatable byte stuffed value
protected static uint[] GetByteStuffingValue(uint frameByte)
        {
            return frameByte switch
            {
                0xF0 => new uint[] { 0xF3, 0x00 },
                0xF1 => new uint[] { 0xF3, 0x01 },
                0xF2 => new uint[] { 0xF3, 0x02 },
                0xF3 => new uint[] { 0xF3, 0x03 },
                _ => throw new InvalidOperationException("Frame byte to be stuffed was unknown: " + frameByte),
            };
        }
protected static uint [ ] GetByteStuffingValue ( uint frameByte ) { return frameByte switch { 0xF0 => new uint [ ] { 0xF3 , 0x00 } , 0xF1 => new uint [ ] { 0xF3 , 0x01 } , 0xF2 => new uint [ ] { 0xF3 , 0x02 } , 0xF3 => new uint [ ] { 0xF3 , 0x03 } , _ => throw new InvalidOperationException ( " " + frameByte ) , } ; }
Gets the equatable byte stuffed value
Gets the equatable byte stuffed value
The equatable value
The equatable value
frameByte
uint
The byte to convert
The byte to convert