|
|
@ -40,6 +40,7 @@ enum MessageType {
|
|
|
|
MessageType_ApplySettings = 25 [(wire_in) = true];
|
|
|
|
MessageType_ApplySettings = 25 [(wire_in) = true];
|
|
|
|
MessageType_ButtonRequest = 26 [(wire_out) = true];
|
|
|
|
MessageType_ButtonRequest = 26 [(wire_out) = true];
|
|
|
|
MessageType_ButtonAck = 27 [(wire_in) = true, (wire_tiny) = true];
|
|
|
|
MessageType_ButtonAck = 27 [(wire_in) = true, (wire_tiny) = true];
|
|
|
|
|
|
|
|
MessageType_ApplyFlags = 28 [(wire_in) = true];
|
|
|
|
MessageType_GetAddress = 29 [(wire_in) = true];
|
|
|
|
MessageType_GetAddress = 29 [(wire_in) = true];
|
|
|
|
MessageType_Address = 30 [(wire_out) = true];
|
|
|
|
MessageType_Address = 30 [(wire_out) = true];
|
|
|
|
MessageType_SelfTest = 32 [(wire_in) = true, (wire_bootloader) = true];
|
|
|
|
MessageType_SelfTest = 32 [(wire_in) = true, (wire_bootloader) = true];
|
|
|
@ -129,6 +130,7 @@ message Features {
|
|
|
|
optional bool passphrase_cached = 17; // is passphrase already cached in session?
|
|
|
|
optional bool passphrase_cached = 17; // is passphrase already cached in session?
|
|
|
|
optional bool firmware_present = 18; // is valid firmware loaded?
|
|
|
|
optional bool firmware_present = 18; // is valid firmware loaded?
|
|
|
|
optional bool needs_backup = 19; // does storage need backup? (equals to Storage.needs_backup)
|
|
|
|
optional bool needs_backup = 19; // does storage need backup? (equals to Storage.needs_backup)
|
|
|
|
|
|
|
|
optional uint32 flags = 20; // device flags (equals to Storage.flags)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -152,6 +154,15 @@ message ApplySettings {
|
|
|
|
optional bytes homescreen = 4;
|
|
|
|
optional bytes homescreen = 4;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Request: set flags of the device
|
|
|
|
|
|
|
|
* @next Success
|
|
|
|
|
|
|
|
* @next Failure
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
message ApplyFlags {
|
|
|
|
|
|
|
|
optional uint32 flags = 1; // bitmask, can only set bits, not unset
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Request: Starts workflow for setting/changing/removing the PIN
|
|
|
|
* Request: Starts workflow for setting/changing/removing the PIN
|
|
|
|
* @next ButtonRequest
|
|
|
|
* @next ButtonRequest
|
|
|
|