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

            SendCommand(cmd, response);
            return(response);
        }
Example #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();
            }
        }
Example #3
0
 public GetFlashSizeResponse GetFlashSize(int flashArrayId)
 {
     GetFlashSizeCommand cmd = new GetFlashSizeCommand(_checksumType, (byte)flashArrayId);
     GetFlashSizeResponse response = new GetFlashSizeResponse();
     SendCommand(cmd, response);
     return response;
 }