-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.pb.h
90 lines (73 loc) · 2.79 KB
/
device.pb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* Automatically generated nanopb header */
/* Generated by nanopb-0.3.9.1 at Tue Oct 2 17:01:52 2018. */
#ifndef PB_DEVICE_PB_H_INCLUDED
#define PB_DEVICE_PB_H_INCLUDED
#include <pb.h>
/* @@protoc_insertion_point(includes) */
#if PB_PROTO_HEADER_VERSION != 30
#error Regenerate this file with the current version of nanopb generator.
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* Enum definitions */
typedef enum _ActuatorType {
ActuatorType_LRA = 0,
ActuatorType_LRA_WIDEBAND = 1,
ActuatorType_PIEZO = 2,
ActuatorType_HAPTUATOR = 3
} ActuatorType;
#define _ActuatorType_MIN ActuatorType_LRA
#define _ActuatorType_MAX ActuatorType_HAPTUATOR
#define _ActuatorType_ARRAYSIZE ((ActuatorType)(ActuatorType_HAPTUATOR+1))
/* Struct definitions */
typedef struct _Actuator {
uint32_t minimum_frequency;
uint32_t maximum_frequency;
uint32_t optimal_frequency;
ActuatorType type;
/* @@protoc_insertion_point(struct:Actuator) */
} Actuator;
typedef struct _Device {
uint32_t hardware_version;
uint32_t bootloader_version;
uint32_t firmware_version;
pb_callback_t name;
pb_callback_t actuators;
pb_callback_t bluetooth_id;
pb_callback_t usb_id;
/* @@protoc_insertion_point(struct:Device) */
} Device;
/* Default values for struct fields */
/* Initializer values for message structs */
#define Actuator_init_default {0, 0, 0, _ActuatorType_MIN}
#define Device_init_default {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
#define Actuator_init_zero {0, 0, 0, _ActuatorType_MIN}
#define Device_init_zero {0, 0, 0, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}, {{NULL}, NULL}}
/* Field tags (for use in manual encoding/decoding) */
#define Actuator_minimum_frequency_tag 1
#define Actuator_maximum_frequency_tag 2
#define Actuator_optimal_frequency_tag 3
#define Actuator_type_tag 4
#define Device_hardware_version_tag 1
#define Device_bootloader_version_tag 2
#define Device_firmware_version_tag 3
#define Device_name_tag 4
#define Device_actuators_tag 5
#define Device_bluetooth_id_tag 6
#define Device_usb_id_tag 7
/* Struct field encoding specification for nanopb */
extern const pb_field_t Actuator_fields[5];
extern const pb_field_t Device_fields[8];
/* Maximum encoded size of messages (where known) */
#define Actuator_size 20
/* Device_size depends on runtime parameters */
/* Message IDs (where set with "msgid" option) */
#ifdef PB_MSGID
#define DEVICE_MESSAGES \
#endif
#ifdef __cplusplus
} /* extern "C" */
#endif
/* @@protoc_insertion_point(eof) */
#endif