/// <summary> /// Initializes a new instance of the SendRawPeciRequest class. /// </summary> internal SendRawPeciRequest(NodeManagerPeciInterface peciInterface, byte peciAddress, byte writeLenght, byte readLenght, byte[] peciCommand ) { // peci interface byte peciInt = (byte)peciInterface; // PECI Client Address and interface selection this.peciAddress = (byte)(peciAddress & 0x3F); this.peciAddress = (byte)((peciInt << 6) | this.peciAddress); // Write Length (part of PECI standard header) this.writeLenght = writeLenght; // Read Length (part of PECI standard header) this.readLenght = readLenght; // if null set to zero byte array if (peciCommand == null) peciCommand = new byte[0]; // The remaining part of PECI command this.peciCommand = peciCommand; }
/// <summary> /// Initializes a new instance of the SendRawPeciRequest class. /// </summary> internal SendRawPeciRequest(NodeManagerPeciInterface peciInterface, byte peciAddress, byte writeLenght, byte readLenght, byte[] peciCommand) { // peci interface byte peciInt = (byte)peciInterface; // PECI Client Address and interface selection this.peciAddress = (byte)(peciAddress & 0x3F); this.peciAddress = (byte)((peciInt << 6) | this.peciAddress); // Write Length (part of PECI standard header) this.writeLenght = writeLenght; // Read Length (part of PECI standard header) this.readLenght = readLenght; // if null set to zero byte array if (peciCommand == null) { peciCommand = new byte[0]; } // The remaining part of PECI command this.peciCommand = peciCommand; }