You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
2.0 KiB
59 lines
2.0 KiB
1 week ago
|
/* Automatically generated nanopb header */
|
||
|
/* Generated by nanopb-0.4.8 */
|
||
|
|
||
|
#ifndef PB_BSP_IAP_PB_H_INCLUDED
|
||
|
#define PB_BSP_IAP_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 */
|
||
|
/* IAP,即In Application Programming,IAP是用户自己的程序在运行过程中对User Flash的部分区域进行烧写。 */
|
||
|
typedef struct _IAP_struct_define {
|
||
|
int32_t Total_Bytes; /* all the received data; */
|
||
|
int32_t NextCodeVrsion; /* the New upgrade Version of the Project */
|
||
|
int32_t UtcTime; /* Udgrade Time */
|
||
|
int32_t UpgradeSucceeded; /* */
|
||
|
} IAP_struct_define;
|
||
|
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/* Initializer values for message structs */
|
||
|
#define IAP_struct_define_init_default {0, 0, 0, 0}
|
||
|
#define IAP_struct_define_init_zero {0, 0, 0, 0}
|
||
|
|
||
|
/* Field tags (for use in manual encoding/decoding) */
|
||
|
#define IAP_struct_define_Total_Bytes_tag 1
|
||
|
#define IAP_struct_define_NextCodeVrsion_tag 2
|
||
|
#define IAP_struct_define_UtcTime_tag 3
|
||
|
#define IAP_struct_define_UpgradeSucceeded_tag 4
|
||
|
|
||
|
/* Struct field encoding specification for nanopb */
|
||
|
#define IAP_struct_define_FIELDLIST(X, a) \
|
||
|
X(a, STATIC, SINGULAR, INT32, Total_Bytes, 1) \
|
||
|
X(a, STATIC, SINGULAR, INT32, NextCodeVrsion, 2) \
|
||
|
X(a, STATIC, SINGULAR, INT32, UtcTime, 3) \
|
||
|
X(a, STATIC, SINGULAR, INT32, UpgradeSucceeded, 4)
|
||
|
#define IAP_struct_define_CALLBACK NULL
|
||
|
#define IAP_struct_define_DEFAULT NULL
|
||
|
|
||
|
extern const pb_msgdesc_t IAP_struct_define_msg;
|
||
|
|
||
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
||
|
#define IAP_struct_define_fields &IAP_struct_define_msg
|
||
|
|
||
|
/* Maximum encoded size of messages (where known) */
|
||
|
#define BSP_IAP_PB_H_MAX_SIZE IAP_struct_define_size
|
||
|
#define IAP_struct_define_size 44
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
} /* extern "C" */
|
||
|
#endif
|
||
|
|
||
|
#endif
|