# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: smartknob.proto """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import nanopb_pb2 as nanopb__pb2 DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0fsmartknob.proto\x12\x02PB\x1a\x0cnanopb.proto\"\x9a\x01\n\rFromSmartKnob\x12\x1f\n\x10protocol_version\x18\x01 \x01(\rB\x05\x92?\x02\x38\x08\x12\x16\n\x03\x61\x63k\x18\x02 \x01(\x0b\x32\x07.PB.AckH\x00\x12\x16\n\x03log\x18\x03 \x01(\x0b\x32\x07.PB.LogH\x00\x12-\n\x0fsmartknob_state\x18\x04 \x01(\x0b\x32\x12.PB.SmartKnobStateH\x00\x42\t\n\x07payload\"\xa4\x01\n\x0bToSmartknob\x12\x1f\n\x10protocol_version\x18\x01 \x01(\rB\x05\x92?\x02\x38\x08\x12\r\n\x05nonce\x18\x02 \x01(\r\x12)\n\rrequest_state\x18\x03 \x01(\x0b\x32\x10.PB.RequestStateH\x00\x12/\n\x10smartknob_config\x18\x04 \x01(\x0b\x32\x13.PB.SmartKnobConfigH\x00\x42\t\n\x07payload\"\x14\n\x03\x41\x63k\x12\r\n\x05nonce\x18\x01 \x01(\r\"\x1a\n\x03Log\x12\x13\n\x03msg\x18\x01 \x01(\tB\x06\x92?\x03p\xff\x01\"j\n\x0eSmartKnobState\x12\x18\n\x10\x63urrent_position\x18\x01 \x01(\x05\x12\x19\n\x11sub_position_unit\x18\x02 \x01(\x02\x12#\n\x06\x63onfig\x18\x03 \x01(\x0b\x32\x13.PB.SmartKnobConfig\"\xc9\x02\n\x0fSmartKnobConfig\x12\x10\n\x08position\x18\x01 \x01(\x05\x12\x19\n\x11sub_position_unit\x18\x02 \x01(\x02\x12\x1d\n\x0eposition_nonce\x18\x03 \x01(\rB\x05\x92?\x02\x38\x08\x12\x14\n\x0cmin_position\x18\x04 \x01(\x05\x12\x14\n\x0cmax_position\x18\x05 \x01(\x05\x12\x1e\n\x16position_width_radians\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tent_strength_unit\x18\x07 \x01(\x02\x12\x1d\n\x15\x65ndstop_strength_unit\x18\x08 \x01(\x02\x12\x12\n\nsnap_point\x18\t \x01(\x02\x12\x13\n\x04text\x18\n \x01(\tB\x05\x92?\x02p2\x12\x1f\n\x10\x64\x65tent_positions\x18\x0b \x03(\x05\x42\x05\x92?\x02\x10\x05\x12\x17\n\x0fsnap_point_bias\x18\x0c \x01(\x02\"\x0e\n\x0cRequestState\"O\n\x17PersistentConfiguration\x12\x0f\n\x07version\x18\x01 \x01(\r\x12#\n\x05motor\x18\x02 \x01(\x0b\x32\x14.PB.MotorCalibration\"p\n\x10MotorCalibration\x12\x12\n\ncalibrated\x18\x01 \x01(\x08\x12\x1e\n\x16zero_electrical_offset\x18\x02 \x01(\x02\x12\x14\n\x0c\x64irection_cw\x18\x03 \x01(\x08\x12\x12\n\npole_pairs\x18\x04 \x01(\rb\x06proto3') _FROMSMARTKNOB = DESCRIPTOR.message_types_by_name['FromSmartKnob'] _TOSMARTKNOB = DESCRIPTOR.message_types_by_name['ToSmartknob'] _ACK = DESCRIPTOR.message_types_by_name['Ack'] _LOG = DESCRIPTOR.message_types_by_name['Log'] _SMARTKNOBSTATE = DESCRIPTOR.message_types_by_name['SmartKnobState'] _SMARTKNOBCONFIG = DESCRIPTOR.message_types_by_name['SmartKnobConfig'] _REQUESTSTATE = DESCRIPTOR.message_types_by_name['RequestState'] _PERSISTENTCONFIGURATION = DESCRIPTOR.message_types_by_name['PersistentConfiguration'] _MOTORCALIBRATION = DESCRIPTOR.message_types_by_name['MotorCalibration'] FromSmartKnob = _reflection.GeneratedProtocolMessageType('FromSmartKnob', (_message.Message,), { 'DESCRIPTOR' : _FROMSMARTKNOB, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.FromSmartKnob) }) _sym_db.RegisterMessage(FromSmartKnob) ToSmartknob = _reflection.GeneratedProtocolMessageType('ToSmartknob', (_message.Message,), { 'DESCRIPTOR' : _TOSMARTKNOB, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.ToSmartknob) }) _sym_db.RegisterMessage(ToSmartknob) Ack = _reflection.GeneratedProtocolMessageType('Ack', (_message.Message,), { 'DESCRIPTOR' : _ACK, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.Ack) }) _sym_db.RegisterMessage(Ack) Log = _reflection.GeneratedProtocolMessageType('Log', (_message.Message,), { 'DESCRIPTOR' : _LOG, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.Log) }) _sym_db.RegisterMessage(Log) SmartKnobState = _reflection.GeneratedProtocolMessageType('SmartKnobState', (_message.Message,), { 'DESCRIPTOR' : _SMARTKNOBSTATE, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.SmartKnobState) }) _sym_db.RegisterMessage(SmartKnobState) SmartKnobConfig = _reflection.GeneratedProtocolMessageType('SmartKnobConfig', (_message.Message,), { 'DESCRIPTOR' : _SMARTKNOBCONFIG, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.SmartKnobConfig) }) _sym_db.RegisterMessage(SmartKnobConfig) RequestState = _reflection.GeneratedProtocolMessageType('RequestState', (_message.Message,), { 'DESCRIPTOR' : _REQUESTSTATE, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.RequestState) }) _sym_db.RegisterMessage(RequestState) PersistentConfiguration = _reflection.GeneratedProtocolMessageType('PersistentConfiguration', (_message.Message,), { 'DESCRIPTOR' : _PERSISTENTCONFIGURATION, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.PersistentConfiguration) }) _sym_db.RegisterMessage(PersistentConfiguration) MotorCalibration = _reflection.GeneratedProtocolMessageType('MotorCalibration', (_message.Message,), { 'DESCRIPTOR' : _MOTORCALIBRATION, '__module__' : 'smartknob_pb2' # @@protoc_insertion_point(class_scope:PB.MotorCalibration) }) _sym_db.RegisterMessage(MotorCalibration) if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None _FROMSMARTKNOB.fields_by_name['protocol_version']._options = None _FROMSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010' _TOSMARTKNOB.fields_by_name['protocol_version']._options = None _TOSMARTKNOB.fields_by_name['protocol_version']._serialized_options = b'\222?\0028\010' _LOG.fields_by_name['msg']._options = None _LOG.fields_by_name['msg']._serialized_options = b'\222?\003p\377\001' _SMARTKNOBCONFIG.fields_by_name['position_nonce']._options = None _SMARTKNOBCONFIG.fields_by_name['position_nonce']._serialized_options = b'\222?\0028\010' _SMARTKNOBCONFIG.fields_by_name['text']._options = None _SMARTKNOBCONFIG.fields_by_name['text']._serialized_options = b'\222?\002p2' _SMARTKNOBCONFIG.fields_by_name['detent_positions']._options = None _SMARTKNOBCONFIG.fields_by_name['detent_positions']._serialized_options = b'\222?\002\020\005' _FROMSMARTKNOB._serialized_start=38 _FROMSMARTKNOB._serialized_end=192 _TOSMARTKNOB._serialized_start=195 _TOSMARTKNOB._serialized_end=359 _ACK._serialized_start=361 _ACK._serialized_end=381 _LOG._serialized_start=383 _LOG._serialized_end=409 _SMARTKNOBSTATE._serialized_start=411 _SMARTKNOBSTATE._serialized_end=517 _SMARTKNOBCONFIG._serialized_start=520 _SMARTKNOBCONFIG._serialized_end=849 _REQUESTSTATE._serialized_start=851 _REQUESTSTATE._serialized_end=865 _PERSISTENTCONFIGURATION._serialized_start=867 _PERSISTENTCONFIGURATION._serialized_end=946 _MOTORCALIBRATION._serialized_start=948 _MOTORCALIBRATION._serialized_end=1060 # @@protoc_insertion_point(module_scope)