public GetFlashSizeResponse GetFlashSize(int flashArrayId) { GetFlashSizeCommand cmd = new GetFlashSizeCommand(_checksumType, (byte)flashArrayId); GetFlashSizeResponse response = new GetFlashSizeResponse(); SendCommand(cmd, response); return(response); }
private void ValidateRow(byte arrayId, ushort rowNumber) { if (arrayId >= MAX_FLASH_ARRAYS) { throw new InvalidRowException(); } GetFlashSizeResponse range = flashRanges[arrayId]; if (range == null) { range = flashRanges[arrayId] = this.GetFlashSize(arrayId); } if (rowNumber < range.FirstRow || rowNumber > range.LastRow) { throw new InvalidRowException(); } }
public GetFlashSizeResponse GetFlashSize(int flashArrayId) { GetFlashSizeCommand cmd = new GetFlashSizeCommand(_checksumType, (byte)flashArrayId); GetFlashSizeResponse response = new GetFlashSizeResponse(); SendCommand(cmd, response); return response; }