Extended MaximInterface

Dependents:   mbed_DS28EC20_GPIO

Committer:
IanBenzMaxim
Date:
Mon Nov 06 14:39:18 2017 -0600
Revision:
0:f77ad7f72d04
Child:
6:a8c83a2e6fa4
Initial commit.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IanBenzMaxim 0:f77ad7f72d04 1 /*******************************************************************************
IanBenzMaxim 0:f77ad7f72d04 2 * Copyright (C) 2017 Maxim Integrated Products, Inc., All Rights Reserved.
IanBenzMaxim 0:f77ad7f72d04 3 *
IanBenzMaxim 0:f77ad7f72d04 4 * Permission is hereby granted, free of charge, to any person obtaining a
IanBenzMaxim 0:f77ad7f72d04 5 * copy of this software and associated documentation files (the "Software"),
IanBenzMaxim 0:f77ad7f72d04 6 * to deal in the Software without restriction, including without limitation
IanBenzMaxim 0:f77ad7f72d04 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
IanBenzMaxim 0:f77ad7f72d04 8 * and/or sell copies of the Software, and to permit persons to whom the
IanBenzMaxim 0:f77ad7f72d04 9 * Software is furnished to do so, subject to the following conditions:
IanBenzMaxim 0:f77ad7f72d04 10 *
IanBenzMaxim 0:f77ad7f72d04 11 * The above copyright notice and this permission notice shall be included
IanBenzMaxim 0:f77ad7f72d04 12 * in all copies or substantial portions of the Software.
IanBenzMaxim 0:f77ad7f72d04 13 *
IanBenzMaxim 0:f77ad7f72d04 14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
IanBenzMaxim 0:f77ad7f72d04 15 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
IanBenzMaxim 0:f77ad7f72d04 16 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IanBenzMaxim 0:f77ad7f72d04 17 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
IanBenzMaxim 0:f77ad7f72d04 18 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
IanBenzMaxim 0:f77ad7f72d04 19 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
IanBenzMaxim 0:f77ad7f72d04 20 * OTHER DEALINGS IN THE SOFTWARE.
IanBenzMaxim 0:f77ad7f72d04 21 *
IanBenzMaxim 0:f77ad7f72d04 22 * Except as contained in this notice, the name of Maxim Integrated
IanBenzMaxim 0:f77ad7f72d04 23 * Products, Inc. shall not be used except as stated in the Maxim Integrated
IanBenzMaxim 0:f77ad7f72d04 24 * Products, Inc. Branding Policy.
IanBenzMaxim 0:f77ad7f72d04 25 *
IanBenzMaxim 0:f77ad7f72d04 26 * The mere transfer of this software does not imply any licenses
IanBenzMaxim 0:f77ad7f72d04 27 * of trade secrets, proprietary technology, copyrights, patents,
IanBenzMaxim 0:f77ad7f72d04 28 * trademarks, maskwork rights, or any other form of intellectual
IanBenzMaxim 0:f77ad7f72d04 29 * property whatsoever. Maxim Integrated Products, Inc. retains all
IanBenzMaxim 0:f77ad7f72d04 30 * ownership rights.
IanBenzMaxim 0:f77ad7f72d04 31 *******************************************************************************/
IanBenzMaxim 0:f77ad7f72d04 32
IanBenzMaxim 0:f77ad7f72d04 33 #include <stddef.h>
IanBenzMaxim 0:f77ad7f72d04 34 #include <MaximInterface/Links/OneWireMaster.hpp>
IanBenzMaxim 0:f77ad7f72d04 35 #include <MaximInterface/Utilities/crc.hpp>
IanBenzMaxim 0:f77ad7f72d04 36 #include <MaximInterface/Utilities/Error.hpp>
IanBenzMaxim 0:f77ad7f72d04 37 #include "DS28E17.hpp"
IanBenzMaxim 0:f77ad7f72d04 38
IanBenzMaxim 0:f77ad7f72d04 39 namespace MaximInterface {
IanBenzMaxim 0:f77ad7f72d04 40
IanBenzMaxim 0:f77ad7f72d04 41 error_code DS28E17::writeDataWithStop(uint_least8_t I2C_addr,
IanBenzMaxim 0:f77ad7f72d04 42 const uint_least8_t * data,
IanBenzMaxim 0:f77ad7f72d04 43 size_t data_len,
IanBenzMaxim 0:f77ad7f72d04 44 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 45 return sendPacket(WriteDataWithStopCmd, &I2C_addr, data, data_len, NULL, 0,
IanBenzMaxim 0:f77ad7f72d04 46 wr_status);
IanBenzMaxim 0:f77ad7f72d04 47 }
IanBenzMaxim 0:f77ad7f72d04 48
IanBenzMaxim 0:f77ad7f72d04 49 error_code DS28E17::writeDataNoStop(uint_least8_t I2C_addr,
IanBenzMaxim 0:f77ad7f72d04 50 const uint_least8_t * data, size_t data_len,
IanBenzMaxim 0:f77ad7f72d04 51 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 52 return sendPacket(WriteDataNoStopCmd, &I2C_addr, data, data_len, NULL, 0,
IanBenzMaxim 0:f77ad7f72d04 53 wr_status);
IanBenzMaxim 0:f77ad7f72d04 54 }
IanBenzMaxim 0:f77ad7f72d04 55
IanBenzMaxim 0:f77ad7f72d04 56 error_code DS28E17::writeDataOnly(const uint_least8_t * data, size_t data_len,
IanBenzMaxim 0:f77ad7f72d04 57 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 58 return sendPacket(WriteDataOnlyCmd, NULL, data, data_len, NULL, 0, wr_status);
IanBenzMaxim 0:f77ad7f72d04 59 }
IanBenzMaxim 0:f77ad7f72d04 60
IanBenzMaxim 0:f77ad7f72d04 61 error_code DS28E17::writeDataOnlyWithStop(const uint_least8_t * data,
IanBenzMaxim 0:f77ad7f72d04 62 size_t data_len,
IanBenzMaxim 0:f77ad7f72d04 63 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 64 return sendPacket(WriteDataOnlyWithStopCmd, NULL, data, data_len, NULL, 0,
IanBenzMaxim 0:f77ad7f72d04 65 wr_status);
IanBenzMaxim 0:f77ad7f72d04 66 }
IanBenzMaxim 0:f77ad7f72d04 67
IanBenzMaxim 0:f77ad7f72d04 68 error_code DS28E17::writeReadDataWithStop(uint_least8_t I2C_addr,
IanBenzMaxim 0:f77ad7f72d04 69 const uint_least8_t * write_data,
IanBenzMaxim 0:f77ad7f72d04 70 size_t write_data_len,
IanBenzMaxim 0:f77ad7f72d04 71 uint_least8_t * read_data,
IanBenzMaxim 0:f77ad7f72d04 72 size_t read_data_len,
IanBenzMaxim 0:f77ad7f72d04 73 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 74 return sendPacket(WriteReadDataWithStopCmd, &I2C_addr, write_data,
IanBenzMaxim 0:f77ad7f72d04 75 write_data_len, read_data, read_data_len, wr_status);
IanBenzMaxim 0:f77ad7f72d04 76 }
IanBenzMaxim 0:f77ad7f72d04 77
IanBenzMaxim 0:f77ad7f72d04 78 error_code DS28E17::readDataWithStop(uint_least8_t I2C_addr,
IanBenzMaxim 0:f77ad7f72d04 79 uint_least8_t * data, size_t data_len) {
IanBenzMaxim 0:f77ad7f72d04 80 return sendPacket(ReadDataWithStopCmd, &I2C_addr, NULL, 0, data, data_len,
IanBenzMaxim 0:f77ad7f72d04 81 NULL);
IanBenzMaxim 0:f77ad7f72d04 82 }
IanBenzMaxim 0:f77ad7f72d04 83
IanBenzMaxim 0:f77ad7f72d04 84 error_code DS28E17::writeConfigReg(I2CSpeed speed) {
IanBenzMaxim 0:f77ad7f72d04 85 error_code result = selectRom(*master);
IanBenzMaxim 0:f77ad7f72d04 86 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 87 // Send CMD and Data
IanBenzMaxim 0:f77ad7f72d04 88 const uint_least8_t send_block[] = {WriteConfigurationCmd,
IanBenzMaxim 0:f77ad7f72d04 89 static_cast<uint_least8_t>(speed)};
IanBenzMaxim 0:f77ad7f72d04 90 result = master->writeBlock(send_block,
IanBenzMaxim 0:f77ad7f72d04 91 sizeof(send_block) / sizeof(send_block[0]));
IanBenzMaxim 0:f77ad7f72d04 92 }
IanBenzMaxim 0:f77ad7f72d04 93 return result;
IanBenzMaxim 0:f77ad7f72d04 94 }
IanBenzMaxim 0:f77ad7f72d04 95
IanBenzMaxim 0:f77ad7f72d04 96 error_code DS28E17::readConfigReg(I2CSpeed & speed) {
IanBenzMaxim 0:f77ad7f72d04 97 error_code result = selectRom(*master);
IanBenzMaxim 0:f77ad7f72d04 98 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 99 // Send CMD and receive Data
IanBenzMaxim 0:f77ad7f72d04 100 result = master->writeByte(ReadConfigurationCmd);
IanBenzMaxim 0:f77ad7f72d04 101 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 102 uint_least8_t config;
IanBenzMaxim 0:f77ad7f72d04 103 result = master->readByte(config);
IanBenzMaxim 0:f77ad7f72d04 104 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 105 switch (config) {
IanBenzMaxim 0:f77ad7f72d04 106 case Speed100kHz:
IanBenzMaxim 0:f77ad7f72d04 107 case Speed400kHz:
IanBenzMaxim 0:f77ad7f72d04 108 case Speed900kHz:
IanBenzMaxim 0:f77ad7f72d04 109 speed = static_cast<I2CSpeed>(config);
IanBenzMaxim 0:f77ad7f72d04 110 break;
IanBenzMaxim 0:f77ad7f72d04 111
IanBenzMaxim 0:f77ad7f72d04 112 default:
IanBenzMaxim 0:f77ad7f72d04 113 result = make_error_code(OutOfRangeError);
IanBenzMaxim 0:f77ad7f72d04 114 break;
IanBenzMaxim 0:f77ad7f72d04 115 }
IanBenzMaxim 0:f77ad7f72d04 116 }
IanBenzMaxim 0:f77ad7f72d04 117 }
IanBenzMaxim 0:f77ad7f72d04 118 }
IanBenzMaxim 0:f77ad7f72d04 119 return result;
IanBenzMaxim 0:f77ad7f72d04 120 }
IanBenzMaxim 0:f77ad7f72d04 121
IanBenzMaxim 0:f77ad7f72d04 122 error_code DS28E17::enableSleepMode() {
IanBenzMaxim 0:f77ad7f72d04 123 error_code result = selectRom(*master);
IanBenzMaxim 0:f77ad7f72d04 124 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 125 // Send CMD
IanBenzMaxim 0:f77ad7f72d04 126 result = master->writeByte(EnableSleepModeCmd);
IanBenzMaxim 0:f77ad7f72d04 127 }
IanBenzMaxim 0:f77ad7f72d04 128 return result;
IanBenzMaxim 0:f77ad7f72d04 129 }
IanBenzMaxim 0:f77ad7f72d04 130
IanBenzMaxim 0:f77ad7f72d04 131 error_code DS28E17::readDeviceRevision(uint_least8_t & rev) {
IanBenzMaxim 0:f77ad7f72d04 132 error_code result = selectRom(*master);
IanBenzMaxim 0:f77ad7f72d04 133 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 134 // Send CMD and receive Data
IanBenzMaxim 0:f77ad7f72d04 135 result = master->writeByte(ReadDeviceRevisionCmd);
IanBenzMaxim 0:f77ad7f72d04 136 if (!result) {
IanBenzMaxim 0:f77ad7f72d04 137 result = master->readByte(rev);
IanBenzMaxim 0:f77ad7f72d04 138 }
IanBenzMaxim 0:f77ad7f72d04 139 }
IanBenzMaxim 0:f77ad7f72d04 140 return result;
IanBenzMaxim 0:f77ad7f72d04 141 }
IanBenzMaxim 0:f77ad7f72d04 142
IanBenzMaxim 0:f77ad7f72d04 143 error_code DS28E17::sendPacket(Command command, const uint_least8_t * I2C_addr,
IanBenzMaxim 0:f77ad7f72d04 144 const uint_least8_t * write_data,
IanBenzMaxim 0:f77ad7f72d04 145 size_t write_data_len, uint_least8_t * read_data,
IanBenzMaxim 0:f77ad7f72d04 146 size_t read_data_len,
IanBenzMaxim 0:f77ad7f72d04 147 uint_least8_t * wr_status) {
IanBenzMaxim 0:f77ad7f72d04 148 const int pollLimit = 10000;
IanBenzMaxim 0:f77ad7f72d04 149 const size_t minDataLen = 1;
IanBenzMaxim 0:f77ad7f72d04 150 const size_t maxDataLen = 255;
IanBenzMaxim 0:f77ad7f72d04 151
IanBenzMaxim 0:f77ad7f72d04 152 if ((write_data &&
IanBenzMaxim 0:f77ad7f72d04 153 (write_data_len < minDataLen || write_data_len > maxDataLen)) ||
IanBenzMaxim 0:f77ad7f72d04 154 (read_data &&
IanBenzMaxim 0:f77ad7f72d04 155 (read_data_len < minDataLen || read_data_len > maxDataLen))) {
IanBenzMaxim 0:f77ad7f72d04 156 return make_error_code(OutOfRangeError);
IanBenzMaxim 0:f77ad7f72d04 157 }
IanBenzMaxim 0:f77ad7f72d04 158
IanBenzMaxim 0:f77ad7f72d04 159 error_code result = selectRom(*master);
IanBenzMaxim 0:f77ad7f72d04 160 if (result) {
IanBenzMaxim 0:f77ad7f72d04 161 return result;
IanBenzMaxim 0:f77ad7f72d04 162 }
IanBenzMaxim 0:f77ad7f72d04 163 uint_fast16_t crc16 = calculateCrc16(command);
IanBenzMaxim 0:f77ad7f72d04 164 result = master->writeByte(command);
IanBenzMaxim 0:f77ad7f72d04 165 if (result) {
IanBenzMaxim 0:f77ad7f72d04 166 return result;
IanBenzMaxim 0:f77ad7f72d04 167 }
IanBenzMaxim 0:f77ad7f72d04 168 if (I2C_addr) {
IanBenzMaxim 0:f77ad7f72d04 169 crc16 = calculateCrc16(*I2C_addr, crc16);
IanBenzMaxim 0:f77ad7f72d04 170 result = master->writeByte(*I2C_addr);
IanBenzMaxim 0:f77ad7f72d04 171 if (result) {
IanBenzMaxim 0:f77ad7f72d04 172 return result;
IanBenzMaxim 0:f77ad7f72d04 173 }
IanBenzMaxim 0:f77ad7f72d04 174 }
IanBenzMaxim 0:f77ad7f72d04 175 if (write_data) {
IanBenzMaxim 0:f77ad7f72d04 176 crc16 = calculateCrc16(static_cast<uint_fast8_t>(write_data_len), crc16);
IanBenzMaxim 0:f77ad7f72d04 177 result = master->writeByte(static_cast<uint_least8_t>(write_data_len));
IanBenzMaxim 0:f77ad7f72d04 178 if (result) {
IanBenzMaxim 0:f77ad7f72d04 179 return result;
IanBenzMaxim 0:f77ad7f72d04 180 }
IanBenzMaxim 0:f77ad7f72d04 181 crc16 = calculateCrc16(write_data, write_data_len, crc16);
IanBenzMaxim 0:f77ad7f72d04 182 result = master->writeBlock(write_data, write_data_len);
IanBenzMaxim 0:f77ad7f72d04 183 if (result) {
IanBenzMaxim 0:f77ad7f72d04 184 return result;
IanBenzMaxim 0:f77ad7f72d04 185 }
IanBenzMaxim 0:f77ad7f72d04 186 }
IanBenzMaxim 0:f77ad7f72d04 187 if (read_data) {
IanBenzMaxim 0:f77ad7f72d04 188 crc16 = calculateCrc16(static_cast<uint_fast8_t>(read_data_len), crc16);
IanBenzMaxim 0:f77ad7f72d04 189 result = master->writeByte(static_cast<uint_least8_t>(read_data_len));
IanBenzMaxim 0:f77ad7f72d04 190 if (result) {
IanBenzMaxim 0:f77ad7f72d04 191 return result;
IanBenzMaxim 0:f77ad7f72d04 192 }
IanBenzMaxim 0:f77ad7f72d04 193 }
IanBenzMaxim 0:f77ad7f72d04 194 crc16 ^= 0xFFFFU;
IanBenzMaxim 0:f77ad7f72d04 195 const uint_least8_t crc16Bytes[] = {static_cast<uint_least8_t>(crc16),
IanBenzMaxim 0:f77ad7f72d04 196 static_cast<uint_least8_t>(crc16 >> 8)};
IanBenzMaxim 0:f77ad7f72d04 197 result = master->writeBlock(crc16Bytes,
IanBenzMaxim 0:f77ad7f72d04 198 sizeof(crc16Bytes) / sizeof(crc16Bytes[0]));
IanBenzMaxim 0:f77ad7f72d04 199 if (result) {
IanBenzMaxim 0:f77ad7f72d04 200 return result;
IanBenzMaxim 0:f77ad7f72d04 201 }
IanBenzMaxim 0:f77ad7f72d04 202 // Poll for Zero 1-Wire bit and return if an error occurs
IanBenzMaxim 0:f77ad7f72d04 203 int poll_count = 0;
IanBenzMaxim 0:f77ad7f72d04 204 bool recvbit;
IanBenzMaxim 0:f77ad7f72d04 205 do {
IanBenzMaxim 0:f77ad7f72d04 206 if (poll_count++ < pollLimit) {
IanBenzMaxim 0:f77ad7f72d04 207 return make_error_code(TimeoutError);
IanBenzMaxim 0:f77ad7f72d04 208 }
IanBenzMaxim 0:f77ad7f72d04 209 result = master->readBit(recvbit);
IanBenzMaxim 0:f77ad7f72d04 210 if (result) {
IanBenzMaxim 0:f77ad7f72d04 211 return result;
IanBenzMaxim 0:f77ad7f72d04 212 }
IanBenzMaxim 0:f77ad7f72d04 213 } while (recvbit);
IanBenzMaxim 0:f77ad7f72d04 214 uint_least8_t status;
IanBenzMaxim 0:f77ad7f72d04 215 result = master->readByte(status);
IanBenzMaxim 0:f77ad7f72d04 216 if (result) {
IanBenzMaxim 0:f77ad7f72d04 217 return result;
IanBenzMaxim 0:f77ad7f72d04 218 }
IanBenzMaxim 0:f77ad7f72d04 219 if ((status & 0x1) == 0x1) {
IanBenzMaxim 0:f77ad7f72d04 220 return make_error_code(InvalidCrc16Error);
IanBenzMaxim 0:f77ad7f72d04 221 }
IanBenzMaxim 0:f77ad7f72d04 222 if ((status & 0x2) == 0x2) {
IanBenzMaxim 0:f77ad7f72d04 223 return make_error_code(AddressNackError);
IanBenzMaxim 0:f77ad7f72d04 224 }
IanBenzMaxim 0:f77ad7f72d04 225 if ((status & 0x8) == 0x8) {
IanBenzMaxim 0:f77ad7f72d04 226 return make_error_code(InvalidStartError);
IanBenzMaxim 0:f77ad7f72d04 227 }
IanBenzMaxim 0:f77ad7f72d04 228 if (write_data) {
IanBenzMaxim 0:f77ad7f72d04 229 result = master->readByte(status);
IanBenzMaxim 0:f77ad7f72d04 230 if (result) {
IanBenzMaxim 0:f77ad7f72d04 231 return result;
IanBenzMaxim 0:f77ad7f72d04 232 }
IanBenzMaxim 0:f77ad7f72d04 233 if (wr_status) {
IanBenzMaxim 0:f77ad7f72d04 234 *wr_status = status;
IanBenzMaxim 0:f77ad7f72d04 235 }
IanBenzMaxim 0:f77ad7f72d04 236 if (status != 0) {
IanBenzMaxim 0:f77ad7f72d04 237 return make_error_code(WriteNackError);
IanBenzMaxim 0:f77ad7f72d04 238 }
IanBenzMaxim 0:f77ad7f72d04 239 }
IanBenzMaxim 0:f77ad7f72d04 240 if (read_data) {
IanBenzMaxim 0:f77ad7f72d04 241 result = master->readBlock(read_data, read_data_len);
IanBenzMaxim 0:f77ad7f72d04 242 }
IanBenzMaxim 0:f77ad7f72d04 243 return result;
IanBenzMaxim 0:f77ad7f72d04 244 }
IanBenzMaxim 0:f77ad7f72d04 245
IanBenzMaxim 0:f77ad7f72d04 246 const error_category & DS28E17::errorCategory() {
IanBenzMaxim 0:f77ad7f72d04 247 static class : public error_category {
IanBenzMaxim 0:f77ad7f72d04 248 public:
IanBenzMaxim 0:f77ad7f72d04 249 virtual const char * name() const { return "DS28E17"; }
IanBenzMaxim 0:f77ad7f72d04 250
IanBenzMaxim 0:f77ad7f72d04 251 virtual std::string message(int condition) const {
IanBenzMaxim 0:f77ad7f72d04 252 switch (condition) {
IanBenzMaxim 0:f77ad7f72d04 253 case TimeoutError:
IanBenzMaxim 0:f77ad7f72d04 254 return "Timeout Error";
IanBenzMaxim 0:f77ad7f72d04 255
IanBenzMaxim 0:f77ad7f72d04 256 case OutOfRangeError:
IanBenzMaxim 0:f77ad7f72d04 257 return "Out of Range Error";
IanBenzMaxim 0:f77ad7f72d04 258
IanBenzMaxim 0:f77ad7f72d04 259 case InvalidCrc16Error:
IanBenzMaxim 0:f77ad7f72d04 260 return "Invalid CRC16 Error";
IanBenzMaxim 0:f77ad7f72d04 261
IanBenzMaxim 0:f77ad7f72d04 262 case AddressNackError:
IanBenzMaxim 0:f77ad7f72d04 263 return "Address Nack Error";
IanBenzMaxim 0:f77ad7f72d04 264
IanBenzMaxim 0:f77ad7f72d04 265 case InvalidStartError:
IanBenzMaxim 0:f77ad7f72d04 266 return "Invalid Start Error";
IanBenzMaxim 0:f77ad7f72d04 267
IanBenzMaxim 0:f77ad7f72d04 268 case WriteNackError:
IanBenzMaxim 0:f77ad7f72d04 269 return "Write Nack Error";
IanBenzMaxim 0:f77ad7f72d04 270
IanBenzMaxim 0:f77ad7f72d04 271 default:
IanBenzMaxim 0:f77ad7f72d04 272 return defaultErrorMessage(condition);
IanBenzMaxim 0:f77ad7f72d04 273 }
IanBenzMaxim 0:f77ad7f72d04 274 }
IanBenzMaxim 0:f77ad7f72d04 275 } instance;
IanBenzMaxim 0:f77ad7f72d04 276 return instance;
IanBenzMaxim 0:f77ad7f72d04 277 }
IanBenzMaxim 0:f77ad7f72d04 278
IanBenzMaxim 0:f77ad7f72d04 279 } // namespace MaximInterface