new protocol defintion
This commit is contained in:
@@ -12,6 +12,7 @@ message RequestDeviceList {
|
|||||||
required uint32 canid = 2;
|
required uint32 canid = 2;
|
||||||
required uint32 device = 3;
|
required uint32 device = 3;
|
||||||
required uint32 counter = 4;
|
required uint32 counter = 4;
|
||||||
|
optional uint32 type = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ResponseDeviceList {
|
message ResponseDeviceList {
|
||||||
|
|||||||
@@ -2,3 +2,25 @@ syntax = "proto2";
|
|||||||
|
|
||||||
import "nanopb.proto";
|
import "nanopb.proto";
|
||||||
|
|
||||||
|
message LightGlobalBrightness {
|
||||||
|
required uint32 brightness = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
enum LightTheme {
|
||||||
|
THEME_0 = 0;
|
||||||
|
THEME_1 = 1;
|
||||||
|
THEME_2 = 2;
|
||||||
|
THEME_3 = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message LightGlobalTheme {
|
||||||
|
required LightTheme theme = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message LightThemeSettings {
|
||||||
|
required uint32 deviceId = 1;
|
||||||
|
required LightTheme theme = 2;
|
||||||
|
required uint32 rgb = 3;
|
||||||
|
required uint32 brightness = 4;
|
||||||
|
required uint32 animation = 5;
|
||||||
|
}
|
||||||
@@ -11,7 +11,13 @@ enum UsbPackageType {
|
|||||||
FIRMWAREPACKAGEACK = 3844; // 0xF04
|
FIRMWAREPACKAGEACK = 3844; // 0xF04
|
||||||
FIRMWAREFILECHECK = 3845; // 0xF05
|
FIRMWAREFILECHECK = 3845; // 0xF05
|
||||||
FIRMWAREUPDATEDONE = 3846; // 0xF06
|
FIRMWAREUPDATEDONE = 3846; // 0xF06
|
||||||
|
|
||||||
REQUEST_DEVICE_LIST = 1000;
|
REQUEST_DEVICE_LIST = 1000;
|
||||||
RESPONSE_DEVICE_LIST = 1001;
|
RESPONSE_DEVICE_LIST = 1001;
|
||||||
|
|
||||||
|
LIGHT_GLOBAL_BRIGHT = 2001;
|
||||||
|
LIGHT_GLOBAL_THEME = 2002;
|
||||||
|
|
||||||
|
LIGHT_SETTING_THEME = 2101;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user