/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.8 */

#ifndef PB_MSP_MOTOR_PB_H_INCLUDED
#define PB_MSP_MOTOR_PB_H_INCLUDED
#include "pb.h"

#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif

/* Struct definitions */
typedef struct _MotorParameters {
    int32_t MotorID;
    int32_t RxIndex;
    int32_t Run_Mode;
    int32_t Current;
    int32_t Target_Current;
    int32_t Velcity;
    int32_t Target_Velcity;
    int32_t Position;
    int32_t Target_Position;
    int32_t ERROR_Flag;
    int32_t Temperature_Motor;
    int32_t Temperature_PCB;
    int32_t AccTime;
    int32_t DecTime;
    int32_t EncoderOffset; /* 53	83	设置位置偏移	int32_t	"设置偏移值和目标位置
（目标位置=编码器位置 - 偏移值）" */
} MotorParameters;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define MotorParameters_init_default             {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
#define MotorParameters_init_zero                {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}

/* Field tags (for use in manual encoding/decoding) */
#define MotorParameters_MotorID_tag              1
#define MotorParameters_RxIndex_tag              2
#define MotorParameters_Run_Mode_tag             3
#define MotorParameters_Current_tag              4
#define MotorParameters_Target_Current_tag       5
#define MotorParameters_Velcity_tag              6
#define MotorParameters_Target_Velcity_tag       7
#define MotorParameters_Position_tag             8
#define MotorParameters_Target_Position_tag      9
#define MotorParameters_ERROR_Flag_tag           10
#define MotorParameters_Temperature_Motor_tag    11
#define MotorParameters_Temperature_PCB_tag      12
#define MotorParameters_AccTime_tag              13
#define MotorParameters_DecTime_tag              14
#define MotorParameters_EncoderOffset_tag        15

/* Struct field encoding specification for nanopb */
#define MotorParameters_FIELDLIST(X, a) \
X(a, STATIC,   SINGULAR, INT32,    MotorID,           1) \
X(a, STATIC,   SINGULAR, INT32,    RxIndex,           2) \
X(a, STATIC,   SINGULAR, INT32,    Run_Mode,          3) \
X(a, STATIC,   SINGULAR, INT32,    Current,           4) \
X(a, STATIC,   SINGULAR, INT32,    Target_Current,    5) \
X(a, STATIC,   SINGULAR, INT32,    Velcity,           6) \
X(a, STATIC,   SINGULAR, INT32,    Target_Velcity,    7) \
X(a, STATIC,   SINGULAR, INT32,    Position,          8) \
X(a, STATIC,   SINGULAR, INT32,    Target_Position,   9) \
X(a, STATIC,   SINGULAR, INT32,    ERROR_Flag,       10) \
X(a, STATIC,   SINGULAR, INT32,    Temperature_Motor,  11) \
X(a, STATIC,   SINGULAR, INT32,    Temperature_PCB,  12) \
X(a, STATIC,   SINGULAR, INT32,    AccTime,          13) \
X(a, STATIC,   SINGULAR, INT32,    DecTime,          14) \
X(a, STATIC,   SINGULAR, INT32,    EncoderOffset,    15)
#define MotorParameters_CALLBACK NULL
#define MotorParameters_DEFAULT NULL

extern const pb_msgdesc_t MotorParameters_msg;

/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define MotorParameters_fields &MotorParameters_msg

/* Maximum encoded size of messages (where known) */
#define MSP_MOTOR_PB_H_MAX_SIZE                  MotorParameters_size
#define MotorParameters_size                     165

#ifdef __cplusplus
} /* extern "C" */
#endif

#endif
