/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.8 */ #ifndef PB_BSP_GROUND_MANAGEMENT_PB_H_INCLUDED #define PB_BSP_GROUND_MANAGEMENT_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 */ /* 从机地址0x34; */ typedef struct _ground_management_struct { int32_t K1; /* 寄存器0:K1继电器,=0断开,=1吸合 */ int32_t K2; /* 寄存器1:K2继电器 */ int32_t K3; /* 寄存器2:K3继电器 */ int32_t K4; /* 寄存器3:K4继电器 */ int32_t K5_Default; /* 寄存器4:K5继电器的默认状态,超时寄存器5后,继电器取反(需要周期性收到其有效的modbus数据包) */ int32_t MaualControlPower; /* 手动控制开关 */ int32_t MaualPowerState; /* 手动控制开关 */ int32_t Time_Out_Period; /* 寄存器5:超时时间,毫秒 */ int32_t DMK_Speed; /* 德玛克电机速度 */ int32_t DMK_WorkState; /* 0停止 1正转 2反转 */ int32_t Save_To_Flash; /* 寄存器9:设置为55时,把当前寄存器输入存入flash,写入成功自动变成1 */ int32_t Read_Time_Out_Period; /* 从寄存器中读取的时间 */ } ground_management_struct; #ifdef __cplusplus extern "C" { #endif /* Initializer values for message structs */ #define ground_management_struct_init_default {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} #define ground_management_struct_init_zero {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0} /* Field tags (for use in manual encoding/decoding) */ #define ground_management_struct_K1_tag 1 #define ground_management_struct_K2_tag 2 #define ground_management_struct_K3_tag 3 #define ground_management_struct_K4_tag 4 #define ground_management_struct_K5_Default_tag 5 #define ground_management_struct_MaualControlPower_tag 6 #define ground_management_struct_MaualPowerState_tag 7 #define ground_management_struct_Time_Out_Period_tag 8 #define ground_management_struct_DMK_Speed_tag 9 #define ground_management_struct_DMK_WorkState_tag 10 #define ground_management_struct_Save_To_Flash_tag 11 #define ground_management_struct_Read_Time_Out_Period_tag 12 /* Struct field encoding specification for nanopb */ #define ground_management_struct_FIELDLIST(X, a) \ X(a, STATIC, SINGULAR, INT32, K1, 1) \ X(a, STATIC, SINGULAR, INT32, K2, 2) \ X(a, STATIC, SINGULAR, INT32, K3, 3) \ X(a, STATIC, SINGULAR, INT32, K4, 4) \ X(a, STATIC, SINGULAR, INT32, K5_Default, 5) \ X(a, STATIC, SINGULAR, INT32, MaualControlPower, 6) \ X(a, STATIC, SINGULAR, INT32, MaualPowerState, 7) \ X(a, STATIC, SINGULAR, INT32, Time_Out_Period, 8) \ X(a, STATIC, SINGULAR, INT32, DMK_Speed, 9) \ X(a, STATIC, SINGULAR, INT32, DMK_WorkState, 10) \ X(a, STATIC, SINGULAR, INT32, Save_To_Flash, 11) \ X(a, STATIC, SINGULAR, INT32, Read_Time_Out_Period, 12) #define ground_management_struct_CALLBACK NULL #define ground_management_struct_DEFAULT NULL extern const pb_msgdesc_t ground_management_struct_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define ground_management_struct_fields &ground_management_struct_msg /* Maximum encoded size of messages (where known) */ #define BSP_GROUND_MANAGEMENT_PB_H_MAX_SIZE ground_management_struct_size #define ground_management_struct_size 132 #ifdef __cplusplus } /* extern "C" */ #endif #endif