1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
/* 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/protobuf-c.h>
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;
};
#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 }
/* 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 */
|