mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-11 07:01:25 +00:00
70 lines
2.3 KiB
C
70 lines
2.3 KiB
C
/* Automatically generated nanopb header */
|
|
/* Generated by nanopb-0.4.7 */
|
|
|
|
#ifndef PB_DEVICE_METADATA_PB_H_INCLUDED
|
|
#define PB_DEVICE_METADATA_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 */
|
|
/* Device metadata response */
|
|
typedef struct _DeviceMetadata {
|
|
/* Device firmware version string */
|
|
char firmware_version[18];
|
|
/* Device state version */
|
|
uint32_t device_state_version;
|
|
/* Indicates whether the device can shutdown CPU natively or via power management chip */
|
|
bool canShutdown;
|
|
/* Indicates that the device has native wifi capability */
|
|
bool hasWifi;
|
|
/* Indicates that the device has native bluetooth capability */
|
|
bool hasBluetooth;
|
|
/* Indicates that the device has an ethernet peripheral */
|
|
bool hasEthernet;
|
|
} DeviceMetadata;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initializer values for message structs */
|
|
#define DeviceMetadata_init_default {"", 0, 0, 0, 0, 0}
|
|
#define DeviceMetadata_init_zero {"", 0, 0, 0, 0, 0}
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
#define DeviceMetadata_firmware_version_tag 1
|
|
#define DeviceMetadata_device_state_version_tag 2
|
|
#define DeviceMetadata_canShutdown_tag 3
|
|
#define DeviceMetadata_hasWifi_tag 4
|
|
#define DeviceMetadata_hasBluetooth_tag 5
|
|
#define DeviceMetadata_hasEthernet_tag 6
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
#define DeviceMetadata_FIELDLIST(X, a) \
|
|
X(a, STATIC, SINGULAR, STRING, firmware_version, 1) \
|
|
X(a, STATIC, SINGULAR, UINT32, device_state_version, 2) \
|
|
X(a, STATIC, SINGULAR, BOOL, canShutdown, 3) \
|
|
X(a, STATIC, SINGULAR, BOOL, hasWifi, 4) \
|
|
X(a, STATIC, SINGULAR, BOOL, hasBluetooth, 5) \
|
|
X(a, STATIC, SINGULAR, BOOL, hasEthernet, 6)
|
|
#define DeviceMetadata_CALLBACK NULL
|
|
#define DeviceMetadata_DEFAULT NULL
|
|
|
|
extern const pb_msgdesc_t DeviceMetadata_msg;
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
#define DeviceMetadata_fields &DeviceMetadata_msg
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
#define DeviceMetadata_size 33
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|