@@ -143,6 +143,35 @@ class UnbufferedSerial:
143
143
return 0 ;
144
144
}
145
145
146
+ /* * Enable or disable input
147
+ *
148
+ * Control enabling of device for input. This is primarily intended
149
+ * for temporary power-saving; the overall ability of the device to operate
150
+ * for input and/or output may be fixed at creation time, but this call can
151
+ * allow input to be temporarily disabled to permit power saving without
152
+ * losing device state.
153
+ *
154
+ * @param enabled true to enable input, false to disable.
155
+ *
156
+ * @return 0 on success
157
+ * @return Negative error code on failure
158
+ */
159
+ int enable_input (bool enabled) override ;
160
+
161
+ /* * Enable or disable output
162
+ *
163
+ * Control enabling of device for output. This is primarily intended
164
+ * for temporary power-saving; the overall ability of the device to operate
165
+ * for input and/or output may be fixed at creation time, but this call can
166
+ * allow output to be temporarily disabled to permit power saving without
167
+ * losing device state.
168
+ *
169
+ * @param enabled true to enable output, false to disable.
170
+ *
171
+ * @return 0 on success
172
+ * @return Negative error code on failure
173
+ */
174
+ int enable_output (bool enabled) override ;
146
175
147
176
/* * Check for poll event flags
148
177
* Check the events listed in events to see if data can be read or written
@@ -157,8 +186,6 @@ class UnbufferedSerial:
157
186
158
187
using SerialBase::attach;
159
188
using SerialBase::baud;
160
- using SerialBase::enable_input;
161
- using SerialBase::enable_output;
162
189
using SerialBase::format;
163
190
using SerialBase::readable;
164
191
using SerialBase::writeable;
0 commit comments