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

#ifndef PB_BSP_CMD_PB_H_INCLUDED
#define PB_BSP_CMD_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 computer to send command */
typedef struct _Cmd {
    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[512];
} Cmd;


#ifdef __cplusplus
extern "C" {
#endif

/* Initializer values for message structs */
#define Cmd_init_default                         {0, 0, 0, 0, 0, 0, 0, {0}}
#define Cmd_init_zero                            {0, 0, 0, 0, 0, 0, 0, {0}}

/* Field tags (for use in manual encoding/decoding) */
#define Cmd_CommadNum_tag                        1
#define Cmd_Parameter0_tag                       2
#define Cmd_Parameter1_tag                       3
#define Cmd_Parameter2_tag                       4
#define Cmd_Parameter3_tag                       5
#define Cmd_Parameter4_tag                       6
#define Cmd_Buff_Data_Length_tag                 7
#define Cmd_Buff_Data_tag                        8

/* Struct field encoding specification for nanopb */
#define Cmd_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 Cmd_CALLBACK NULL
#define Cmd_DEFAULT NULL

extern const pb_msgdesc_t Cmd_msg;

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

/* Maximum encoded size of messages (where known) */
#define BSP_CMD_PB_H_MAX_SIZE                    Cmd_size
#define Cmd_size                                 592

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

#endif
