# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: all.proto
# Protobuf Python Version: 5.27.2
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import runtime_version as _runtime_version
from google.protobuf import symbol_database as _symbol_database
from google.protobuf.internal import builder as _builder
_runtime_version.ValidateProtobufRuntimeVersion(
    _runtime_version.Domain.PUBLIC,
    5,
    27,
    2,
    '',
    'all.proto'
)
# @@protoc_insertion_point(imports)

_sym_db = _symbol_database.Default()




DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tall.proto\x12\x03\x61ll\"+\n\x17GPIOReadFunctionRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\"?\n\x18GPIOReadFunctionResponse\x12#\n\x08\x66unction\x18\x01 \x01(\x0e\x32\x11.all.GpioFunction\"#\n\x14UsbBootloaderRequest\x12\x0b\n\x03val\x18\x01 \x01(\r\"\x17\n\x05\x45mpty\x12\x0e\n\x06status\x18\x01 \x01(\r\"\x1e\n\x0b\x45\x63hoMessage\x12\x0f\n\x07message\x18\x01 \x01(\t\"#\n\x0fGPIOReadRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\"`\n\x0fPWMSetupRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\x12\x0c\n\x04wrap\x18\x02 \x01(\r\x12\x15\n\rclock_div_int\x18\x03 \x01(\r\x12\x16\n\x0e\x63lock_div_frac\x18\x04 \x01(\r\"5\n\x12PWMSetLevelRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\x12\r\n\x05level\x18\x02 \x01(\r\"\"\n\x0e\x41\x44\x43ReadRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\"!\n\x0f\x41\x44\x43ReadResponse\x12\x0e\n\x06sample\x18\x01 \x01(\r\"!\n\x10GPIOReadResponse\x12\r\n\x05state\x18\x01 \x01(\x08\"3\n\x10GPIOWriteRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\x12\r\n\x05state\x18\x02 \x01(\x08\"p\n\x0fSPISetupRequest\x12\x10\n\x08sclk_pin\x18\x02 \x01(\r\x12\x10\n\x08mosi_pin\x18\x03 \x01(\r\x12\x10\n\x08miso_pin\x18\x04 \x01(\r\x12\x14\n\x0cinstance_num\x18\x05 \x01(\r\x12\x11\n\tbaud_rate\x18\x06 \x01(\r\"E\n\x0fSPIWriteRequest\x12\x14\n\x0cinstance_num\x18\x01 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x0e\n\x06\x63s_pin\x18\x03 \x01(\r\"X\n\x0eSPIReadRequest\x12\x14\n\x0cinstance_num\x18\x01 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\r\x12\x0e\n\x06\x63s_pin\x18\x03 \x01(\r\x12\x12\n\nbyte_count\x18\x04 \x01(\r\"\x1f\n\x0fSPIReadResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"H\n\x12GpioPinPullRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\x12 \n\x05state\x18\x02 \x01(\x0e\x32\x11.all.PinPullState\"I\n\x0fI2CSetupRequest\x12\x0f\n\x07sda_pin\x18\x01 \x01(\r\x12\x0f\n\x07scl_pin\x18\x02 \x01(\r\x12\x14\n\x0cinstance_num\x18\x03 \x01(\r\"M\n\x0fI2CWriteRequest\x12\x14\n\x0cinstance_num\x18\x01 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x16\n\x0e\x64\x65vice_address\x18\x03 \x01(\r\"R\n\x0eI2CReadRequest\x12\x14\n\x0cinstance_num\x18\x01 \x01(\r\x12\x16\n\x0e\x64\x65vice_address\x18\x02 \x01(\r\x12\x12\n\nbyte_count\x18\x03 \x01(\r\"i\n\x17I2CWriteThenReadRequest\x12\x14\n\x0cinstance_num\x18\x01 \x01(\r\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12\x16\n\x0e\x64\x65vice_address\x18\x03 \x01(\r\x12\x12\n\nbyte_count\x18\x04 \x01(\r\"(\n\x18I2CWriteThenReadResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"\x1f\n\x0fI2CReadResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"L\n\x13GPIOFunctionRequest\x12\x10\n\x08gpio_pin\x18\x01 \x01(\r\x12#\n\x08\x66unction\x18\x02 \x01(\x0e\x32\x11.all.GpioFunction\" \n\rErrorResponse\x12\x0f\n\x07message\x18\x01 \x01(\t\"[\n\x10UartSetupRequest\x12\x11\n\tbaud_rate\x18\x01 \x01(\r\x12\x0e\n\x06tx_pin\x18\x02 \x01(\r\x12\x0e\n\x06rx_pin\x18\x03 \x01(\r\x12\x14\n\x0cinstance_num\x18\x04 \x01(\r\"J\n\x10UartWriteRequest\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\x12\n\ntimeout_ms\x18\x02 \x01(\r\x12\x14\n\x0cinstance_num\x18\x03 \x01(\r\"O\n\x0fUartReadRequest\x12\x12\n\nbyte_count\x18\x01 \x01(\r\x12\x12\n\ntimeout_ms\x18\x02 \x01(\r\x12\x14\n\x0cinstance_num\x18\x03 \x01(\r\" \n\x10UartReadResponse\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"#\n\x13\x46irmwareInfoRequest\x12\x0c\n\x04info\x18\x01 \x01(\r\"L\n\x14\x46irmwareInfoResponse\x12\x0c\n\x04hash\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x15\n\rserial_number\x18\x03 \x01(\t\"\"\n\x0eSleepMsRequest\x12\x10\n\x08sleep_ms\x18\x01 \x01(\r\"\xd9\x11\n\nAppMessage\x12\x1b\n\x05\x65mtpy\x18\x02 \x01(\x0b\x32\n.all.EmptyH\x00\x12,\n\x0e\x65rror_response\x18\n \x01(\x0b\x32\x12.all.ErrorResponseH\x00\x12\x39\n\x15gpio_function_request\x18\x01 \x01(\x0b\x32\x18.all.GPIOFunctionRequestH\x00\x12,\n\x16gpio_function_response\x18* \x01(\x0b\x32\n.all.EmptyH\x00\x12\x33\n\x12gpio_write_request\x18\x03 \x01(\x0b\x32\x15.all.GPIOWriteRequestH\x00\x12)\n\x13gpio_write_response\x18\x05 \x01(\x0b\x32\n.all.EmptyH\x00\x12;\n\x16usb_bootloader_request\x18\x04 \x01(\x0b\x32\x19.all.UsbBootloaderRequestH\x00\x12-\n\x17usb_bootloader_response\x18\t \x01(\x0b\x32\n.all.EmptyH\x00\x12\x31\n\x11gpio_read_request\x18\x06 \x01(\x0b\x32\x14.all.GPIOReadRequestH\x00\x12\x33\n\x12gpio_read_response\x18\x07 \x01(\x0b\x32\x15.all.GPIOReadResponseH\x00\x12\x31\n\x11i2c_setup_request\x18\x0b \x01(\x0b\x32\x14.all.I2CSetupRequestH\x00\x12(\n\x12i2c_setup_response\x18\x0c \x01(\x0b\x32\n.all.EmptyH\x00\x12\x31\n\x11i2c_write_request\x18\r \x01(\x0b\x32\x14.all.I2CWriteRequestH\x00\x12(\n\x12i2c_write_response\x18\x0e \x01(\x0b\x32\n.all.EmptyH\x00\x12/\n\x10i2c_read_request\x18\x0f \x01(\x0b\x32\x13.all.I2CReadRequestH\x00\x12\x31\n\x11i2c_read_response\x18\x10 \x01(\x0b\x32\x14.all.I2CReadResponseH\x00\x12\x31\n\x11spi_setup_request\x18\x11 \x01(\x0b\x32\x14.all.SPISetupRequestH\x00\x12(\n\x12spi_setup_response\x18\x12 \x01(\x0b\x32\n.all.EmptyH\x00\x12/\n\x10spi_read_request\x18\x13 \x01(\x0b\x32\x13.all.SPIReadRequestH\x00\x12\x31\n\x11spi_read_response\x18\x14 \x01(\x0b\x32\x14.all.SPIReadResponseH\x00\x12\x31\n\x11spi_write_request\x18\x15 \x01(\x0b\x32\x14.all.SPIWriteRequestH\x00\x12(\n\x12spi_write_response\x18\x16 \x01(\x0b\x32\n.all.EmptyH\x00\x12\x39\n\x15\x66irmware_info_request\x18$ \x01(\x0b\x32\x18.all.FirmwareInfoRequestH\x00\x12;\n\x16\x66irmware_info_response\x18% \x01(\x0b\x32\x19.all.FirmwareInfoResponseH\x00\x12\x33\n\x12uart_setup_request\x18\x31 \x01(\x0b\x32\x15.all.UartSetupRequestH\x00\x12)\n\x13uart_setup_response\x18\x32 \x01(\x0b\x32\n.all.EmptyH\x00\x12\x31\n\x11uart_read_request\x18\x33 \x01(\x0b\x32\x14.all.UartReadRequestH\x00\x12\x33\n\x12uart_read_response\x18\x34 \x01(\x0b\x32\x15.all.UartReadResponseH\x00\x12\x33\n\x12uart_write_request\x18\x35 \x01(\x0b\x32\x15.all.UartWriteRequestH\x00\x12)\n\x13uart_write_response\x18\x36 \x01(\x0b\x32\n.all.EmptyH\x00\x12\x38\n\x15gpio_pin_pull_request\x18\x37 \x01(\x0b\x32\x17.all.GpioPinPullRequestH\x00\x12,\n\x16gpio_pin_pull_response\x18\x38 \x01(\x0b\x32\n.all.EmptyH\x00\x12/\n\x10\x61\x64\x63_read_request\x18\x39 \x01(\x0b\x32\x13.all.ADCReadRequestH\x00\x12\x31\n\x11\x61\x64\x63_read_response\x18: \x01(\x0b\x32\x14.all.ADCReadResponseH\x00\x12\x43\n\x1bi2c_write_then_read_request\x18; \x01(\x0b\x32\x1c.all.I2CWriteThenReadRequestH\x00\x12\x45\n\x1ci2c_write_then_read_response\x18< \x01(\x0b\x32\x1d.all.I2CWriteThenReadResponseH\x00\x12\x31\n\x11pwm_setup_request\x18= \x01(\x0b\x32\x14.all.PWMSetupRequestH\x00\x12(\n\x12pwm_setup_response\x18> \x01(\x0b\x32\n.all.EmptyH\x00\x12\x38\n\x15pwm_set_level_request\x18? \x01(\x0b\x32\x17.all.PWMSetLevelRequestH\x00\x12,\n\x16pwm_set_level_response\x18@ \x01(\x0b\x32\n.all.EmptyH\x00\x12/\n\x10sleep_ms_request\x18\x41 \x01(\x0b\x32\x13.all.SleepMsRequestH\x00\x12\'\n\x11sleep_ms_response\x18\x42 \x01(\x0b\x32\n.all.EmptyH\x00\x12\x42\n\x1agpio_read_function_request\x18\x43 \x01(\x0b\x32\x1c.all.GPIOReadFunctionRequestH\x00\x12\x44\n\x1bgpio_read_function_response\x18\x44 \x01(\x0b\x32\x1d.all.GPIOReadFunctionResponseH\x00\x42\x06\n\x04kind*\x85\x01\n\x0cGpioFunction\x12\x07\n\x03xip\x10\x00\x12\x08\n\x04hstx\x10\x01\x12\x07\n\x03spi\x10\x02\x12\x08\n\x04uart\x10\x03\x12\x07\n\x03i2c\x10\x04\x12\x07\n\x03pwm\x10\x05\x12\n\n\x06sio_in\x10\x06\x12\x0b\n\x07sio_out\x10\x07\x12\x07\n\x03pio\x10\x08\x12\x08\n\x04gpck\x10\t\x12\x07\n\x03usb\x10\n\x12\x08\n\x04none\x10\x0b*+\n\x0b\x42\x61nkVoltage\x12\x08\n\x04V1P8\x10\x00\x12\x08\n\x04V3P3\x10\x01\x12\x08\n\x04V5P0\x10\x02*2\n\x0cPinPullState\x12\x08\n\x04None\x10\x00\x12\n\n\x06PullUp\x10\x01\x12\x0c\n\x08PullDown\x10\x02\x62\x06proto3')

_globals = globals()
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'all_pb2', _globals)
if not _descriptor._USE_C_DESCRIPTORS:
  DESCRIPTOR._loaded_options = None
  _globals['_GPIOFUNCTION']._serialized_start=4189
  _globals['_GPIOFUNCTION']._serialized_end=4322
  _globals['_BANKVOLTAGE']._serialized_start=4324
  _globals['_BANKVOLTAGE']._serialized_end=4367
  _globals['_PINPULLSTATE']._serialized_start=4369
  _globals['_PINPULLSTATE']._serialized_end=4419
  _globals['_GPIOREADFUNCTIONREQUEST']._serialized_start=18
  _globals['_GPIOREADFUNCTIONREQUEST']._serialized_end=61
  _globals['_GPIOREADFUNCTIONRESPONSE']._serialized_start=63
  _globals['_GPIOREADFUNCTIONRESPONSE']._serialized_end=126
  _globals['_USBBOOTLOADERREQUEST']._serialized_start=128
  _globals['_USBBOOTLOADERREQUEST']._serialized_end=163
  _globals['_EMPTY']._serialized_start=165
  _globals['_EMPTY']._serialized_end=188
  _globals['_ECHOMESSAGE']._serialized_start=190
  _globals['_ECHOMESSAGE']._serialized_end=220
  _globals['_GPIOREADREQUEST']._serialized_start=222
  _globals['_GPIOREADREQUEST']._serialized_end=257
  _globals['_PWMSETUPREQUEST']._serialized_start=259
  _globals['_PWMSETUPREQUEST']._serialized_end=355
  _globals['_PWMSETLEVELREQUEST']._serialized_start=357
  _globals['_PWMSETLEVELREQUEST']._serialized_end=410
  _globals['_ADCREADREQUEST']._serialized_start=412
  _globals['_ADCREADREQUEST']._serialized_end=446
  _globals['_ADCREADRESPONSE']._serialized_start=448
  _globals['_ADCREADRESPONSE']._serialized_end=481
  _globals['_GPIOREADRESPONSE']._serialized_start=483
  _globals['_GPIOREADRESPONSE']._serialized_end=516
  _globals['_GPIOWRITEREQUEST']._serialized_start=518
  _globals['_GPIOWRITEREQUEST']._serialized_end=569
  _globals['_SPISETUPREQUEST']._serialized_start=571
  _globals['_SPISETUPREQUEST']._serialized_end=683
  _globals['_SPIWRITEREQUEST']._serialized_start=685
  _globals['_SPIWRITEREQUEST']._serialized_end=754
  _globals['_SPIREADREQUEST']._serialized_start=756
  _globals['_SPIREADREQUEST']._serialized_end=844
  _globals['_SPIREADRESPONSE']._serialized_start=846
  _globals['_SPIREADRESPONSE']._serialized_end=877
  _globals['_GPIOPINPULLREQUEST']._serialized_start=879
  _globals['_GPIOPINPULLREQUEST']._serialized_end=951
  _globals['_I2CSETUPREQUEST']._serialized_start=953
  _globals['_I2CSETUPREQUEST']._serialized_end=1026
  _globals['_I2CWRITEREQUEST']._serialized_start=1028
  _globals['_I2CWRITEREQUEST']._serialized_end=1105
  _globals['_I2CREADREQUEST']._serialized_start=1107
  _globals['_I2CREADREQUEST']._serialized_end=1189
  _globals['_I2CWRITETHENREADREQUEST']._serialized_start=1191
  _globals['_I2CWRITETHENREADREQUEST']._serialized_end=1296
  _globals['_I2CWRITETHENREADRESPONSE']._serialized_start=1298
  _globals['_I2CWRITETHENREADRESPONSE']._serialized_end=1338
  _globals['_I2CREADRESPONSE']._serialized_start=1340
  _globals['_I2CREADRESPONSE']._serialized_end=1371
  _globals['_GPIOFUNCTIONREQUEST']._serialized_start=1373
  _globals['_GPIOFUNCTIONREQUEST']._serialized_end=1449
  _globals['_ERRORRESPONSE']._serialized_start=1451
  _globals['_ERRORRESPONSE']._serialized_end=1483
  _globals['_UARTSETUPREQUEST']._serialized_start=1485
  _globals['_UARTSETUPREQUEST']._serialized_end=1576
  _globals['_UARTWRITEREQUEST']._serialized_start=1578
  _globals['_UARTWRITEREQUEST']._serialized_end=1652
  _globals['_UARTREADREQUEST']._serialized_start=1654
  _globals['_UARTREADREQUEST']._serialized_end=1733
  _globals['_UARTREADRESPONSE']._serialized_start=1735
  _globals['_UARTREADRESPONSE']._serialized_end=1767
  _globals['_FIRMWAREINFOREQUEST']._serialized_start=1769
  _globals['_FIRMWAREINFOREQUEST']._serialized_end=1804
  _globals['_FIRMWAREINFORESPONSE']._serialized_start=1806
  _globals['_FIRMWAREINFORESPONSE']._serialized_end=1882
  _globals['_SLEEPMSREQUEST']._serialized_start=1884
  _globals['_SLEEPMSREQUEST']._serialized_end=1918
  _globals['_APPMESSAGE']._serialized_start=1921
  _globals['_APPMESSAGE']._serialized_end=4186
# @@protoc_insertion_point(module_scope)
