/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.8 */ #ifndef PB_BSP_STRAIN_GAUGE_PB_H_INCLUDED #define PB_BSP_STRAIN_GAUGE_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 */ /* 从机地址0x32; */ typedef struct _Strain_Gauge_Struct { int32_t MotorControl; /* 寄存器0: 电机控制,=0 停止,=1 前进,=2 后退 */ int32_t Pressure; /* 寄存器1: 输出的传感器最终数据 */ int32_t HX711_K; /* 寄存器2 HX711_K */ int32_t HX711_D; /* 寄存器3 HX711_D */ int32_t Save; /* 寄存器9: 设置为55时,把当前寄存器输入存入flash,写入成功自动变成1 */ } Strain_Gauge_Struct; #ifdef __cplusplus extern "C" { #endif /* Initializer values for message structs */ #define Strain_Gauge_Struct_init_default {0, 0, 0, 0, 0} #define Strain_Gauge_Struct_init_zero {0, 0, 0, 0, 0} /* Field tags (for use in manual encoding/decoding) */ #define Strain_Gauge_Struct_MotorControl_tag 1 #define Strain_Gauge_Struct_Pressure_tag 2 #define Strain_Gauge_Struct_HX711_K_tag 3 #define Strain_Gauge_Struct_HX711_D_tag 4 #define Strain_Gauge_Struct_Save_tag 5 /* Struct field encoding specification for nanopb */ #define Strain_Gauge_Struct_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, INT32, MotorControl, 1) \ X(a, STATIC, SINGULAR, INT32, Pressure, 2) \ X(a, STATIC, SINGULAR, INT32, HX711_K, 3) \ X(a, STATIC, SINGULAR, INT32, HX711_D, 4) \ X(a, STATIC, SINGULAR, INT32, Save, 5) #define Strain_Gauge_Struct_CALLBACK NULL #define Strain_Gauge_Struct_DEFAULT NULL extern const pb_msgdesc_t Strain_Gauge_Struct_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define Strain_Gauge_Struct_fields &Strain_Gauge_Struct_msg /* Maximum encoded size of messages (where known) */ #define BSP_STRAIN_GAUGE_PB_H_MAX_SIZE Strain_Gauge_Struct_size #define Strain_Gauge_Struct_size 55 #ifdef __cplusplus } /* extern "C" */ #endif #endif