Versions in this module Expand all Collapse all v0 v0.2.0 Jun 2, 2024 Changes in this version + const Default_InitCommand_IsDebug + var File_dfu_cc_proto protoreflect.FileDescriptor + var FwType_name = map[int32]string + var FwType_value = map[string]int32 + var HashType_name = map[int32]string + var HashType_value = map[string]int32 + var OpCode_name = map[int32]string + var OpCode_value = map[string]int32 + var SignatureType_name = map[int32]string + var SignatureType_value = map[string]int32 + var ValidationType_name = map[int32]string + var ValidationType_value = map[string]int32 + type BootValidation struct + Bytes []byte + Type *ValidationType + func (*BootValidation) Descriptor() ([]byte, []int) + func (*BootValidation) ProtoMessage() + func (x *BootValidation) GetBytes() []byte + func (x *BootValidation) GetType() ValidationType + func (x *BootValidation) ProtoReflect() protoreflect.Message + func (x *BootValidation) Reset() + func (x *BootValidation) String() string + type Command struct + Init *InitCommand + OpCode *OpCode + Reset_ *ResetCommand + func (*Command) Descriptor() ([]byte, []int) + func (*Command) ProtoMessage() + func (x *Command) GetInit() *InitCommand + func (x *Command) GetOpCode() OpCode + func (x *Command) GetReset_() *ResetCommand + func (x *Command) ProtoReflect() protoreflect.Message + func (x *Command) Reset() + func (x *Command) String() string + type FwType int32 + const FwType_APPLICATION + const FwType_BOOTLOADER + const FwType_EXTERNAL_APPLICATION + const FwType_SOFTDEVICE + const FwType_SOFTDEVICE_BOOTLOADER + func (FwType) Descriptor() protoreflect.EnumDescriptor + func (FwType) EnumDescriptor() ([]byte, []int) + func (FwType) Type() protoreflect.EnumType + func (x *FwType) UnmarshalJSON(b []byte) error + func (x FwType) Enum() *FwType + func (x FwType) Number() protoreflect.EnumNumber + func (x FwType) String() string + type Hash struct + Hash []byte + HashType *HashType + func (*Hash) Descriptor() ([]byte, []int) + func (*Hash) ProtoMessage() + func (x *Hash) GetHash() []byte + func (x *Hash) GetHashType() HashType + func (x *Hash) ProtoReflect() protoreflect.Message + func (x *Hash) Reset() + func (x *Hash) String() string + type HashType int32 + const HashType_CRC + const HashType_NO_HASH + const HashType_SHA128 + const HashType_SHA256 + const HashType_SHA512 + func (HashType) Descriptor() protoreflect.EnumDescriptor + func (HashType) EnumDescriptor() ([]byte, []int) + func (HashType) Type() protoreflect.EnumType + func (x *HashType) UnmarshalJSON(b []byte) error + func (x HashType) Enum() *HashType + func (x HashType) Number() protoreflect.EnumNumber + func (x HashType) String() string + type InitCommand struct + AppSize *uint32 + BlSize *uint32 + BootValidation []*BootValidation + FwVersion *uint32 + Hash *Hash + HwVersion *uint32 + IsDebug *bool + SdReq []uint32 + SdSize *uint32 + Type *FwType + func (*InitCommand) Descriptor() ([]byte, []int) + func (*InitCommand) ProtoMessage() + func (x *InitCommand) GetAppSize() uint32 + func (x *InitCommand) GetBlSize() uint32 + func (x *InitCommand) GetBootValidation() []*BootValidation + func (x *InitCommand) GetFwVersion() uint32 + func (x *InitCommand) GetHash() *Hash + func (x *InitCommand) GetHwVersion() uint32 + func (x *InitCommand) GetIsDebug() bool + func (x *InitCommand) GetSdReq() []uint32 + func (x *InitCommand) GetSdSize() uint32 + func (x *InitCommand) GetType() FwType + func (x *InitCommand) ProtoReflect() protoreflect.Message + func (x *InitCommand) Reset() + func (x *InitCommand) String() string + type OpCode int32 + const OpCode_INIT + const OpCode_RESET + func (OpCode) Descriptor() protoreflect.EnumDescriptor + func (OpCode) EnumDescriptor() ([]byte, []int) + func (OpCode) Type() protoreflect.EnumType + func (x *OpCode) UnmarshalJSON(b []byte) error + func (x OpCode) Enum() *OpCode + func (x OpCode) Number() protoreflect.EnumNumber + func (x OpCode) String() string + type Packet struct + Command *Command + SignedCommand *SignedCommand + func (*Packet) Descriptor() ([]byte, []int) + func (*Packet) ProtoMessage() + func (x *Packet) GetCommand() *Command + func (x *Packet) GetSignedCommand() *SignedCommand + func (x *Packet) ProtoReflect() protoreflect.Message + func (x *Packet) Reset() + func (x *Packet) String() string + type ResetCommand struct + Timeout *uint32 + func (*ResetCommand) Descriptor() ([]byte, []int) + func (*ResetCommand) ProtoMessage() + func (x *ResetCommand) GetTimeout() uint32 + func (x *ResetCommand) ProtoReflect() protoreflect.Message + func (x *ResetCommand) Reset() + func (x *ResetCommand) String() string + type SignatureType int32 + const SignatureType_ECDSA_P256_SHA256 + const SignatureType_ED25519 + func (SignatureType) Descriptor() protoreflect.EnumDescriptor + func (SignatureType) EnumDescriptor() ([]byte, []int) + func (SignatureType) Type() protoreflect.EnumType + func (x *SignatureType) UnmarshalJSON(b []byte) error + func (x SignatureType) Enum() *SignatureType + func (x SignatureType) Number() protoreflect.EnumNumber + func (x SignatureType) String() string + type SignedCommand struct + Command *Command + Signature []byte + SignatureType *SignatureType + func (*SignedCommand) Descriptor() ([]byte, []int) + func (*SignedCommand) ProtoMessage() + func (x *SignedCommand) GetCommand() *Command + func (x *SignedCommand) GetSignature() []byte + func (x *SignedCommand) GetSignatureType() SignatureType + func (x *SignedCommand) ProtoReflect() protoreflect.Message + func (x *SignedCommand) Reset() + func (x *SignedCommand) String() string + type ValidationType int32 + const ValidationType_NO_VALIDATION + const ValidationType_VALIDATE_ECDSA_P256_SHA256 + const ValidationType_VALIDATE_GENERATED_CRC + const ValidationType_VALIDATE_SHA256 + func (ValidationType) Descriptor() protoreflect.EnumDescriptor + func (ValidationType) EnumDescriptor() ([]byte, []int) + func (ValidationType) Type() protoreflect.EnumType + func (x *ValidationType) UnmarshalJSON(b []byte) error + func (x ValidationType) Enum() *ValidationType + func (x ValidationType) Number() protoreflect.EnumNumber + func (x ValidationType) String() string v0.1.0 Jun 1, 2024