Home
last modified time | relevance | path

Searched refs:ToUInt16 (Results 1 – 25 of 26) sorted by relevance

12

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/
DAddress.cs76 return (ulong)BitConverter.ToUInt16(Bytes.ToArray(), 0); in GetValue()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/CPU/
DCPURegister.cs54 result = BitConverter.ToUInt16(bytesWithPadding, 0); in ValueFromBytes()
DRegisterValue.cs130 return BitConverter.ToUInt16(bytes, 0); in operator ushort()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/I2C/
DSHT21.cs202 UInt16 resultInt = Convert.ToUInt16(Math.Round(result)); in GetTemperature()
246 UInt16 resultInt = Convert.ToUInt16(Math.Round(result)); in GetHumidity()
DSHT45.cs127 UInt16 SrhU16 = Convert.ToUInt16(Math.Round(Srh)); in EncodeHumidity()
DBMA180.cs568 temperature = (byte)(Convert.ToUInt16(Math.Round(preciseTemperature)) & 0xFF); in GetTemperature()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Peripherals/Memory/
DArrayMemory.cs94 var result = BitConverter.ToUInt16(array, intOffset); in ReadWord()
DMappedMemory.cs164 return BitConverter.ToUInt16(bytes, 0); in ReadWord()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Extensions/TAPHelper/
DTAPTools.cs70 … var currentFlags = BitConverter.ToUInt16(Marshal.ReadInt16(ifr, IFNAMSIZ).AsRawBytes(), 0); in Up_TUNTAP()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Network/
DKS8851.cs103 var requestShort = BitConverter.ToUInt16(request, 0); in Message()
DGaislerEth.cs53 return (uint)EndianBitConverter.Big.ToUInt16(MAC.Bytes, 4); in ReadDoubleWord()
DCadenceGEM.cs313 … .WithValueField(0, 16, valueProviderCallback: _ => BitConverter.ToUInt16(MAC.Bytes, 4)) in CadenceGEM()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DMisc.cs861 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()
DBitHelper.cs613 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/
DDmaEngine.cs164 …sysbus.WriteWord(destinationAddress + offset, BitConverter.ToUInt16(buffer, transferred), context); in IssueCopy()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Sensors/
DHS3001.cs87 var value = BitHelper.ToUInt16(registerWriteData, 1, true); in Write()
DICP_101xx.cs61 command = (Command)BitHelper.ToUInt16(data, 0, reverse: false); in Write()
DLIS2DW12.cs903 var tempAsUshort = Decimal.ToUInt16(Math.Abs(temp)); in TwoComplementSignConvert()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Core/Extensions/
DFileLoaderExtensions.cs214 … var bytesCount = Convert.ToUInt16(line.Substring(SRecBytesCountStart, SRecBytesCountLength), 16); in LoadSRecord()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/DMA/
DSAM_PDC.cs443 … wordPeripheral.DmaWordWrite(BitConverter.ToUInt16(transmitterBuffer, transmitterBufferOffset)); in Write()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/SPI/
DCadence_xSPI.cs87 return BitHelper.ToUInt16(ReadUsingDMA(2).ToArray(), 0, false); in ReadWordUsingDMA()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/
DCC2520.cs304 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/
DMPFS_CAN.cs492 var data = BitHelper.ToUInt16(message.Data, 0, reverse: isSwapped); in CanReceiveMessage()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/USBDeprecated/
DISP1761.cs1248 … 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/
DSystemBusTests.cs415 (Func<ulong, ushort>)Convert.ToUInt16, in testAllTranslatedAccesses()

12