mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-04 19:59:55 +00:00
67 lines
2.1 KiB
C
67 lines
2.1 KiB
C
|
/* 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"
|
||
|
|
||
|
#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;
|
||
|
bool get_radio;
|
||
|
uint32_t get_channel;
|
||
|
};
|
||
|
} 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
|
||
|
#define AdminMessage_get_radio_tag 4
|
||
|
#define AdminMessage_get_channel_tag 5
|
||
|
|
||
|
/* 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) \
|
||
|
X(a, STATIC, ONEOF, BOOL, (variant,get_radio,get_radio), 4) \
|
||
|
X(a, STATIC, ONEOF, UINT32, (variant,get_channel,get_channel), 5)
|
||
|
#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
|
||
|
|
||
|
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) */
|
||
|
#define AdminMessage_size 338
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif
|