/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.8 */ #ifndef PB_BSP_IV_PB_H_INCLUDED #define PB_BSP_IV_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 _IV_struct_define { int32_t CurrentAngle; /* 单位0.01° */ int32_t RobotMoveSpeed; /* 单位m/min 目标速度 */ int32_t SBUS_State; /* 0断开 1连接 */ int32_t SystemError; /* 硬件通讯错误及按键未初始化错误 */ int32_t Left_Motor_Err; /* 左轮电机报警 */ int32_t Right_Motor_Err; /* 右轮电机报警 */ int32_t IsWorking; /* 机器人正在执行运动指令 */ int32_t CurrentSpeed; /* 当前速度 */ int64_t TimeStamp; /* 当前时间戳 */ int32_t IsRestart; /* 是否重启 */ } IV_struct_define; #ifdef __cplusplus extern "C" { #endif /* Initializer values for message structs */ #define IV_struct_define_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} #define IV_struct_define_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0} /* Field tags (for use in manual encoding/decoding) */ #define IV_struct_define_CurrentAngle_tag 1 #define IV_struct_define_RobotMoveSpeed_tag 2 #define IV_struct_define_SBUS_State_tag 3 #define IV_struct_define_SystemError_tag 4 #define IV_struct_define_Left_Motor_Err_tag 5 #define IV_struct_define_Right_Motor_Err_tag 6 #define IV_struct_define_IsWorking_tag 7 #define IV_struct_define_CurrentSpeed_tag 8 #define IV_struct_define_TimeStamp_tag 9 #define IV_struct_define_IsRestart_tag 10 /* Struct field encoding specification for nanopb */ #define IV_struct_define_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, INT32, CurrentAngle, 1) \ X(a, STATIC, SINGULAR, INT32, RobotMoveSpeed, 2) \ X(a, STATIC, SINGULAR, INT32, SBUS_State, 3) \ X(a, STATIC, SINGULAR, INT32, SystemError, 4) \ X(a, STATIC, SINGULAR, INT32, Left_Motor_Err, 5) \ X(a, STATIC, SINGULAR, INT32, Right_Motor_Err, 6) \ X(a, STATIC, SINGULAR, INT32, IsWorking, 7) \ X(a, STATIC, SINGULAR, INT32, CurrentSpeed, 8) \ X(a, STATIC, SINGULAR, INT64, TimeStamp, 9) \ X(a, STATIC, SINGULAR, INT32, IsRestart, 10) #define IV_struct_define_CALLBACK NULL #define IV_struct_define_DEFAULT NULL extern const pb_msgdesc_t IV_struct_define_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define IV_struct_define_fields &IV_struct_define_msg /* Maximum encoded size of messages (where known) */ #define BSP_IV_PB_H_MAX_SIZE IV_struct_define_size #define IV_struct_define_size 110 #ifdef __cplusplus } /* extern "C" */ #endif #endif