mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-11 22:17:17 +03:00
initial refactoring
This commit is contained in:
19
protobuf/proto/I2CBus.proto
Normal file
19
protobuf/proto/I2CBus.proto
Normal file
@@ -0,0 +1,19 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package sys;
|
||||
import "GPIO.proto";
|
||||
import "nanopb.proto";
|
||||
option (nanopb_fileopt).enum_to_string = true;
|
||||
|
||||
enum I2CPortEnum {
|
||||
UNSPECIFIED_PORT = 0;
|
||||
I2CPort0 = 1;
|
||||
I2CPort1 = 2;
|
||||
}
|
||||
message I2CBus {
|
||||
option (nanopb_msgopt).msgid = 10034;
|
||||
I2CPortEnum port = 1 ;
|
||||
int32 speed = 2 [(nanopb).int_size = IS_16];
|
||||
GPIO sda = 3;
|
||||
GPIO scl = 4;
|
||||
}
|
||||
Reference in New Issue
Block a user