Home
last modified time | relevance | path

Searched refs:crcPolynomial (Results 1 – 5 of 5) sorted by relevance

/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Main/Utilities/
DCRCEngine.cs85 private static uint[] GenerateLookupTable(CRCPolynomial crcPolynomial) in GenerateLookupTable() argument
87 if(tablesCache.ContainsKey(crcPolynomial) && tablesCache[crcPolynomial] != null) in GenerateLookupTable()
89 return tablesCache[crcPolynomial]; in GenerateLookupTable()
93 … var shiftedPoly = crcPolynomial.Polynomial << (CRCConfig.MaxCRCWidth - crcPolynomial.Width); in GenerateLookupTable()
113 if(tablesCache.ContainsKey(crcPolynomial)) in GenerateLookupTable()
115 tablesCache[crcPolynomial] = table; in GenerateLookupTable()
159 public CRCConfig(CRCPolynomial crcPolynomial, bool reflectInput, bool reflectOutput, in CRCConfig()
162 CRCPolynomial = crcPolynomial; in CRCConfig()
165 BitHelper.ClearBits(ref init, crcPolynomial.Width, MaxCRCWidth - crcPolynomial.Width); in CRCConfig()
167 … BitHelper.ClearBits(ref xorOutput, crcPolynomial.Width, MaxCRCWidth - crcPolynomial.Width); in CRCConfig()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/IEEE802_15_4/
DFrame.cs23 …me CreateAckForFrame(byte[] frame, uint crcInitialValue = 0x0, CRCPolynomial? crcPolynomial = null) in CreateAckForFrame() argument
27 … return CreateACK(sequenceNumber, false, crcInitialValue, crcPolynomial ?? DefaultCrcPolynomial); in CreateAckForFrame()
30 …byte sequenceNumber, bool pending, uint crcInitialValue = 0x0, CRCPolynomial? crcPolynomial = null) in CreateACK() argument
34 result.CRCPolynomial = crcPolynomial ?? DefaultCrcPolynomial; in CreateACK()
42 …culateCRC(IEnumerable<byte> bytes, uint crcInitialValue = 0x0, CRCPolynomial? crcPolynomial = null) in CalculateCRC() argument
45 var polynomial = crcPolynomial ?? DefaultCrcPolynomial; in CalculateCRC()
65 public Frame(byte[] data, CRCPolynomial? crcPolynomial = null) in Frame() argument
68 CRCPolynomial = crcPolynomial ?? CRCPolynomial.CRC16_CCITT; in Frame()
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Miscellaneous/
DMAX32650_TPU.cs53 var polynomial = BitHelper.ReverseBits((uint)crcPolynomial.Value); in UpdateCRCEngine()
73 crcPolynomial.Value = DefaultCRCPolynomial; in ResetKnownRegisters()
152 .WithValueField(0, 32, out crcPolynomial, FieldMode.Write, name: "CRC_POLY.data", in DefineRegisters()
172 private IValueRegisterField crcPolynomial; field in Antmicro.Renode.Peripherals.Miscellaneous.MAX32650_TPU
/Renode-Infrastructure-v1.15.3-29f510e/src/Emulator/Peripherals/Peripherals/Wireless/
DCC1200.cs520 var frame = new Frame(mpduBytes, crcPolynomial); in HandleFrame()
564 … var ack = Frame.CreateACK(frame.DataSequenceNumber, true, crcInitialValue, crcPolynomial); in HandleFrame()
609 crc = Frame.CalculateCRC(mpduBytes, (ushort)crcInitialValue, crcPolynomial); in SendFrame()
752 crcPolynomial = CRCPolynomial.CRC16; in CreateRegisters()
757 crcPolynomial = CRCPolynomial.CRC16_CCITT; in CreateRegisters()
961 private CRCPolynomial crcPolynomial; field in Antmicro.Renode.Peripherals.Wireless.CC1200
DNRF52840_Radio.cs260 .WithValueField(0, 24, out crcPolynomial, name: "CRCPOLY") in DefineRegisters()
567 private IValueRegisterField crcPolynomial; field in Antmicro.Renode.Peripherals.Wireless.NRF52840_Radio