BasicStream.h
Go to the documentation of this file.
Hash VerificationData
Checksum type.
Definition: ChecksumVerifier.h:41
@ NoRomFound
The file did not contain a ROM image suitable for the start address of the slot to upgrade.
bool isFinished() override
Check if all data has been read.
Definition: BasicStream.h:111
@ InvalidFormat
Invalid/unsupported upgrade file format.
@ DowngradeNotAllowed
Attempt to downgrade to older firmware version.
Error errorCode
Error code. Only relevant if hasError() returns true.
Definition: BasicStream.h:83
Definition: BasicStream.h:23
@ RomTooLarge
The contained ROM image does not fit into the application firmware slot.
void setError(Error ec)
@ UnsupportedData
Some content of the upgrade file is not supported by this version of OtaUpgradeStream.
virtual int available() override
Return the total length of the stream.
Definition: BasicStream.h:107
@ DecryptionFailed
Decryption failed. Probably wrong decryption key.
Definition: FileFormat.h:34
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
Definition: BasicStream.h:103
@ RomActivationFailed
Error while activating updated ROM slot.
Definition: FileFormat.h:24
BasicStream()
bool hasError() const
Returns true if an error happened during the upgrade process.
Definition: BasicStream.h:97
@ FlashWriteFailed
Error while writing to Flash memory.
@ None
No error occurred thus far (default value of errorCode if hasError() returns false)
A write-only stream to parse and apply firmware unencrypted upgrade files generated by otatool....
Definition: BasicStream.h:52
size_t write(const uint8_t *data, size_t size) override
Process chunk of upgrade file.
@ VerificationFailed
Signature/checksum verification failed - updated ROM not activated.