Extended MaximInterface
Dependents: mbed_DS28EC20_GPIO
Devices/DS9481P_300.cpp@10:de4b8812877d, 2020-01-06 (annotated)
- Committer:
- reARMnimator
- Date:
- Mon Jan 06 15:54:55 2020 +0000
- Revision:
- 10:de4b8812877d
- Parent:
- 6:a8c83a2e6fa4
Fixed inappropriate include path.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
IanBenzMaxim | 3:f818ea5172ed | 1 | /******************************************************************************* |
IanBenzMaxim | 3:f818ea5172ed | 2 | * Copyright (C) 2017 Maxim Integrated Products, Inc., All Rights Reserved. |
IanBenzMaxim | 3:f818ea5172ed | 3 | * |
IanBenzMaxim | 3:f818ea5172ed | 4 | * Permission is hereby granted, free of charge, to any person obtaining a |
IanBenzMaxim | 3:f818ea5172ed | 5 | * copy of this software and associated documentation files (the "Software"), |
IanBenzMaxim | 3:f818ea5172ed | 6 | * to deal in the Software without restriction, including without limitation |
IanBenzMaxim | 3:f818ea5172ed | 7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
IanBenzMaxim | 3:f818ea5172ed | 8 | * and/or sell copies of the Software, and to permit persons to whom the |
IanBenzMaxim | 3:f818ea5172ed | 9 | * Software is furnished to do so, subject to the following conditions: |
IanBenzMaxim | 3:f818ea5172ed | 10 | * |
IanBenzMaxim | 3:f818ea5172ed | 11 | * The above copyright notice and this permission notice shall be included |
IanBenzMaxim | 3:f818ea5172ed | 12 | * in all copies or substantial portions of the Software. |
IanBenzMaxim | 3:f818ea5172ed | 13 | * |
IanBenzMaxim | 3:f818ea5172ed | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
IanBenzMaxim | 3:f818ea5172ed | 15 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
IanBenzMaxim | 3:f818ea5172ed | 16 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
IanBenzMaxim | 3:f818ea5172ed | 17 | * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES |
IanBenzMaxim | 3:f818ea5172ed | 18 | * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, |
IanBenzMaxim | 3:f818ea5172ed | 19 | * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
IanBenzMaxim | 3:f818ea5172ed | 20 | * OTHER DEALINGS IN THE SOFTWARE. |
IanBenzMaxim | 3:f818ea5172ed | 21 | * |
IanBenzMaxim | 3:f818ea5172ed | 22 | * Except as contained in this notice, the name of Maxim Integrated |
IanBenzMaxim | 3:f818ea5172ed | 23 | * Products, Inc. shall not be used except as stated in the Maxim Integrated |
IanBenzMaxim | 3:f818ea5172ed | 24 | * Products, Inc. Branding Policy. |
IanBenzMaxim | 3:f818ea5172ed | 25 | * |
IanBenzMaxim | 3:f818ea5172ed | 26 | * The mere transfer of this software does not imply any licenses |
IanBenzMaxim | 3:f818ea5172ed | 27 | * of trade secrets, proprietary technology, copyrights, patents, |
IanBenzMaxim | 3:f818ea5172ed | 28 | * trademarks, maskwork rights, or any other form of intellectual |
IanBenzMaxim | 3:f818ea5172ed | 29 | * property whatsoever. Maxim Integrated Products, Inc. retains all |
IanBenzMaxim | 3:f818ea5172ed | 30 | * ownership rights. |
IanBenzMaxim | 3:f818ea5172ed | 31 | *******************************************************************************/ |
IanBenzMaxim | 3:f818ea5172ed | 32 | |
IanBenzMaxim | 3:f818ea5172ed | 33 | #include <MaximInterface/Utilities/Error.hpp> |
IanBenzMaxim | 3:f818ea5172ed | 34 | #include "DS9481P_300.hpp" |
IanBenzMaxim | 3:f818ea5172ed | 35 | |
IanBenzMaxim | 3:f818ea5172ed | 36 | namespace MaximInterface { |
IanBenzMaxim | 3:f818ea5172ed | 37 | |
IanBenzMaxim | 6:a8c83a2e6fa4 | 38 | DS9481P_300::DS9481P_300(Sleep & sleep, SerialPort & serialPort) |
IanBenzMaxim | 3:f818ea5172ed | 39 | : serialPort(&serialPort), currentBus(OneWire), ds2480b(sleep, serialPort), |
IanBenzMaxim | 3:f818ea5172ed | 40 | oneWireMaster_(*this), ds9400(serialPort), i2cMaster_(*this) {} |
IanBenzMaxim | 3:f818ea5172ed | 41 | |
IanBenzMaxim | 3:f818ea5172ed | 42 | error_code DS9481P_300::connect(const std::string & portName) { |
IanBenzMaxim | 3:f818ea5172ed | 43 | error_code result = serialPort->connect(portName); |
IanBenzMaxim | 3:f818ea5172ed | 44 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 45 | result = selectOneWire(); |
IanBenzMaxim | 3:f818ea5172ed | 46 | if (result) { |
IanBenzMaxim | 3:f818ea5172ed | 47 | serialPort->disconnect(); |
IanBenzMaxim | 3:f818ea5172ed | 48 | } else { |
IanBenzMaxim | 3:f818ea5172ed | 49 | currentBus = OneWire; |
IanBenzMaxim | 3:f818ea5172ed | 50 | } |
IanBenzMaxim | 3:f818ea5172ed | 51 | } |
IanBenzMaxim | 3:f818ea5172ed | 52 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 53 | } |
IanBenzMaxim | 3:f818ea5172ed | 54 | |
IanBenzMaxim | 3:f818ea5172ed | 55 | error_code DS9481P_300::disconnect() { |
IanBenzMaxim | 3:f818ea5172ed | 56 | return serialPort->disconnect(); |
IanBenzMaxim | 3:f818ea5172ed | 57 | } |
IanBenzMaxim | 3:f818ea5172ed | 58 | |
IanBenzMaxim | 3:f818ea5172ed | 59 | bool DS9481P_300::connected() const { |
IanBenzMaxim | 3:f818ea5172ed | 60 | return serialPort->connected(); |
IanBenzMaxim | 3:f818ea5172ed | 61 | } |
IanBenzMaxim | 3:f818ea5172ed | 62 | |
IanBenzMaxim | 3:f818ea5172ed | 63 | std::string DS9481P_300::portName() const { |
IanBenzMaxim | 3:f818ea5172ed | 64 | return serialPort->portName(); |
IanBenzMaxim | 3:f818ea5172ed | 65 | } |
IanBenzMaxim | 3:f818ea5172ed | 66 | |
IanBenzMaxim | 3:f818ea5172ed | 67 | error_code DS9481P_300::selectOneWire() { |
IanBenzMaxim | 3:f818ea5172ed | 68 | // Escape DS9400 mode. |
IanBenzMaxim | 3:f818ea5172ed | 69 | error_code result = ds9400.escape(); |
IanBenzMaxim | 3:f818ea5172ed | 70 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 71 | result = ds2480b.initialize(); |
IanBenzMaxim | 3:f818ea5172ed | 72 | } |
IanBenzMaxim | 3:f818ea5172ed | 73 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 74 | } |
IanBenzMaxim | 3:f818ea5172ed | 75 | |
IanBenzMaxim | 3:f818ea5172ed | 76 | error_code DS9481P_300::selectBus(Bus newBus) { |
IanBenzMaxim | 3:f818ea5172ed | 77 | error_code result; |
IanBenzMaxim | 3:f818ea5172ed | 78 | if (currentBus != newBus) { |
IanBenzMaxim | 3:f818ea5172ed | 79 | switch (currentBus) { |
IanBenzMaxim | 3:f818ea5172ed | 80 | case OneWire: // Next bus I2C. |
IanBenzMaxim | 3:f818ea5172ed | 81 | // Escape DS2480 Mode. |
IanBenzMaxim | 3:f818ea5172ed | 82 | result = ds2480b.escape(); |
IanBenzMaxim | 3:f818ea5172ed | 83 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 84 | // Wait for awake notification. |
IanBenzMaxim | 3:f818ea5172ed | 85 | result = ds9400.waitAwake(); |
IanBenzMaxim | 3:f818ea5172ed | 86 | } |
IanBenzMaxim | 3:f818ea5172ed | 87 | break; |
IanBenzMaxim | 3:f818ea5172ed | 88 | |
IanBenzMaxim | 3:f818ea5172ed | 89 | case I2C: // Next bus OneWire. |
IanBenzMaxim | 3:f818ea5172ed | 90 | result = selectOneWire(); |
IanBenzMaxim | 3:f818ea5172ed | 91 | break; |
IanBenzMaxim | 3:f818ea5172ed | 92 | } |
IanBenzMaxim | 3:f818ea5172ed | 93 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 94 | currentBus = newBus; |
IanBenzMaxim | 3:f818ea5172ed | 95 | } |
IanBenzMaxim | 3:f818ea5172ed | 96 | } |
IanBenzMaxim | 3:f818ea5172ed | 97 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 98 | } |
IanBenzMaxim | 3:f818ea5172ed | 99 | |
IanBenzMaxim | 3:f818ea5172ed | 100 | error_code DS9481P_300::OneWireMasterImpl::reset() { |
IanBenzMaxim | 3:f818ea5172ed | 101 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 102 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 103 | result = OneWireMasterDecorator::reset(); |
IanBenzMaxim | 3:f818ea5172ed | 104 | } |
IanBenzMaxim | 3:f818ea5172ed | 105 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 106 | } |
IanBenzMaxim | 3:f818ea5172ed | 107 | |
IanBenzMaxim | 3:f818ea5172ed | 108 | error_code DS9481P_300::OneWireMasterImpl::touchBitSetLevel(bool & sendRecvBit, |
IanBenzMaxim | 3:f818ea5172ed | 109 | Level afterLevel) { |
IanBenzMaxim | 3:f818ea5172ed | 110 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 111 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 112 | result = OneWireMasterDecorator::touchBitSetLevel(sendRecvBit, afterLevel); |
IanBenzMaxim | 3:f818ea5172ed | 113 | } |
IanBenzMaxim | 3:f818ea5172ed | 114 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 115 | } |
IanBenzMaxim | 3:f818ea5172ed | 116 | |
IanBenzMaxim | 3:f818ea5172ed | 117 | error_code |
IanBenzMaxim | 3:f818ea5172ed | 118 | DS9481P_300::OneWireMasterImpl::writeByteSetLevel(uint_least8_t sendByte, |
IanBenzMaxim | 3:f818ea5172ed | 119 | Level afterLevel) { |
IanBenzMaxim | 3:f818ea5172ed | 120 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 121 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 122 | result = OneWireMasterDecorator::writeByteSetLevel(sendByte, afterLevel); |
IanBenzMaxim | 3:f818ea5172ed | 123 | } |
IanBenzMaxim | 3:f818ea5172ed | 124 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 125 | } |
IanBenzMaxim | 3:f818ea5172ed | 126 | |
IanBenzMaxim | 3:f818ea5172ed | 127 | error_code |
IanBenzMaxim | 3:f818ea5172ed | 128 | DS9481P_300::OneWireMasterImpl::readByteSetLevel(uint_least8_t & recvByte, |
IanBenzMaxim | 3:f818ea5172ed | 129 | Level afterLevel) { |
IanBenzMaxim | 3:f818ea5172ed | 130 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 131 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 132 | result = OneWireMasterDecorator::readByteSetLevel(recvByte, afterLevel); |
IanBenzMaxim | 3:f818ea5172ed | 133 | } |
IanBenzMaxim | 3:f818ea5172ed | 134 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 135 | } |
IanBenzMaxim | 3:f818ea5172ed | 136 | |
IanBenzMaxim | 3:f818ea5172ed | 137 | error_code |
IanBenzMaxim | 6:a8c83a2e6fa4 | 138 | DS9481P_300::OneWireMasterImpl::writeBlock(span<const uint_least8_t> sendBuf) { |
IanBenzMaxim | 3:f818ea5172ed | 139 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 140 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 141 | result = OneWireMasterDecorator::writeBlock(sendBuf); |
IanBenzMaxim | 3:f818ea5172ed | 142 | } |
IanBenzMaxim | 3:f818ea5172ed | 143 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 144 | } |
IanBenzMaxim | 3:f818ea5172ed | 145 | |
IanBenzMaxim | 6:a8c83a2e6fa4 | 146 | error_code |
IanBenzMaxim | 6:a8c83a2e6fa4 | 147 | DS9481P_300::OneWireMasterImpl::readBlock(span<uint_least8_t> recvBuf) { |
IanBenzMaxim | 3:f818ea5172ed | 148 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 149 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 150 | result = OneWireMasterDecorator::readBlock(recvBuf); |
IanBenzMaxim | 3:f818ea5172ed | 151 | } |
IanBenzMaxim | 3:f818ea5172ed | 152 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 153 | } |
IanBenzMaxim | 3:f818ea5172ed | 154 | |
IanBenzMaxim | 3:f818ea5172ed | 155 | error_code DS9481P_300::OneWireMasterImpl::setSpeed(Speed newSpeed) { |
IanBenzMaxim | 3:f818ea5172ed | 156 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 157 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 158 | result = OneWireMasterDecorator::setSpeed(newSpeed); |
IanBenzMaxim | 3:f818ea5172ed | 159 | } |
IanBenzMaxim | 3:f818ea5172ed | 160 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 161 | } |
IanBenzMaxim | 3:f818ea5172ed | 162 | |
IanBenzMaxim | 3:f818ea5172ed | 163 | error_code DS9481P_300::OneWireMasterImpl::setLevel(Level newLevel) { |
IanBenzMaxim | 3:f818ea5172ed | 164 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 165 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 166 | result = OneWireMasterDecorator::setLevel(newLevel); |
IanBenzMaxim | 3:f818ea5172ed | 167 | } |
IanBenzMaxim | 3:f818ea5172ed | 168 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 169 | } |
IanBenzMaxim | 3:f818ea5172ed | 170 | |
IanBenzMaxim | 3:f818ea5172ed | 171 | error_code DS9481P_300::OneWireMasterImpl::triplet(TripletData & data) { |
IanBenzMaxim | 3:f818ea5172ed | 172 | error_code result = parent->selectBus(OneWire); |
IanBenzMaxim | 3:f818ea5172ed | 173 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 174 | result = OneWireMasterDecorator::triplet(data); |
IanBenzMaxim | 3:f818ea5172ed | 175 | } |
IanBenzMaxim | 3:f818ea5172ed | 176 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 177 | } |
IanBenzMaxim | 3:f818ea5172ed | 178 | |
IanBenzMaxim | 3:f818ea5172ed | 179 | error_code DS9481P_300::I2CMasterImpl::start(uint_least8_t address) { |
IanBenzMaxim | 3:f818ea5172ed | 180 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 181 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 182 | result = I2CMasterDecorator::start(address); |
IanBenzMaxim | 3:f818ea5172ed | 183 | } |
IanBenzMaxim | 3:f818ea5172ed | 184 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 185 | } |
IanBenzMaxim | 3:f818ea5172ed | 186 | |
IanBenzMaxim | 3:f818ea5172ed | 187 | error_code DS9481P_300::I2CMasterImpl::stop() { |
IanBenzMaxim | 3:f818ea5172ed | 188 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 189 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 190 | result = I2CMasterDecorator::stop(); |
IanBenzMaxim | 3:f818ea5172ed | 191 | } |
IanBenzMaxim | 3:f818ea5172ed | 192 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 193 | } |
IanBenzMaxim | 3:f818ea5172ed | 194 | |
IanBenzMaxim | 3:f818ea5172ed | 195 | error_code DS9481P_300::I2CMasterImpl::writeByte(uint_least8_t data) { |
IanBenzMaxim | 3:f818ea5172ed | 196 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 197 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 198 | result = I2CMasterDecorator::writeByte(data); |
IanBenzMaxim | 3:f818ea5172ed | 199 | } |
IanBenzMaxim | 3:f818ea5172ed | 200 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 201 | } |
IanBenzMaxim | 3:f818ea5172ed | 202 | |
IanBenzMaxim | 6:a8c83a2e6fa4 | 203 | error_code |
IanBenzMaxim | 6:a8c83a2e6fa4 | 204 | DS9481P_300::I2CMasterImpl::writeBlock(span<const uint_least8_t> data) { |
IanBenzMaxim | 3:f818ea5172ed | 205 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 206 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 207 | result = I2CMasterDecorator::writeBlock(data); |
IanBenzMaxim | 3:f818ea5172ed | 208 | } |
IanBenzMaxim | 3:f818ea5172ed | 209 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 210 | } |
IanBenzMaxim | 3:f818ea5172ed | 211 | |
IanBenzMaxim | 3:f818ea5172ed | 212 | error_code DS9481P_300::I2CMasterImpl::writePacketImpl( |
IanBenzMaxim | 6:a8c83a2e6fa4 | 213 | uint_least8_t address, span<const uint_least8_t> data, bool sendStop) { |
IanBenzMaxim | 3:f818ea5172ed | 214 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 215 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 216 | result = I2CMasterDecorator::writePacketImpl(address, data, sendStop); |
IanBenzMaxim | 3:f818ea5172ed | 217 | } |
IanBenzMaxim | 3:f818ea5172ed | 218 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 219 | } |
IanBenzMaxim | 3:f818ea5172ed | 220 | |
IanBenzMaxim | 3:f818ea5172ed | 221 | error_code DS9481P_300::I2CMasterImpl::readByte(AckStatus status, |
IanBenzMaxim | 3:f818ea5172ed | 222 | uint_least8_t & data) { |
IanBenzMaxim | 3:f818ea5172ed | 223 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 224 | if (!result) { |
IanBenzMaxim | 3:f818ea5172ed | 225 | result = I2CMasterDecorator::readByte(status, data); |
IanBenzMaxim | 3:f818ea5172ed | 226 | } |
IanBenzMaxim | 3:f818ea5172ed | 227 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 228 | } |
IanBenzMaxim | 3:f818ea5172ed | 229 | |
IanBenzMaxim | 3:f818ea5172ed | 230 | error_code DS9481P_300::I2CMasterImpl::readBlock(AckStatus status, |
IanBenzMaxim | 6:a8c83a2e6fa4 | 231 | span<uint_least8_t> data) { |
IanBenzMaxim | 3:f818ea5172ed | 232 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 233 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 234 | result = I2CMasterDecorator::readBlock(status, data); |
IanBenzMaxim | 3:f818ea5172ed | 235 | } |
IanBenzMaxim | 3:f818ea5172ed | 236 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 237 | } |
IanBenzMaxim | 3:f818ea5172ed | 238 | |
IanBenzMaxim | 3:f818ea5172ed | 239 | error_code DS9481P_300::I2CMasterImpl::readPacketImpl(uint_least8_t address, |
IanBenzMaxim | 6:a8c83a2e6fa4 | 240 | span<uint_least8_t> data, |
IanBenzMaxim | 3:f818ea5172ed | 241 | bool sendStop) { |
IanBenzMaxim | 3:f818ea5172ed | 242 | error_code result = parent->selectBus(I2C); |
IanBenzMaxim | 3:f818ea5172ed | 243 | if (!result) { |
IanBenzMaxim | 6:a8c83a2e6fa4 | 244 | result = I2CMasterDecorator::readPacketImpl(address, data, sendStop); |
IanBenzMaxim | 3:f818ea5172ed | 245 | } |
IanBenzMaxim | 3:f818ea5172ed | 246 | return result; |
IanBenzMaxim | 3:f818ea5172ed | 247 | } |
IanBenzMaxim | 3:f818ea5172ed | 248 | |
IanBenzMaxim | 3:f818ea5172ed | 249 | error_code DS9481P_300::DS2480BWithEscape::escape() { |
IanBenzMaxim | 3:f818ea5172ed | 250 | return sendCommand(0xE5); |
IanBenzMaxim | 3:f818ea5172ed | 251 | } |
IanBenzMaxim | 3:f818ea5172ed | 252 | |
IanBenzMaxim | 3:f818ea5172ed | 253 | error_code DS9481P_300::DS9400WithEscape::escape() { |
IanBenzMaxim | 3:f818ea5172ed | 254 | return configure('O'); |
IanBenzMaxim | 3:f818ea5172ed | 255 | } |
IanBenzMaxim | 3:f818ea5172ed | 256 | |
IanBenzMaxim | 6:a8c83a2e6fa4 | 257 | } // namespace MaximInterface |