-
Notifications
You must be signed in to change notification settings - Fork 23
/
system.proto
95 lines (77 loc) · 1.73 KB
/
system.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
syntax = "proto3";
package PB_System;
option java_package = "com.flipperdevices.protobuf.system";
message PingRequest {
bytes data = 1;
}
message PingResponse {
bytes data = 1;
}
message RebootRequest {
enum RebootMode {
OS = 0; // default value
DFU = 1;
UPDATE = 2;
}
RebootMode mode = 1;
}
message DeviceInfoRequest {
}
message DeviceInfoResponse {
string key = 1;
string value = 2;
}
message FactoryResetRequest {
}
message GetDateTimeRequest {
}
message GetDateTimeResponse {
DateTime datetime = 1;
}
message SetDateTimeRequest {
DateTime datetime = 1;
}
message DateTime {
// Time
uint32 hour = 1; /**< Hour in 24H format: 0-23 */
uint32 minute = 2; /**< Minute: 0-59 */
uint32 second = 3; /**< Second: 0-59 */
// Date
uint32 day = 4; /**< Current day: 1-31 */
uint32 month = 5; /**< Current month: 1-12 */
uint32 year = 6; /**< Current year: 2000-2099 */
uint32 weekday = 7; /**< Current weekday: 1-7 */
}
message PlayAudiovisualAlertRequest {
}
message ProtobufVersionRequest {
}
message ProtobufVersionResponse {
uint32 major = 1;
uint32 minor = 2;
}
message UpdateRequest {
string update_manifest = 1;
}
message UpdateResponse {
enum UpdateResultCode {
OK = 0;
ManifestPathInvalid = 1;
ManifestFolderNotFound = 2;
ManifestInvalid = 3;
StageMissing = 4;
StageIntegrityError = 5;
ManifestPointerError = 6;
TargetMismatch = 7;
OutdatedManifestVersion = 8;
IntFull = 9;
UnspecifiedError = 10;
}
UpdateResultCode code = 1;
}
message PowerInfoRequest {
}
message PowerInfoResponse {
string key = 1;
string value = 2;
}