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.
129 lines
5.4 KiB
129 lines
5.4 KiB
1 week ago
|
/* Automatically generated nanopb header */
|
||
|
/* Generated by nanopb-0.4.8 */
|
||
|
|
||
|
#ifndef PB_BSP_GV_PB_H_INCLUDED
|
||
|
#define PB_BSP_GV_PB_H_INCLUDED
|
||
|
#include "pb.h"
|
||
|
#include "msp_U7.pb.h"
|
||
|
#include "msp_Motor.pb.h"
|
||
|
#include "msp_ZQ_MotorParameters.pb.h"
|
||
|
#include "msp_TL720D.pb.h"
|
||
|
#include "bsp_Error.pb.h"
|
||
|
#include "bsp_PV.pb.h"
|
||
|
#include "msp_UltrasonicParameters.pb.h"
|
||
|
#include "bsp_IO.pb.h"
|
||
|
|
||
|
#if PB_PROTO_HEADER_VERSION != 40
|
||
|
#error Regenerate this file with the current version of nanopb generator.
|
||
|
#endif
|
||
|
|
||
|
/* Struct definitions */
|
||
|
typedef struct _GV_struct_define {
|
||
|
/* 洗舱项目 */
|
||
|
bool has_PV;
|
||
|
PV_struct_define PV; /* 用户配置数据 */
|
||
|
bool has_LeftFrontMotor;
|
||
|
MotorParameters LeftFrontMotor;
|
||
|
bool has_RightFrontMotor;
|
||
|
MotorParameters RightFrontMotor;
|
||
|
bool has_U7_Key;
|
||
|
SP_MSP_U7_Button U7_Key;
|
||
|
int32_t Move_Speed;
|
||
|
bool has_SystemErrorData;
|
||
|
ErrorData SystemErrorData;
|
||
|
bool has_Robot_Angle;
|
||
|
MSP_TL720DParameters Robot_Angle; /* 机器人角度 */
|
||
|
double Left_Compensation;
|
||
|
double Right_Compensation;
|
||
|
int32_t AuTo_Flag;
|
||
|
int32_t Chg_Flag;
|
||
|
int32_t Robot_AutoSpeed;
|
||
|
int32_t Robot_ManualSpeed;
|
||
|
int32_t Robot_ChgLength;
|
||
|
int32_t Robot_ForceValue;
|
||
|
int32_t Robot_DynamometerValue;
|
||
|
int32_t Robot_PaintThickness;
|
||
|
int32_t Robot_Speed_mpm;
|
||
|
bool has_Robot_Ultrasonic;
|
||
|
MSP_UltrasonicParameters Robot_Ultrasonic;
|
||
|
int32_t Emergency;
|
||
|
} GV_struct_define;
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/* Initializer values for message structs */
|
||
|
#define GV_struct_define_init_default {false, PV_struct_define_init_default, false, MotorParameters_init_default, false, MotorParameters_init_default, false, SP_MSP_U7_Button_init_default, 0, false, ErrorData_init_default, false, MSP_TL720DParameters_init_default, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, MSP_UltrasonicParameters_init_default, 0}
|
||
|
#define GV_struct_define_init_zero {false, PV_struct_define_init_zero, false, MotorParameters_init_zero, false, MotorParameters_init_zero, false, SP_MSP_U7_Button_init_zero, 0, false, ErrorData_init_zero, false, MSP_TL720DParameters_init_zero, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, MSP_UltrasonicParameters_init_zero, 0}
|
||
|
|
||
|
/* Field tags (for use in manual encoding/decoding) */
|
||
|
#define GV_struct_define_PV_tag 1
|
||
|
#define GV_struct_define_LeftFrontMotor_tag 2
|
||
|
#define GV_struct_define_RightFrontMotor_tag 3
|
||
|
#define GV_struct_define_U7_Key_tag 4
|
||
|
#define GV_struct_define_Move_Speed_tag 5
|
||
|
#define GV_struct_define_SystemErrorData_tag 6
|
||
|
#define GV_struct_define_Robot_Angle_tag 7
|
||
|
#define GV_struct_define_Left_Compensation_tag 8
|
||
|
#define GV_struct_define_Right_Compensation_tag 9
|
||
|
#define GV_struct_define_AuTo_Flag_tag 10
|
||
|
#define GV_struct_define_Chg_Flag_tag 11
|
||
|
#define GV_struct_define_Robot_AutoSpeed_tag 12
|
||
|
#define GV_struct_define_Robot_ManualSpeed_tag 13
|
||
|
#define GV_struct_define_Robot_ChgLength_tag 14
|
||
|
#define GV_struct_define_Robot_ForceValue_tag 15
|
||
|
#define GV_struct_define_Robot_DynamometerValue_tag 16
|
||
|
#define GV_struct_define_Robot_PaintThickness_tag 17
|
||
|
#define GV_struct_define_Robot_Speed_mpm_tag 18
|
||
|
#define GV_struct_define_Robot_Ultrasonic_tag 19
|
||
|
#define GV_struct_define_Emergency_tag 21
|
||
|
|
||
|
/* Struct field encoding specification for nanopb */
|
||
|
#define GV_struct_define_FIELDLIST(X, a) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, PV, 1) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, LeftFrontMotor, 2) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, RightFrontMotor, 3) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, U7_Key, 4) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Move_Speed, 5) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, SystemErrorData, 6) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, Robot_Angle, 7) \
|
||
|
X(a, STATIC, SINGULAR, DOUBLE, Left_Compensation, 8) \
|
||
|
X(a, STATIC, SINGULAR, DOUBLE, Right_Compensation, 9) \
|
||
|
X(a, STATIC, SINGULAR, INT32, AuTo_Flag, 10) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Chg_Flag, 11) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_AutoSpeed, 12) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_ManualSpeed, 13) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_ChgLength, 14) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_ForceValue, 15) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_DynamometerValue, 16) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_PaintThickness, 17) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Robot_Speed_mpm, 18) \
|
||
|
X(a, STATIC, OPTIONAL, MESSAGE, Robot_Ultrasonic, 19) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Emergency, 21)
|
||
|
#define GV_struct_define_CALLBACK NULL
|
||
|
#define GV_struct_define_DEFAULT NULL
|
||
|
#define GV_struct_define_PV_MSGTYPE PV_struct_define
|
||
|
#define GV_struct_define_LeftFrontMotor_MSGTYPE MotorParameters
|
||
|
#define GV_struct_define_RightFrontMotor_MSGTYPE MotorParameters
|
||
|
#define GV_struct_define_U7_Key_MSGTYPE SP_MSP_U7_Button
|
||
|
#define GV_struct_define_SystemErrorData_MSGTYPE ErrorData
|
||
|
#define GV_struct_define_Robot_Angle_MSGTYPE MSP_TL720DParameters
|
||
|
#define GV_struct_define_Robot_Ultrasonic_MSGTYPE MSP_UltrasonicParameters
|
||
|
|
||
|
extern const pb_msgdesc_t GV_struct_define_msg;
|
||
|
|
||
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
||
|
#define GV_struct_define_fields &GV_struct_define_msg
|
||
|
|
||
|
/* Maximum encoded size of messages (where known) */
|
||
|
#define BSP_GV_PB_H_MAX_SIZE GV_struct_define_size
|
||
|
#define GV_struct_define_size 1087
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif
|