/* 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, ComError_TL720D = 1, ComError_LS_LeftMotor = 2, ComError_LS_RightMotor = 3, ComError_Remote_Button_Reset_State = 4, ComError_MK32_Serial = 5, ComError_MK32_UDP = 6 } 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_MK32_UDP #define _ComError_ARRAYSIZE ((ComError)(ComError_MK32_UDP+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