Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/flipperdevices/flipperzero-protobuf.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Prosvetova <anna@prosvetova.me>2021-12-16 17:47:32 +0300
committerGitHub <noreply@github.com>2021-12-16 17:47:32 +0300
commitf5365c36aa458eb344280560440d6e27232a5667 (patch)
tree513af2040dcee59b84a03d505e20db52f465b94c
parentf6fdc10e6d111b289188e88ac1d432698bb739cf (diff)
Add SystemGetDateTime, SystemSetDateTime, update GuiStartVirtualDisplay (#19)
* Add SystemGetDateTime, SystemSetDateTime, update GuiStartVirtualDisplay * Weekday is writable. How cursed it is!
-rw-r--r--flipper.proto3
-rw-r--r--gui.proto1
-rw-r--r--system.options7
-rw-r--r--system.proto23
4 files changed, 34 insertions, 0 deletions
diff --git a/flipper.proto b/flipper.proto
index dc50937..25aa86b 100644
--- a/flipper.proto
+++ b/flipper.proto
@@ -62,6 +62,9 @@ message Main {
.PB_System.DeviceInfoRequest system_device_info_request = 32;
.PB_System.DeviceInfoResponse system_device_info_response = 33;
.PB_System.FactoryResetRequest system_factory_reset_request = 34;
+ .PB_System.GetDateTimeRequest system_get_datetime_request = 35;
+ .PB_System.GetDateTimeResponse system_get_datetime_response = 36;
+ .PB_System.SetDateTimeRequest system_set_datetime_request = 37;
.PB_Storage.InfoRequest storage_info_request = 28;
.PB_Storage.InfoResponse storage_info_response = 29;
.PB_Storage.StatRequest storage_stat_request = 24;
diff --git a/gui.proto b/gui.proto
index 070d521..f6a8a6b 100644
--- a/gui.proto
+++ b/gui.proto
@@ -36,6 +36,7 @@ message SendInputEventRequest {
}
message StartVirtualDisplayRequest {
+ ScreenFrame first_frame = 1; // optional
}
message StopVirtualDisplayRequest {
diff --git a/system.options b/system.options
index 8034103..c13b6c3 100644
--- a/system.options
+++ b/system.options
@@ -4,4 +4,11 @@ PB_System.PingResponse.data type:FT_POINTER
PB_System.PingResponse.data max_size:1024
PB_System.DeviceInfoResponse.key type:FT_POINTER
PB_System.DeviceInfoResponse.value type:FT_POINTER
+PB_System.DateTime.hour int_size:IS_8
+PB_System.DateTime.minute int_size:IS_8
+PB_System.DateTime.second int_size:IS_8
+PB_System.DateTime.day int_size:IS_8
+PB_System.DateTime.month int_size:IS_8
+PB_System.DateTime.year int_size:IS_16
+PB_System.DateTime.weekday int_size:IS_8
diff --git a/system.proto b/system.proto
index 9e9f4ff..1c68b13 100644
--- a/system.proto
+++ b/system.proto
@@ -28,4 +28,27 @@ message DeviceInfoResponse {
}
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 */
} \ No newline at end of file