| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/ |
| D | Address.cs | 76 return (ulong)BitConverter.ToUInt16(Bytes.ToArray(), 0); in GetValue()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/ |
| D | CPURegister.cs | 54 result = BitConverter.ToUInt16(bytesWithPadding, 0); in ValueFromBytes()
|
| D | RegisterValue.cs | 130 return BitConverter.ToUInt16(bytes, 0); in operator ushort()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/ |
| D | SHT21.cs | 202 UInt16 resultInt = Convert.ToUInt16(Math.Round(result)); in GetTemperature() 246 UInt16 resultInt = Convert.ToUInt16(Math.Round(result)); in GetHumidity()
|
| D | SHT45.cs | 127 UInt16 SrhU16 = Convert.ToUInt16(Math.Round(Srh)); in EncodeHumidity()
|
| D | BMA180.cs | 568 temperature = (byte)(Convert.ToUInt16(Math.Round(preciseTemperature)) & 0xFF); in GetTemperature()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/ |
| D | ArrayMemory.cs | 94 var result = BitConverter.ToUInt16(array, intOffset); in ReadWord()
|
| D | MappedMemory.cs | 164 return BitConverter.ToUInt16(bytes, 0); in ReadWord()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/TAPHelper/ |
| D | TAPTools.cs | 70 … var currentFlags = BitConverter.ToUInt16(Marshal.ReadInt16(ifr, IFNAMSIZ).AsRawBytes(), 0); in Up_TUNTAP()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/ |
| D | KS8851.cs | 103 var requestShort = BitConverter.ToUInt16(request, 0); in Message()
|
| D | GaislerEth.cs | 53 return (uint)EndianBitConverter.Big.ToUInt16(MAC.Bytes, 4); in ReadDoubleWord()
|
| D | CadenceGEM.cs | 313 … .WithValueField(0, 16, valueProviderCallback: _ => BitConverter.ToUInt16(MAC.Bytes, 4)) in CadenceGEM()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/ |
| D | Misc.cs | 861 sum += Ntoh(BitConverter.ToUInt16(packet, x)); in GetPacketChecksum() 871 sum += Ntoh(BitConverter.ToUInt16(packet, startOfIp + 12)); in GetPacketChecksum() 872 sum += Ntoh(BitConverter.ToUInt16(packet, startOfIp + 14)); in GetPacketChecksum() 874 sum += Ntoh(BitConverter.ToUInt16(packet, startOfIp + 16)); in GetPacketChecksum() 875 sum += Ntoh(BitConverter.ToUInt16(packet, startOfIp + 18)); in GetPacketChecksum() 877 sum += Ntoh(BitConverter.ToUInt16(new byte[] { 0, packet[startOfIp + 9] }, 0)); in GetPacketChecksum()
|
| D | BitHelper.cs | 613 public static ushort ToUInt16(byte[] data, int index, bool reverse) in ToUInt16() method in Antmicro.Renode.Utilities.BitHelper
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/DMA/ |
| D | DmaEngine.cs | 164 …sysbus.WriteWord(destinationAddress + offset, BitConverter.ToUInt16(buffer, transferred), context); in IssueCopy()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/ |
| D | HS3001.cs | 87 var value = BitHelper.ToUInt16(registerWriteData, 1, true); in Write()
|
| D | ICP_101xx.cs | 61 command = (Command)BitHelper.ToUInt16(data, 0, reverse: false); in Write()
|
| D | LIS2DW12.cs | 903 var tempAsUshort = Decimal.ToUInt16(Math.Abs(temp)); in TwoComplementSignConvert()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/ |
| D | FileLoaderExtensions.cs | 214 … var bytesCount = Convert.ToUInt16(line.Substring(SRecBytesCountStart, SRecBytesCountLength), 16); in LoadSRecord()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/ |
| D | SAM_PDC.cs | 443 … wordPeripheral.DmaWordWrite(BitConverter.ToUInt16(transmitterBuffer, transmitterBufferOffset)); in Write()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/ |
| D | Cadence_xSPI.cs | 87 return BitHelper.ToUInt16(ReadUsingDMA(2).ToArray(), 0, false); in ReadWordUsingDMA()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/ |
| D | CC2520.cs | 304 return BitConverter.ToUInt16(sourceAddressTable, 4 * i); in GetSourceAddressMatchingPanId() 309 return BitConverter.ToUInt16(sourceAddressTable, 4 * i + 2); in GetSourceAddressMatchingShortAddress()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/CAN/ |
| D | MPFS_CAN.cs | 492 var data = BitHelper.ToUInt16(message.Data, 0, reverse: isSwapped); in CanReceiveMessage()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USBDeprecated/ |
| D | ISP1761.cs | 1248 … setupData.value = BitConverter.ToUInt16(payLoad, (int)(PTDh.DataStartAddress + 2)); in ProcessPacket() 1249 … setupData.index = BitConverter.ToUInt16(payLoad, (int)(PTDh.DataStartAddress + 4)); in ProcessPacket() 1250 … setupData.length = BitConverter.ToUInt16(payLoad, (int)(PTDh.DataStartAddress + 6)); in ProcessPacket()
|
| /Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Tests/UnitTests/ |
| D | SystemBusTests.cs | 415 (Func<ulong, ushort>)Convert.ToUInt16, in testAllTranslatedAccesses()
|