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.
79 lines
2.3 KiB
79 lines
2.3 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
|
||
|
|
|
||
|
|
/* Enum definitions */
|
||
|
|
typedef enum _ComError {
|
||
|
|
ComError_Mk32_SBus = 0, /* proto3版本中,首成员必须为0,成员不应有相同的值 */
|
||
|
|
ComError_MK32_Serial = 1,
|
||
|
|
ComError_MK32_InitialState = 2,
|
||
|
|
ComError_TL720D = 3,
|
||
|
|
ComError_ZQ_CAN_ID1_LeftMotor = 4,
|
||
|
|
ComError_ZQ_CAN_ID2_RightMotor = 5,
|
||
|
|
ComError_ZQ_CAN_ID3_SwingMotor = 6,
|
||
|
|
ComError_Force_Sensor = 7,
|
||
|
|
ComError_Mfog40 = 8,
|
||
|
|
ComError_Ultrasonic_Sensor = 9,
|
||
|
|
ComError_UWB_20_Error = 10,
|
||
|
|
ComError_Strain_Gauge = 11,
|
||
|
|
ComError_Ground_Management = 12
|
||
|
|
} ComError;
|
||
|
|
|
||
|
|
/* Struct definitions */
|
||
|
|
typedef struct _ErrorData {
|
||
|
|
int32_t Com_Error_Code;
|
||
|
|
int32_t Left_Motor_Error_Code;
|
||
|
|
int32_t Right_Motor_Error_Code;
|
||
|
|
} ErrorData;
|
||
|
|
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
/* Helper constants for enums */
|
||
|
|
#define _ComError_MIN ComError_Mk32_SBus
|
||
|
|
#define _ComError_MAX ComError_Ground_Management
|
||
|
|
#define _ComError_ARRAYSIZE ((ComError)(ComError_Ground_Management+1))
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/* Initializer values for message structs */
|
||
|
|
#define ErrorData_init_default {0, 0, 0}
|
||
|
|
#define ErrorData_init_zero {0, 0, 0}
|
||
|
|
|
||
|
|
/* Field tags (for use in manual encoding/decoding) */
|
||
|
|
#define ErrorData_Com_Error_Code_tag 1
|
||
|
|
#define ErrorData_Left_Motor_Error_Code_tag 2
|
||
|
|
#define ErrorData_Right_Motor_Error_Code_tag 3
|
||
|
|
|
||
|
|
/* Struct field encoding specification for nanopb */
|
||
|
|
#define ErrorData_FIELDLIST(X, a) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Com_Error_Code, 1) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Left_Motor_Error_Code, 2) \
|
||
|
|
X(a, STATIC, SINGULAR, INT32, Right_Motor_Error_Code, 3)
|
||
|
|
#define ErrorData_CALLBACK NULL
|
||
|
|
#define ErrorData_DEFAULT NULL
|
||
|
|
|
||
|
|
extern const pb_msgdesc_t ErrorData_msg;
|
||
|
|
|
||
|
|
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
|
||
|
|
#define ErrorData_fields &ErrorData_msg
|
||
|
|
|
||
|
|
/* Maximum encoded size of messages (where known) */
|
||
|
|
#define BSP_ERROR_PB_H_MAX_SIZE ErrorData_size
|
||
|
|
#define ErrorData_size 33
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
} /* extern "C" */
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif
|