mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-08 05:32:39 +00:00
64 lines
1.1 KiB
Protocol Buffer
64 lines
1.1 KiB
Protocol Buffer
syntax = "proto2";
|
|
package hw.trezor.messages.ble;
|
|
|
|
// Sugar for easier handling in Java
|
|
option java_package = "com.satoshilabs.trezor.lib.protobuf";
|
|
option java_outer_classname = "TrezorMessageBLE";
|
|
|
|
import "options.proto";
|
|
|
|
option (include_in_bitcoin_only) = true;
|
|
|
|
import "messages.proto";
|
|
|
|
|
|
/**
|
|
* Request: initializes upload of a new ble firmware im
|
|
* @start
|
|
* @next UploadBLEFirmwareNextChunk
|
|
* @next Failure
|
|
*/
|
|
message UploadBLEFirmwareInit {
|
|
required bytes init_data = 1;
|
|
required uint32 binsize = 2;
|
|
}
|
|
|
|
|
|
/**
|
|
* Response: Requests next chunk of a new ble firmware im
|
|
* @next UploadBLEFirmwareChunk
|
|
*/
|
|
message UploadBLEFirmwareNextChunk {
|
|
required uint32 offset = 1;
|
|
}
|
|
|
|
/**
|
|
* Request: sends next chunk of a new ble firmware im
|
|
* @next UploadBLEFirmwareNextChunk
|
|
* @next Success
|
|
* @next Failure
|
|
*/
|
|
message UploadBLEFirmwareChunk {
|
|
required bytes data = 1;
|
|
}
|
|
|
|
|
|
/**
|
|
* Request: erases all BLE bonds
|
|
* @start
|
|
* @next Success
|
|
* @next Failure
|
|
*/
|
|
message EraseBonds {
|
|
}
|
|
|
|
|
|
/**
|
|
* Request: disconnect
|
|
* @start
|
|
* @next Success
|
|
* @next Failure
|
|
*/
|
|
message Disconnect {
|
|
}
|