You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.7 KiB

/* 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