// SPDX-License-Identifier: Apache-2.0
syntax = "proto3";
package shiftcrypto.bitbox02;
message BluetoothToggleEnabledRequest {
}
message BluetoothUpgradeInitRequest {
uint32 firmware_length = 1;
}
message BluetoothChunkRequest {
bytes data = 1;
}
message BluetoothSuccess {
}
message BluetoothRequestChunkResponse {
uint32 offset = 1;
uint32 length = 2;
}
message BluetoothRequest {
oneof request {
BluetoothUpgradeInitRequest upgrade_init = 1;
BluetoothChunkRequest chunk = 2;
BluetoothToggleEnabledRequest toggle_enabled = 3;
}
}
message BluetoothResponse {
oneof response {
BluetoothSuccess success = 1;
BluetoothRequestChunkResponse request_chunk = 2;
}
}