/* Generated by the protocol buffer compiler. DO NOT EDIT! */ /* Generated from: HardwareMotor.proto */ #ifndef PROTOBUF_C_HardwareMotor_2eproto__INCLUDED #define PROTOBUF_C_HardwareMotor_2eproto__INCLUDED #include PROTOBUF_C__BEGIN_DECLS #if PROTOBUF_C_VERSION_NUMBER < 1003000 # error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers. #elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION # error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c. #endif #include "HardwareMotorType.pb-c.h" typedef struct _HardwareMotor HardwareMotor; /* --- enums --- */ /* --- messages --- */ struct _HardwareMotor { ProtobufCMessage base; protobuf_c_boolean has_hardwaremotortype; HardwareMotorType hardwaremotortype; protobuf_c_boolean has_minfrequency; int32_t minfrequency; protobuf_c_boolean has_maxfrequency; int32_t maxfrequency; protobuf_c_boolean has_setmicrostep; int32_t setmicrostep; protobuf_c_boolean has_microstep; int32_t microstep; protobuf_c_boolean has_maxchangeslope; double maxchangeslope; protobuf_c_boolean has_highlengthmicrosecond; double highlengthmicrosecond; protobuf_c_boolean has_speedmaster; protobuf_c_boolean speedmaster; protobuf_c_boolean has_pulseperround; int32_t pulseperround; protobuf_c_boolean has_pulleyradius; double pulleyradius; protobuf_c_boolean has_configword; int32_t configword; protobuf_c_boolean has_directionthreadwize; protobuf_c_boolean directionthreadwize; protobuf_c_boolean has_kvalhold; int32_t kvalhold; protobuf_c_boolean has_kvalrun; int32_t kvalrun; protobuf_c_boolean has_kvalacc; int32_t kvalacc; protobuf_c_boolean has_kvaldec; int32_t kvaldec; protobuf_c_boolean has_overcurrentthreshold; int32_t overcurrentthreshold; protobuf_c_boolean has_stallthreshold; int32_t stallthreshold; protobuf_c_boolean has_thermalcompensationfactor; int32_t thermalcompensationfactor; protobuf_c_boolean has_lowspeedoptimization; protobuf_c_boolean lowspeedoptimization; protobuf_c_boolean has_stslp; int32_t stslp; protobuf_c_boolean has_intspd; int32_t intspd; protobuf_c_boolean has_fnslpacc; int32_t fnslpacc; protobuf_c_boolean has_fnslpdec; int32_t fnslpdec; protobuf_c_boolean has_fsspd; int32_t fsspd; protobuf_c_boolean has_gatecfg1; int32_t gatecfg1; protobuf_c_boolean has_gatecfg2; int32_t gatecfg2; protobuf_c_boolean has_tvalhold; int32_t tvalhold; protobuf_c_boolean has_tvalrun; int32_t tvalrun; protobuf_c_boolean has_tvalacc; int32_t tvalacc; protobuf_c_boolean has_tvaldec; int32_t tvaldec; protobuf_c_boolean has_tfast; int32_t tfast; protobuf_c_boolean has_tonmin; int32_t tonmin; protobuf_c_boolean has_toffmin; int32_t toffmin; protobuf_c_boolean has_p01configword; int32_t p01configword; }; #define HARDWARE_MOTOR__INIT \ { PROTOBUF_C_MESSAGE_INIT (&hardware_motor__descriptor) \ , 0, HARDWARE_MOTOR_TYPE__MOTO_DH_CLEANHEAD, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } /* HardwareMotor methods */ void hardware_motor__init (HardwareMotor *message); size_t hardware_motor__get_packed_size (const HardwareMotor *message); size_t hardware_motor__pack (const HardwareMotor *message, uint8_t *out); size_t hardware_motor__pack_to_buffer (const HardwareMotor *message, ProtobufCBuffer *buffer); HardwareMotor * hardware_motor__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void hardware_motor__free_unpacked (HardwareMotor *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*HardwareMotor_Closure) (const HardwareMotor *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor hardware_motor__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_HardwareMotor_2eproto__INCLUDED */