/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: StubL6470DriverRequest.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "StubL6470DriverRequest.pb-c.h" void stub_l6470_driver_request__init (StubL6470DriverRequest *message) { static const StubL6470DriverRequest init_value = STUB_L6470_DRIVER_REQUEST__INIT; *message = init_value; } size_t stub_l6470_driver_request__get_packed_size (const StubL6470DriverRequest *message) { assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t stub_l6470_driver_request__pack (const StubL6470DriverRequest *message, uint8_t *out) { assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t stub_l6470_driver_request__pack_to_buffer (const StubL6470DriverRequest *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StubL6470DriverRequest * stub_l6470_driver_request__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StubL6470DriverRequest *) protobuf_c_message_unpack (&stub_l6470_driver_request__descriptor, allocator, len, data); } void stub_l6470_driver_request__free_unpacked (StubL6470DriverRequest *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &stub_l6470_driver_request__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor stub_l6470_driver_request__field_descriptors[20] = { { "Run_Value", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_run_value), offsetof(StubL6470DriverRequest, run_value), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Mov_Value", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_mov_value), offsetof(StubL6470DriverRequest, mov_value), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Direction", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_direction), offsetof(StubL6470DriverRequest, direction), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Time_2_Change_Direction", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_time_2_change_direction), offsetof(StubL6470DriverRequest, time_2_change_direction), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Display_Tx_ON_LCD", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_display_tx_on_lcd), offsetof(StubL6470DriverRequest, display_tx_on_lcd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Display_Rx_on_LCD", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_display_rx_on_lcd), offsetof(StubL6470DriverRequest, display_rx_on_lcd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Init_MicroStep", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_init_microstep), offsetof(StubL6470DriverRequest, init_microstep), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Init_Acc", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_init_acc), offsetof(StubL6470DriverRequest, init_acc), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "Init_Dec", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_init_dec), offsetof(StubL6470DriverRequest, init_dec), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestBool_1", 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_testbool_1), offsetof(StubL6470DriverRequest, testbool_1), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestBool_2", 11, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_testbool_2), offsetof(StubL6470DriverRequest, testbool_2), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestBool_3", 12, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_testbool_3), offsetof(StubL6470DriverRequest, testbool_3), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestBool_4", 13, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_testbool_4), offsetof(StubL6470DriverRequest, testbool_4), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestBool_5", 14, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubL6470DriverRequest, has_testbool_5), offsetof(StubL6470DriverRequest, testbool_5), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_1", 15, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_1), offsetof(StubL6470DriverRequest, testuint32_1), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_2", 16, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_2), offsetof(StubL6470DriverRequest, testuint32_2), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_3", 17, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_3), offsetof(StubL6470DriverRequest, testuint32_3), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_4", 18, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_4), offsetof(StubL6470DriverRequest, testuint32_4), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_5", 19, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_5), offsetof(StubL6470DriverRequest, testuint32_5), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "TestUint32_6", 20, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubL6470DriverRequest, has_testuint32_6), offsetof(StubL6470DriverRequest, testuint32_6), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned stub_l6470_driver_request__field_indices_by_name[] = { 2, /* field[2] = Direction */ 5, /* field[5] = Display_Rx_on_LCD */ 4, /* field[4] = Display_Tx_ON_LCD */ 7, /* field[7] = Init_Acc */ 8, /* field[8] = Init_Dec */ 6, /* field[6] = Init_MicroStep */ 1, /* field[1] = Mov_Value */ 0, /* field[0] = Run_Value */ 9, /* field[9] = TestBool_1 */ 10, /* field[10] = TestBool_2 */ 11, /* field[11] = TestBool_3 */ 12, /* field[12] = TestBool_4 */ 13, /* field[13] = TestBool_5 */ 14, /* field[14] = TestUint32_1 */ 15, /* field[15] = TestUint32_2 */ 16, /* field[16] = TestUint32_3 */ 17, /* field[17] = TestUint32_4 */ 18, /* field[18] = TestUint32_5 */ 19, /* field[19] = TestUint32_6 */ 3, /* field[3] = Time_2_Change_Direction */ }; static const ProtobufCIntRange stub_l6470_driver_request__number_ranges[1 + 1] = { { 1, 0 }, { 0, 20 } }; const ProtobufCMessageDescriptor stub_l6470_driver_request__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "StubL6470DriverRequest", "StubL6470DriverRequest", "StubL6470DriverRequest", "", sizeof(StubL6470DriverRequest), 20, stub_l6470_driver_request__field_descriptors, stub_l6470_driver_request__field_indices_by_name, 1, stub_l6470_driver_request__number_ranges, (ProtobufCMessageInit) stub_l6470_driver_request__init, NULL,NULL,NULL /* reserved[123] */ };