71 lines
2.4 KiB
C
Executable File
71 lines
2.4 KiB
C
Executable File
/* Automatically generated nanopb header */
|
|
/* Generated by nanopb-0.4.9-dev */
|
|
|
|
#ifndef PB_HITOLO_PB_H_INCLUDED
|
|
#define PB_HITOLO_PB_H_INCLUDED
|
|
#include <nanopb/pb.h>
|
|
|
|
#if PB_PROTO_HEADER_VERSION != 40
|
|
#error Regenerate this file with the current version of nanopb generator.
|
|
#endif
|
|
|
|
/* Struct definitions */
|
|
/* This container message is send from Hi To Lo and may contain any allowed message in that direction. */
|
|
typedef struct _HiToLo {
|
|
pb_size_t which_payload;
|
|
union {
|
|
uint32_t time_stamp;
|
|
bool connector_lock; /* false: unlock, true: lock */
|
|
uint32_t max_charging_current;
|
|
bool allow_power_on;
|
|
bool reset;
|
|
uint32_t grid_current;
|
|
uint32_t max_grid_current;
|
|
} payload;
|
|
} HiToLo;
|
|
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Initializer values for message structs */
|
|
#define HiToLo_init_default {0, {0}}
|
|
#define HiToLo_init_zero {0, {0}}
|
|
|
|
/* Field tags (for use in manual encoding/decoding) */
|
|
#define HiToLo_time_stamp_tag 1
|
|
#define HiToLo_connector_lock_tag 2
|
|
#define HiToLo_max_charging_current_tag 3
|
|
#define HiToLo_allow_power_on_tag 4
|
|
#define HiToLo_reset_tag 5
|
|
#define HiToLo_grid_current_tag 6
|
|
#define HiToLo_max_grid_current_tag 7
|
|
|
|
/* Struct field encoding specification for nanopb */
|
|
#define HiToLo_FIELDLIST(X, a) \
|
|
X(a, STATIC, ONEOF, UINT32, (payload,time_stamp,payload.time_stamp), 1) \
|
|
X(a, STATIC, ONEOF, BOOL, (payload,connector_lock,payload.connector_lock), 2) \
|
|
X(a, STATIC, ONEOF, UINT32, (payload,max_charging_current,payload.max_charging_current), 3) \
|
|
X(a, STATIC, ONEOF, BOOL, (payload,allow_power_on,payload.allow_power_on), 4) \
|
|
X(a, STATIC, ONEOF, BOOL, (payload,reset,payload.reset), 5) \
|
|
X(a, STATIC, ONEOF, UINT32, (payload,grid_current,payload.grid_current), 6) \
|
|
X(a, STATIC, ONEOF, UINT32, (payload,max_grid_current,payload.max_grid_current), 7)
|
|
#define HiToLo_CALLBACK NULL
|
|
#define HiToLo_DEFAULT NULL
|
|
|
|
extern const pb_msgdesc_t HiToLo_msg;
|
|
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
|
#define HiToLo_fields &HiToLo_msg
|
|
|
|
/* Maximum encoded size of messages (where known) */
|
|
#define HITOLO_PB_H_MAX_SIZE HiToLo_size
|
|
#define HiToLo_size 6
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif
|