1
+ /* !
2
+ * @file src/components/servo/model.cpp
3
+ *
4
+ * Model for the servo.proto message.
5
+ *
6
+ * Adafruit invests time and resources providing this open source code,
7
+ * please support Adafruit and open-source hardware by purchasing
8
+ * products from Adafruit!
9
+ *
10
+ * Copyright (c) Brent Rubell 2025 for Adafruit Industries.
11
+ *
12
+ * BSD license, all text here must be included in any redistribution.
13
+ *
14
+ */
15
+ #include " model.h"
16
+
17
+ /* *************************************************************************/
18
+ /* !
19
+ @brief Constructor
20
+ */
21
+ /* *************************************************************************/
22
+ ServoModel::ServoModel () {
23
+
24
+ }
25
+
26
+ /* *************************************************************************/
27
+ /* !
28
+ @brief Destructor
29
+ */
30
+ /* *************************************************************************/
31
+ ServoModel::~ServoModel () {
32
+
33
+ }
34
+
35
+ /* *************************************************************************/
36
+ /* !
37
+ @brief Decodes a ServoAdd message from a pb_istream_t
38
+ @param stream
39
+ pb_istream_t to decode from
40
+ @returns True if successful, False otherwise
41
+ */
42
+ /* *************************************************************************/
43
+ bool ServoModel::DecodeServoAdd (pb_istream_t *stream) {
44
+
45
+ }
46
+
47
+ /* *************************************************************************/
48
+ /* !
49
+ @brief Returns a pointer to the ServoAdd message
50
+ @returns Pointer to ServoAdd message
51
+ */
52
+ /* *************************************************************************/
53
+ wippersnapper_servo_ServoAdd *ServoModel::GetServoAddMsg () {
54
+
55
+ }
56
+
57
+ /* *************************************************************************/
58
+ /* !
59
+ @brief Encodes a ServoAdded message
60
+ @param pin_name
61
+ Name of the pin
62
+ @param did_attach
63
+ True if a servo was attached to the pin successfully,
64
+ False otherwise
65
+ @returns True if successful, False otherwise
66
+ */
67
+ /* *************************************************************************/
68
+ bool ServoModel::EncodeServoAdded (char *pin_name, bool did_attach) {
69
+
70
+ }
71
+
72
+ /* *************************************************************************/
73
+ /* !
74
+ @brief Returns a pointer to the ServoAdded message
75
+ @returns Pointer to ServoAdded message
76
+ */
77
+ /* *************************************************************************/
78
+ wippersnapper_servo_ServoAdded *ServoModel::GetServoAddedMsg () {
79
+
80
+ }
81
+
82
+ /* *************************************************************************/
83
+ /* !
84
+ @brief Decodes a ServoRemove message from a pb_istream_t
85
+ @param stream
86
+ pb_istream_t to decode from
87
+ @returns True if successful, False otherwise
88
+ */
89
+ /* *************************************************************************/
90
+ bool ServoModel::DecodeServoRemove (pb_istream_t *stream) {
91
+
92
+ }
93
+
94
+ /* *************************************************************************/
95
+ /* !
96
+ @brief Returns a pointer to the ServoRemove message
97
+ @returns Pointer to ServoRemove message
98
+ */
99
+ /* *************************************************************************/
100
+ wippersnapper_servo_ServoRemove *ServoModel::GetServoRemoveMsg () {
101
+
102
+ }
103
+
104
+ /* *************************************************************************/
105
+ /* !
106
+ @brief Decodes a ServoWrite message from a pb_istream_t
107
+ @param stream
108
+ pb_istream_t to decode from
109
+ @returns True if successful, False otherwise
110
+ */
111
+ /* *************************************************************************/
112
+ bool ServoModel::DecodeServoWrite (pb_istream_t *stream) {
113
+
114
+ }
115
+
116
+ /* *************************************************************************/
117
+ /* !
118
+ @brief Returns a pointer to the ServoWrite message
119
+ @returns Pointer to ServoWrite message
120
+ */
121
+ /* *************************************************************************/
122
+ wippersnapper_servo_ServoWrite *ServoModel::GetServoWriteMsg () {
123
+
124
+ }
0 commit comments