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.
 
 
 

57 lines
1.9 KiB

/* Automatically generated nanopb header */
/* Generated by nanopb-0.4.8 */
#ifndef PB_BSP_DMKE_PB_H_INCLUDED
#define PB_BSP_DMKE_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 _DMKE_struct_define {
int32_t Slave_ID;
int32_t TargetSpeedRpm;
int32_t Command; /* 正转,反转,停止 0 停止 -1 反转 1 正转 */
int32_t CurrentState; /* 当前状态,从正转到反转的过程中需要发送停止指令; */
} DMKE_struct_define;
#ifdef __cplusplus
extern "C" {
#endif
/* Initializer values for message structs */
#define DMKE_struct_define_init_default {0, 0, 0, 0}
#define DMKE_struct_define_init_zero {0, 0, 0, 0}
/* Field tags (for use in manual encoding/decoding) */
#define DMKE_struct_define_Slave_ID_tag 1
#define DMKE_struct_define_TargetSpeedRpm_tag 2
#define DMKE_struct_define_Command_tag 3
#define DMKE_struct_define_CurrentState_tag 4
/* Struct field encoding specification for nanopb */
#define DMKE_struct_define_FIELDLIST(X, a) \
X(a, STATIC, SINGULAR, INT32, Slave_ID, 1) \
X(a, STATIC, SINGULAR, INT32, TargetSpeedRpm, 2) \
X(a, STATIC, SINGULAR, INT32, Command, 3) \
X(a, STATIC, SINGULAR, INT32, CurrentState, 4)
#define DMKE_struct_define_CALLBACK NULL
#define DMKE_struct_define_DEFAULT NULL
extern const pb_msgdesc_t DMKE_struct_define_msg;
/* Defines for backwards compatibility with code written before nanopb-0.4.0 */
#define DMKE_struct_define_fields &DMKE_struct_define_msg
/* Maximum encoded size of messages (where known) */
#define BSP_DMKE_PB_H_MAX_SIZE DMKE_struct_define_size
#define DMKE_struct_define_size 44
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif