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

#ifndef PB_BSP_RECMD_PB_H_INCLUDED
#define PB_BSP_RECMD_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 */
/* this message is used for the  reply the command */
typedef struct _ReCmd {
    int32_t CommadNum;
    /* 定义 1 上位机获取默认CV值
定义 2 下位机返回CV值
定义 3 上位机设定CV值
定义 4 上位机设定Trace等级值，无返回
定义 5 下位机上传位置点数据
定义 6 上位机设定编码器角度值为0
定义 7 上位机获取拟合点
定义 8 上位机获取位置点
定义 9 上位机向下位机下发程序 此时，Parameter0 下发的程序起始位，Parameter0 是校验位
Buff_Data_Length 是下发的字节数， */
    int32_t Parameter0;
    int32_t Parameter1;
    int32_t Parameter2;
    int32_t Parameter3;
    int32_t Parameter4;
    int32_t Buff_Data_Length;
    pb_byte_t Buff_Data[500];
} ReCmd;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define ReCmd_init_default                       {0, 0, 0, 0, 0, 0, 0, {0}}
#define ReCmd_init_zero                          {0, 0, 0, 0, 0, 0, 0, {0}}

/* Field tags (for use in manual encoding/decoding) */
#define ReCmd_CommadNum_tag                      1
#define ReCmd_Parameter0_tag                     2
#define ReCmd_Parameter1_tag                     3
#define ReCmd_Parameter2_tag                     4
#define ReCmd_Parameter3_tag                     5
#define ReCmd_Parameter4_tag                     6
#define ReCmd_Buff_Data_Length_tag               7
#define ReCmd_Buff_Data_tag                      8

/* Struct field encoding specification for nanopb */
#define ReCmd_FIELDLIST(X, a) \
X(a, STATIC,   SINGULAR, INT32,    CommadNum,         1) \
X(a, STATIC,   SINGULAR, INT32,    Parameter0,        2) \
X(a, STATIC,   SINGULAR, INT32,    Parameter1,        3) \
X(a, STATIC,   SINGULAR, INT32,    Parameter2,        4) \
X(a, STATIC,   SINGULAR, INT32,    Parameter3,        5) \
X(a, STATIC,   SINGULAR, INT32,    Parameter4,        6) \
X(a, STATIC,   SINGULAR, INT32,    Buff_Data_Length,   7) \
X(a, STATIC,   SINGULAR, FIXED_LENGTH_BYTES, Buff_Data,         8)
#define ReCmd_CALLBACK NULL
#define ReCmd_DEFAULT NULL

extern const pb_msgdesc_t ReCmd_msg;

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

/* Maximum encoded size of messages (where known) */
#define BSP_RECMD_PB_H_MAX_SIZE                  ReCmd_size
#define ReCmd_size                               580

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

#endif
