Inheritance: BootloaderResponse
コード例 #1
0
        public GetFlashSizeResponse GetFlashSize(int flashArrayId)
        {
            GetFlashSizeCommand  cmd      = new GetFlashSizeCommand(_checksumType, (byte)flashArrayId);
            GetFlashSizeResponse response = new GetFlashSizeResponse();

            SendCommand(cmd, response);
            return(response);
        }
コード例 #2
0
        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();
            }
        }
コード例 #3
0
ファイル: FreebooterHost.cs プロジェクト: arachnidlabs/loki
 public GetFlashSizeResponse GetFlashSize(int flashArrayId)
 {
     GetFlashSizeCommand cmd = new GetFlashSizeCommand(_checksumType, (byte)flashArrayId);
     GetFlashSizeResponse response = new GetFlashSizeResponse();
     SendCommand(cmd, response);
     return response;
 }