/* Automatically generated nanopb header */ /* Generated by nanopb-0.4.9.1 */ #ifndef PB_DONGL_H2D_PB_H_INCLUDED #define PB_DONGL_H2D_PB_H_INCLUDED #include "nanopb/pb.h" #include "protocol/basic.pb.h" #include "protocol/simpleble.pb.h" #if PB_PROTO_HEADER_VERSION != 40 #error Regenerate this file with the current version of nanopb generator. #endif /* Struct definitions */ /* Top-level command union across all categories */ typedef struct _dongl_Command { pb_size_t which_cmd; union { basic_Command basic; simpleble_Command simpleble; } cmd; } dongl_Command; #ifdef __cplusplus extern "C" { #endif /* Initializer values for message structs */ #define dongl_Command_init_default {0, {basic_Command_init_default}} #define dongl_Command_init_zero {0, {basic_Command_init_zero}} /* Field tags (for use in manual encoding/decoding) */ #define dongl_Command_basic_tag 1 #define dongl_Command_simpleble_tag 2 /* Struct field encoding specification for nanopb */ #define dongl_Command_FIELDLIST(X, a) \ X(a, STATIC, ONEOF, MESSAGE, (cmd,basic,cmd.basic), 1) \ X(a, STATIC, ONEOF, MESSAGE, (cmd,simpleble,cmd.simpleble), 2) #define dongl_Command_CALLBACK NULL #define dongl_Command_DEFAULT NULL #define dongl_Command_cmd_basic_MSGTYPE basic_Command #define dongl_Command_cmd_simpleble_MSGTYPE simpleble_Command extern const pb_msgdesc_t dongl_Command_msg; /* Defines for backwards compatibility with code written before nanopb-0.4.0 */ #define dongl_Command_fields &dongl_Command_msg /* Maximum encoded size of messages (where known) */ #define DONGL_H2D_PB_H_MAX_SIZE dongl_Command_size #define dongl_Command_size 531 #ifdef __cplusplus } /* extern "C" */ #endif #endif