2
0

DAC.proto 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. syntax = "proto3";
  2. package sys.dac;
  3. import "GPIO.proto";
  4. import "DacControlSet.proto";
  5. import "I2CBus.proto";
  6. import "customoptions.proto";
  7. import "nanopb.proto";
  8. option (nanopb_fileopt).enum_to_string = true;
  9. enum models {
  10. UNSPECIFIED = 0;
  11. TAS57xx = 1;
  12. TAS5713 = 2;
  13. AC101 = 3;
  14. WM8978 = 4;
  15. ES8388 = 5;
  16. I2S = 6;
  17. CS4265 = 7;
  18. OTHER = 8;
  19. }
  20. enum mck {
  21. NONE = 0;
  22. GPIO0 = 1;
  23. TXD = 2;
  24. INVALID1 = 3;
  25. RXD = 4;
  26. }
  27. message default_set {
  28. models model = 1;
  29. uint32 bytes_per_frame = 2;
  30. bool valid = 3;
  31. dac.control.set set = 4;
  32. }
  33. message default_sets {
  34. repeated default_set sets = 1 [(nanopb).type = FT_POINTER];
  35. }
  36. message config {
  37. option (nanopb_msgopt).packed_struct = true;
  38. option (nanopb_msgopt).msgid = 10008;
  39. int32 bck = 1 [(cust_field).v_int32=-1];
  40. int32 ws = 2 [(cust_field).v_int32=-1];
  41. int32 dout = 3 [(cust_field).v_int32=-1];
  42. mck mck = 4;
  43. gpio.config mute = 5 [(cust_field).v_msg='{"pin":-1,"level":"LOW"}'];
  44. models model = 6;
  45. sys.i2c.bus i2c = 7;
  46. dac.control.set daccontrolset = 8;
  47. bool jack_mutes_amp = 9;
  48. uint32 addr = 10;
  49. int32 din = 11 [(cust_field).v_int32=-1];
  50. }