Gpios.proto 859 B

1234567891011121314151617181920212223
  1. syntax = "proto3";
  2. package sys.gpios;
  3. import "GPIO.proto";
  4. import "Led.proto";
  5. import "customoptions.proto";
  6. import "nanopb.proto";
  7. option (nanopb_fileopt).enum_to_string = true;
  8. message config {
  9. option (nanopb_msgopt).packed_struct = true;
  10. option (nanopb_msgopt).msgid = 10030;
  11. led.config greenLED = 1;
  12. led.config redLED = 2;
  13. gpio.config audioJack = 3 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  14. gpio.config amp = 4 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  15. gpio.config power = 5 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  16. gpio.config jack = 6 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  17. gpio.config spkfault = 7 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  18. gpio.config Vcc = 8 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  19. gpio.config GND = 9 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  20. }