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.
108 lines
3.4 KiB
108 lines
3.4 KiB
|
3 weeks ago
|
/* Automatically generated nanopb header */
|
||
|
|
/* Generated by nanopb-0.4.8 */
|
||
|
|
|
||
|
|
#ifndef PB_BSP_ERROR_PB_H_INCLUDED
|
||
|
|
#define PB_BSP_ERROR_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 */
|
||
|
|
typedef struct _ErrorDataInfo {
|
||
|
|
int32_t Error_Value;
|
||
|
|
pb_byte_t Error_Name[50];
|
||
|
|
} ErrorDataInfo;
|
||
|
|
|
||
|
|
typedef struct _ErrorData {
|
||
|
|
/* ErrorDataInfo Error1=1;
|
||
|
|
ErrorDataInfo Error2=2;
|
||
|
|
ErrorDataInfo Error3=3;
|
||
|
|
ErrorDataInfo Error4=4;
|
||
|
|
ErrorDataInfo Error5=5;
|
||
|
|
ErrorDataInfo Error6=6;
|
||
|
|
ErrorDataInfo Error7=7;
|
||
|
|
ErrorDataInfo Error8=8;
|
||
|
|
ErrorDataInfo Error9=9;
|
||
|
|
ErrorDataInfo Error10=10;
|
||
|
|
ErrorDataInfo Error11=11;
|
||
|
|
ErrorDataInfo Error12=12;
|
||
|
|
ErrorDataInfo Error13=13;
|
||
|
|
ErrorDataInfo Error14=14;
|
||
|
|
ErrorDataInfo Error15=15;
|
||
|
|
ErrorDataInfo Error16=16;
|
||
|
|
ErrorDataInfo Error17=17;
|
||
|
|
ErrorDataInfo Error18=18;
|
||
|
|
ErrorDataInfo Error19=19;
|
||
|
|
ErrorDataInfo Error20=20; */
|
||
|
|
int32_t ErrorCode;
|
||
|
|
int32_t Motor_1_Error;
|
||
|
|
int32_t Motor_2_Error;
|
||
|
|
int32_t Motor_3_Error;
|
||
|
|
int32_t Motor_4_Error;
|
||
|
|
int32_t Motor_5_Error;
|
||
|
|
int32_t Motor_6_Error;
|
||
|
|
int32_t Motor_7_Error;
|
||
|
|
} ErrorData;
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
/* Initializer values for message structs */
|
||
|
|
#define ErrorDataInfo_init_default {0, {0}}
|
||
|
|
#define ErrorData_init_default {0, 0, 0, 0, 0, 0, 0, 0}
|
||
|
|
#define ErrorDataInfo_init_zero {0, {0}}
|
||
|
|
#define ErrorData_init_zero {0, 0, 0, 0, 0, 0, 0, 0}
|
||
|
|
|
||
|
|
/* Field tags (for use in manual encoding/decoding) */
|
||
|
|
#define ErrorDataInfo_Error_Value_tag 1
|
||
|
|
#define ErrorDataInfo_Error_Name_tag 4
|
||
|
|
#define ErrorData_ErrorCode_tag 1
|
||
|
|
#define ErrorData_Motor_1_Error_tag 21
|
||
|
|
#define ErrorData_Motor_2_Error_tag 22
|
||
|
|
#define ErrorData_Motor_3_Error_tag 23
|
||
|
|
#define ErrorData_Motor_4_Error_tag 24
|
||
|
|
#define ErrorData_Motor_5_Error_tag 25
|
||
|
|
#define ErrorData_Motor_6_Error_tag 26
|
||
|
|
#define ErrorData_Motor_7_Error_tag 27
|
||
|
|
|
||
|
|
/* Struct field encoding specification for nanopb */
|
||
|
|
#define ErrorDataInfo_FIELDLIST(X, a) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Error_Value, 1) \
|
||
|
|
X(a, STATIC, SINGULAR, FIXED_LENGTH_BYTES, Error_Name, 4)
|
||
|
|
#define ErrorDataInfo_CALLBACK NULL
|
||
|
|
#define ErrorDataInfo_DEFAULT NULL
|
||
|
|
|
||
|
|
#define ErrorData_FIELDLIST(X, a) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, ErrorCode, 1) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_1_Error, 21) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_2_Error, 22) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_3_Error, 23) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_4_Error, 24) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_5_Error, 25) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_6_Error, 26) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Motor_7_Error, 27)
|
||
|
|
#define ErrorData_CALLBACK NULL
|
||
|
|
#define ErrorData_DEFAULT NULL
|
||
|
|
|
||
|
|
extern const pb_msgdesc_t ErrorDataInfo_msg;
|
||
|
|
extern const pb_msgdesc_t ErrorData_msg;
|
||
|
|
|
||
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
||
|
|
#define ErrorDataInfo_fields &ErrorDataInfo_msg
|
||
|
|
#define ErrorData_fields &ErrorData_msg
|
||
|
|
|
||
|
|
/* Maximum encoded size of messages (where known) */
|
||
|
|
#define BSP_ERROR_PB_H_MAX_SIZE ErrorData_size
|
||
|
|
#define ErrorDataInfo_size 63
|
||
|
|
#define ErrorData_size 95
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
} /* extern "C" */
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|