2021-02-25 12:36:37 +00:00
|
|
|
/* Automatically generated nanopb header */
|
|
|
|
/* Generated by nanopb-0.4.4 */
|
|
|
|
|
|
|
|
#ifndef PB_ADMIN_PB_H_INCLUDED
|
|
|
|
#define PB_ADMIN_PB_H_INCLUDED
|
|
|
|
#include <pb.h>
|
|
|
|
#include "mesh.pb.h"
|
2021-02-27 05:17:18 +00:00
|
|
|
#include "radioconfig.pb.h"
|
|
|
|
#include "channel.pb.h"
|
2021-02-25 12:36:37 +00:00
|
|
|
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Struct definitions */
|
|
|
|
typedef struct _AdminMessage {
|
|
|
|
pb_size_t which_variant;
|
|
|
|
union {
|
|
|
|
RadioConfig set_radio;
|
|
|
|
User set_owner;
|
|
|
|
Channel set_channel;
|
2021-02-26 07:34:00 +00:00
|
|
|
bool get_radio_request;
|
|
|
|
RadioConfig get_radio_response;
|
|
|
|
uint32_t get_channel_request;
|
|
|
|
Channel get_channel_response;
|
2021-03-11 05:02:00 +00:00
|
|
|
bool confirm_set_channel;
|
|
|
|
bool confirm_set_radio;
|
2021-03-18 11:09:31 +00:00
|
|
|
bool exit_simulator;
|
2021-02-25 12:36:37 +00:00
|
|
|
};
|
|
|
|
} AdminMessage;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Initializer values for message structs */
|
|
|
|
#define AdminMessage_init_default {0, {RadioConfig_init_default}}
|
|
|
|
#define AdminMessage_init_zero {0, {RadioConfig_init_zero}}
|
|
|
|
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
|
|
#define AdminMessage_set_radio_tag 1
|
|
|
|
#define AdminMessage_set_owner_tag 2
|
|
|
|
#define AdminMessage_set_channel_tag 3
|
2021-02-26 07:34:00 +00:00
|
|
|
#define AdminMessage_get_radio_request_tag 4
|
|
|
|
#define AdminMessage_get_radio_response_tag 5
|
|
|
|
#define AdminMessage_get_channel_request_tag 6
|
|
|
|
#define AdminMessage_get_channel_response_tag 7
|
2021-03-11 05:02:00 +00:00
|
|
|
#define AdminMessage_confirm_set_channel_tag 32
|
|
|
|
#define AdminMessage_confirm_set_radio_tag 33
|
2021-03-18 11:09:31 +00:00
|
|
|
#define AdminMessage_exit_simulator_tag 34
|
2021-02-25 12:36:37 +00:00
|
|
|
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
|
|
#define AdminMessage_FIELDLIST(X, a) \
|
|
|
|
X(a, STATIC, ONEOF, MESSAGE, (variant,set_radio,set_radio), 1) \
|
|
|
|
X(a, STATIC, ONEOF, MESSAGE, (variant,set_owner,set_owner), 2) \
|
|
|
|
X(a, STATIC, ONEOF, MESSAGE, (variant,set_channel,set_channel), 3) \
|
2021-02-26 07:34:00 +00:00
|
|
|
X(a, STATIC, ONEOF, BOOL, (variant,get_radio_request,get_radio_request), 4) \
|
|
|
|
X(a, STATIC, ONEOF, MESSAGE, (variant,get_radio_response,get_radio_response), 5) \
|
|
|
|
X(a, STATIC, ONEOF, UINT32, (variant,get_channel_request,get_channel_request), 6) \
|
2021-03-11 05:02:00 +00:00
|
|
|
X(a, STATIC, ONEOF, MESSAGE, (variant,get_channel_response,get_channel_response), 7) \
|
|
|
|
X(a, STATIC, ONEOF, BOOL, (variant,confirm_set_channel,confirm_set_channel), 32) \
|
2021-03-18 11:09:31 +00:00
|
|
|
X(a, STATIC, ONEOF, BOOL, (variant,confirm_set_radio,confirm_set_radio), 33) \
|
2021-03-30 00:08:56 +00:00
|
|
|
X(a, STATIC, ONEOF, BOOL, (variant,exit_simulator,exit_simulator), 34)
|
2021-02-25 12:36:37 +00:00
|
|
|
#define AdminMessage_CALLBACK NULL
|
|
|
|
#define AdminMessage_DEFAULT NULL
|
|
|
|
#define AdminMessage_variant_set_radio_MSGTYPE RadioConfig
|
|
|
|
#define AdminMessage_variant_set_owner_MSGTYPE User
|
|
|
|
#define AdminMessage_variant_set_channel_MSGTYPE Channel
|
2021-02-26 07:34:00 +00:00
|
|
|
#define AdminMessage_variant_get_radio_response_MSGTYPE RadioConfig
|
|
|
|
#define AdminMessage_variant_get_channel_response_MSGTYPE Channel
|
2021-02-25 12:36:37 +00:00
|
|
|
|
|
|
|
extern const pb_msgdesc_t AdminMessage_msg;
|
|
|
|
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
|
|
#define AdminMessage_fields &AdminMessage_msg
|
|
|
|
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
2021-03-30 00:08:56 +00:00
|
|
|
#define AdminMessage_size 354
|
2021-02-25 12:36:37 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern "C" */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|