/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: StubMotorStatusResponse.proto */ /* Do not generate deprecated warnings for self */ #ifndef PROTOBUF_C__NO_DEPRECATED #define PROTOBUF_C__NO_DEPRECATED #endif #include "StubMotorStatusResponse.pb-c.h" void stub_motor_status_response__init (StubMotorStatusResponse *message) { static const StubMotorStatusResponse init_value = STUB_MOTOR_STATUS_RESPONSE__INIT; *message = init_value; } size_t stub_motor_status_response__get_packed_size (const StubMotorStatusResponse *message) { assert(message->base.descriptor == &stub_motor_status_response__descriptor); return protobuf_c_message_get_packed_size ((const ProtobufCMessage*)(message)); } size_t stub_motor_status_response__pack (const StubMotorStatusResponse *message, uint8_t *out) { assert(message->base.descriptor == &stub_motor_status_response__descriptor); return protobuf_c_message_pack ((const ProtobufCMessage*)message, out); } size_t stub_motor_status_response__pack_to_buffer (const StubMotorStatusResponse *message, ProtobufCBuffer *buffer) { assert(message->base.descriptor == &stub_motor_status_response__descriptor); return protobuf_c_message_pack_to_buffer ((const ProtobufCMessage*)message, buffer); } StubMotorStatusResponse * stub_motor_status_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data) { return (StubMotorStatusResponse *) protobuf_c_message_unpack (&stub_motor_status_response__descriptor, allocator, len, data); } void stub_motor_status_response__free_unpacked (StubMotorStatusResponse *message, ProtobufCAllocator *allocator) { if(!message) return; assert(message->base.descriptor == &stub_motor_status_response__descriptor); protobuf_c_message_free_unpacked ((ProtobufCMessage*)message, allocator); } static const ProtobufCFieldDescriptor stub_motor_status_response__field_descriptors[16] = { { "", 1, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubMotorStatusResponse, has_motor_id), offsetof(StubMotorStatusResponse, motor_id), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 2, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_sck_mod), offsetof(StubMotorStatusResponse, sck_mod), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 3, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_step_loss_b), offsetof(StubMotorStatusResponse, step_loss_b), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 4, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_step_loss_a), offsetof(StubMotorStatusResponse, step_loss_a), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 5, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_ocd), offsetof(StubMotorStatusResponse, ocd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 6, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_th_sd), offsetof(StubMotorStatusResponse, th_sd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 7, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_th_wrn), offsetof(StubMotorStatusResponse, th_wrn), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 8, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_uvlo), offsetof(StubMotorStatusResponse, uvlo), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 9, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_wrong_cmd), offsetof(StubMotorStatusResponse, wrong_cmd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 10, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_notperf_cmd), offsetof(StubMotorStatusResponse, notperf_cmd), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 11, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_UINT32, offsetof(StubMotorStatusResponse, has_mot_status), offsetof(StubMotorStatusResponse, mot_status), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 12, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_dir), offsetof(StubMotorStatusResponse, dir), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 13, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_sw_evn), offsetof(StubMotorStatusResponse, sw_evn), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 14, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_sw_f), offsetof(StubMotorStatusResponse, sw_f), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 15, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_busy), offsetof(StubMotorStatusResponse, busy), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, { "", 16, PROTOBUF_C_LABEL_OPTIONAL, PROTOBUF_C_TYPE_BOOL, offsetof(StubMotorStatusResponse, has_hiz), offsetof(StubMotorStatusResponse, hiz), NULL, NULL, 0, /* flags */ 0,NULL,NULL /* reserved1,reserved2, etc */ }, }; static const unsigned stub_motor_status_response__field_indices_by_name[] = { 14, /* field[14] = BUSY */ 11, /* field[11] = DIR */ 15, /* field[15] = HiZ */ 10, /* field[10] = MOT_STATUS */ 0, /* field[0] = Motor_ID */ 9, /* field[9] = NOTPERF_CMD */ 4, /* field[4] = OCD */ 1, /* field[1] = SCK_MOD */ 3, /* field[3] = STEP_LOSS_A */ 2, /* field[2] = STEP_LOSS_B */ 12, /* field[12] = SW_EVN */ 13, /* field[13] = SW_F */ 5, /* field[5] = TH_SD */ 6, /* field[6] = TH_WRN */ 7, /* field[7] = UVLO */ 8, /* field[8] = WRONG_CMD */ }; static const ProtobufCIntRange stub_motor_status_response__number_ranges[1 + 1] = { { 1, 0 }, { 0, 16 } }; const ProtobufCMessageDescriptor stub_motor_status_response__descriptor = { PROTOBUF_C__MESSAGE_DESCRIPTOR_MAGIC, "", "", "", "", sizeof(StubMotorStatusResponse), 16, stub_motor_status_response__field_descriptors, stub_motor_status_response__field_indices_by_name, 1, stub_motor_status_response__number_ranges, (ProtobufCMessageInit) stub_motor_status_response__init, NULL,NULL,NULL /* reserved[123] */ };