Files
firmware/src/mesh/generated/apponly.pb.h

64 lines
2.5 KiB
C
Raw Normal View History

2020-12-28 13:36:11 +08:00
/* Automatically generated nanopb header */
2022-12-27 12:53:56 +00:00
/* Generated by nanopb-0.4.7 */
2020-12-28 13:36:11 +08:00
#ifndef PB_APPONLY_PB_H_INCLUDED
#define PB_APPONLY_PB_H_INCLUDED
#include <pb.h>
2021-02-27 13:17:18 +08:00
#include "channel.pb.h"
2022-05-30 19:00:01 +00:00
#include "config.pb.h"
2020-12-28 13:36:11 +08:00
#if PB_PROTO_HEADER_VERSION != 40
#error Regenerate this file with the current version of nanopb generator.
#endif
/* Struct definitions */
/* This is the most compact possible representation for a set of channels.
It includes only one PRIMARY channel (which must be first) and
any SECONDARY channels.
No DISABLED channels are included.
This abstraction is used only on the the 'app side' of the world (ie python, javascript and android etc) to show a group of Channels as a (long) URL */
2022-12-27 12:53:56 +00:00
typedef struct _ChannelSet {
2022-05-30 19:00:01 +00:00
/* Channel list with settings */
pb_size_t settings_count;
2022-06-17 08:37:52 -05:00
ChannelSettings settings[8];
2022-05-30 19:00:01 +00:00
/* LoRa config */
bool has_lora_config;
2022-06-17 08:37:52 -05:00
Config_LoRaConfig lora_config;
2021-02-17 13:06:23 +08:00
} ChannelSet;
2020-12-28 13:36:11 +08:00
#ifdef __cplusplus
extern "C" {
#endif
/* Initializer values for message structs */
2022-05-30 19:00:01 +00:00
#define ChannelSet_init_default {0, {ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default, ChannelSettings_init_default}, false, Config_LoRaConfig_init_default}
#define ChannelSet_init_zero {0, {ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero, ChannelSettings_init_zero}, false, Config_LoRaConfig_init_zero}
2020-12-28 13:36:11 +08:00
/* Field tags (for use in manual encoding/decoding) */
2021-02-17 13:06:23 +08:00
#define ChannelSet_settings_tag 1
2022-05-30 19:00:01 +00:00
#define ChannelSet_lora_config_tag 2
2020-12-28 13:36:11 +08:00
/* Struct field encoding specification for nanopb */
2021-02-17 13:06:23 +08:00
#define ChannelSet_FIELDLIST(X, a) \
2022-05-30 19:00:01 +00:00
X(a, STATIC, REPEATED, MESSAGE, settings, 1) \
X(a, STATIC, OPTIONAL, MESSAGE, lora_config, 2)
#define ChannelSet_CALLBACK NULL
2021-02-17 13:06:23 +08:00
#define ChannelSet_DEFAULT NULL
#define ChannelSet_settings_MSGTYPE ChannelSettings
2022-05-30 19:00:01 +00:00
#define ChannelSet_lora_config_MSGTYPE Config_LoRaConfig
2021-02-17 13:06:23 +08:00
extern const pb_msgdesc_t ChannelSet_msg;
2020-12-28 13:36:11 +08:00
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
2021-02-17 13:06:23 +08:00
#define ChannelSet_fields &ChannelSet_msg
2020-12-28 13:36:11 +08:00
/* Maximum encoded size of messages (where known) */
2022-12-06 13:03:26 +00:00
#define ChannelSet_size 584
2020-12-28 13:36:11 +08:00
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif