44 lines
737 B
Protocol Buffer
44 lines
737 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package ledd;
|
|
|
|
option optimize_for = SPEED;
|
|
|
|
message Backend {
|
|
int32 channel = 3;
|
|
string name = 4;
|
|
string type = 5;
|
|
string version = 6;
|
|
int32 resolution = 7;
|
|
|
|
map<string, string> options = 10;
|
|
}
|
|
|
|
message LedD {
|
|
string name = 1;
|
|
}
|
|
|
|
message BackendSetAll {
|
|
int32 value = 1;
|
|
}
|
|
|
|
message BackendLEDOptions {
|
|
map<string, string> options = 1;
|
|
}
|
|
|
|
message BackendSetChannel {
|
|
map <int32, double> values = 1;
|
|
map <int32, float> correction = 2;
|
|
|
|
}
|
|
|
|
message BackendWrapperMessage {
|
|
oneof msg {
|
|
Backend m_backend = 2;
|
|
BackendSetAll m_set_all = 3;
|
|
BackendLEDOptions m_options = 4;
|
|
BackendSetChannel m_set_channel = 5;
|
|
LedD m_ledd = 6;
|
|
}
|
|
}
|