static public void au16SetWorkingData(UInt32 u32Address, ref UInt16[] au16Data) { foreach (UInt16 u16Data in au16Data) { u16SetWorkingData(u32Address, u16Data); if (false == mboLockForChanges) { tstReg16Write stReg16Write = new tstReg16Write(); stReg16Write.iSequence = miSequence; stReg16Write.u32Address = u32Address; stReg16Write.u16Data = u16Data; mlstReg16Write.Add(stReg16Write); mboSort16Pending = true; } u32Address += 2; } }
static public void s16SetWorkingData(UInt32 u32Address, Int16 s16Data) { byte[] au8Data = BitConverter.GetBytes(s16Data); if (!Array.Equals(ExtensionMethods.ByteSubArray(mau8WorkingPage, (int)(u32Address - mu32WorkingBaseAddress), 2), au8Data)) { Array.Copy(au8Data, 0, mau8WorkingPage, (int)(u32Address - mu32WorkingBaseAddress), au8Data.Length); if (false == mboLockForChanges) { tstReg16Write stReg16Write = new tstReg16Write(); stReg16Write.iSequence = miSequence; stReg16Write.u32Address = u32Address; stReg16Write.u16Data = (UInt16)s16Data; mlstReg16Write.Add(stReg16Write); mboSort16Pending = true; } } }
static public void AddReg16Write(tstReg16Write stReg16Write) { mlstReg16Write.Add(stReg16Write); mboSort16Pending = true; }