InitPacket class

Initilize the packet to be converted to a zip file to be sent via OTA

Constructors

InitPacket({List<int>? fromBytes, List<int>? hashBytes, HashType hashType = HashType.noHash, List<List<int>>? bootValidationBytes, List<ValidationType>? bootValidationType, FwType dfuType = FwType.application, bool isDebug = false, int fwVersion = 0xffffffff, int hwVersion = 0xffffffff, int sdSize = 0, int appSize = 0, int blSize = 0, List<int> sdReq = const [0xfffe]})

Properties

appSize ↔ int
getter/setter pair
blSize ↔ int
getter/setter pair
bootValidation ↔ List<BootValidation>?
getter/setter pair
bootValidationBytes ↔ List<List<int>>?
getter/setter pair
bootValidationType ↔ List<ValidationType>?
getter/setter pair
dfuType ↔ FwType
getter/setter pair
fromBytes ↔ List<int>?
getter/setter pair
fwVersion ↔ int
getter/setter pair
hashBytes ↔ List<int>?
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
hashType ↔ HashType
getter/setter pair
hwVersion ↔ int
getter/setter pair
initCommand ↔ InitCommand
getter/setter pair
isDebug ↔ bool
getter/setter pair
packet ↔ Packet
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdReq ↔ List<int>
getter/setter pair
sdSize ↔ int
getter/setter pair

Methods

getInitCommandBytes() → Uint8List
Get the initial bytes to be placed into the packet.
getPacketBytes() → Uint8List
Get the bytes to be placed into the packet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setSignature(List<int> signature, SignatureType signatureType) → void
Set the packet signiture.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited