Searched defs:AFESample (Results 1 – 1 of 1) sorted by relevance
1132 private struct AFESample struct in Antmicro.Renode.Peripherals.Sensors.MAX861711134 public AFESample(decimal packet) in AFESample() argument1139 public AFESample(SampleSource tag, int value) in AFESample() argument1144 public int Value => ((innerPacket & 0x0FFFFF) << 12) >> 12;1145 public SampleSource Tag => (SampleSource)((innerPacket & 0xF00000) >> 20);1146 public byte Byte1 => (byte)((innerPacket & 0xFF0000) >> 16);1147 public byte Byte2 => (byte)((innerPacket & 0x00FF00) >> 8);1148 public byte Byte3 => (byte)(innerPacket & 0x0000FF);1149 public byte[] Bytes => new byte[] { Byte1, Byte2, Byte3 };1150 public IEnumerator<byte> Enumerator => Bytes.OfType<byte>().GetEnumerator();[all …]