Darien Figueroa / Mbed OS Final_Program

Dependencies:   USBDevice

Committer:
darienf
Date:
Sun May 02 23:09:04 2021 +0000
Revision:
5:bc128a16232f
Parent:
3:36de8b9e4b1a
This is the program that was last used, that has the working temperature and some comments

Who changed what in which revision?

UserRevisionLine numberNew contents of line
darienf 3:36de8b9e4b1a 1 /*******************************************************************************
darienf 3:36de8b9e4b1a 2 * Copyright (C) 2016 Maxim Integrated Products, Inc., All rights Reserved.
darienf 3:36de8b9e4b1a 3 *
darienf 3:36de8b9e4b1a 4 * This software is protected by copyright laws of the United States and
darienf 3:36de8b9e4b1a 5 * of foreign countries. This material may also be protected by patent laws
darienf 3:36de8b9e4b1a 6 * and technology transfer regulations of the United States and of foreign
darienf 3:36de8b9e4b1a 7 * countries. This software is furnished under a license agreement and/or a
darienf 3:36de8b9e4b1a 8 * nondisclosure agreement and may only be used or reproduced in accordance
darienf 3:36de8b9e4b1a 9 * with the terms of those agreements. Dissemination of this information to
darienf 3:36de8b9e4b1a 10 * any party or parties not specified in the license agreement and/or
darienf 3:36de8b9e4b1a 11 * nondisclosure agreement is expressly prohibited.
darienf 3:36de8b9e4b1a 12 *
darienf 3:36de8b9e4b1a 13 * The above copyright notice and this permission notice shall be included
darienf 3:36de8b9e4b1a 14 * in all copies or substantial portions of the Software.
darienf 3:36de8b9e4b1a 15 *
darienf 3:36de8b9e4b1a 16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
darienf 3:36de8b9e4b1a 17 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
darienf 3:36de8b9e4b1a 18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
darienf 3:36de8b9e4b1a 19 * IN NO EVENT SHALL MAXIM INTEGRATED BE LIABLE FOR ANY CLAIM, DAMAGES
darienf 3:36de8b9e4b1a 20 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
darienf 3:36de8b9e4b1a 21 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
darienf 3:36de8b9e4b1a 22 * OTHER DEALINGS IN THE SOFTWARE.
darienf 3:36de8b9e4b1a 23 *
darienf 3:36de8b9e4b1a 24 * Except as contained in this notice, the name of Maxim Integrated
darienf 3:36de8b9e4b1a 25 * Products, Inc. shall not be used except as stated in the Maxim Integrated
darienf 3:36de8b9e4b1a 26 * Products, Inc. Branding Policy.
darienf 3:36de8b9e4b1a 27 *
darienf 3:36de8b9e4b1a 28 * The mere transfer of this software does not imply any licenses
darienf 3:36de8b9e4b1a 29 * of trade secrets, proprietary technology, copyrights, patents,
darienf 3:36de8b9e4b1a 30 * trademarks, maskwork rights, or any other form of intellectual
darienf 3:36de8b9e4b1a 31 * property whatsoever. Maxim Integrated Products, Inc. retains all
darienf 3:36de8b9e4b1a 32 * ownership rights.
darienf 3:36de8b9e4b1a 33 *******************************************************************************
darienf 3:36de8b9e4b1a 34 */
darienf 3:36de8b9e4b1a 35
darienf 3:36de8b9e4b1a 36 using System;
darienf 3:36de8b9e4b1a 37 using System.Collections.Generic;
darienf 3:36de8b9e4b1a 38 using System.Linq;
darienf 3:36de8b9e4b1a 39 using System.Text;
darienf 3:36de8b9e4b1a 40 using RPCSupport.Pipelines;
darienf 3:36de8b9e4b1a 41 using RPCSupport.Devices;
darienf 3:36de8b9e4b1a 42 using RPCSupport.Dialogs;
darienf 3:36de8b9e4b1a 43
darienf 3:36de8b9e4b1a 44 namespace RPCSupport
darienf 3:36de8b9e4b1a 45 {
darienf 3:36de8b9e4b1a 46 public class RPCClient
darienf 3:36de8b9e4b1a 47 {
darienf 3:36de8b9e4b1a 48 public enum ePipeline
darienf 3:36de8b9e4b1a 49 {
darienf 3:36de8b9e4b1a 50 eHid,
darienf 3:36de8b9e4b1a 51 eSerial,
darienf 3:36de8b9e4b1a 52 eHttp,
darienf 3:36de8b9e4b1a 53 eSerialWrap
darienf 3:36de8b9e4b1a 54 }
darienf 3:36de8b9e4b1a 55
darienf 3:36de8b9e4b1a 56 //SerialPipeline serialPipeline;
darienf 3:36de8b9e4b1a 57 const string SPINAME = "Spi";
darienf 3:36de8b9e4b1a 58 I2cDevice i2cDevice;
darienf 3:36de8b9e4b1a 59 SpiDevice spiDevice;
darienf 3:36de8b9e4b1a 60 bool rpcLogShown = false;
darienf 3:36de8b9e4b1a 61 public RPCSupport.Streaming.Streaming streaming;
darienf 3:36de8b9e4b1a 62
darienf 3:36de8b9e4b1a 63 public Pipeline pipeline;
darienf 3:36de8b9e4b1a 64
darienf 3:36de8b9e4b1a 65 public Pipeline Pipeline
darienf 3:36de8b9e4b1a 66 {
darienf 3:36de8b9e4b1a 67 get { return pipeline; }
darienf 3:36de8b9e4b1a 68 }
darienf 3:36de8b9e4b1a 69
darienf 3:36de8b9e4b1a 70 LIS2HD lis2hd;
darienf 3:36de8b9e4b1a 71 public LIS2HD LIS2HD
darienf 3:36de8b9e4b1a 72 {
darienf 3:36de8b9e4b1a 73 get { return lis2hd; }
darienf 3:36de8b9e4b1a 74 set { lis2hd = value; }
darienf 3:36de8b9e4b1a 75 }
darienf 3:36de8b9e4b1a 76
darienf 3:36de8b9e4b1a 77 public I2cDevice I2cDevice
darienf 3:36de8b9e4b1a 78 {
darienf 3:36de8b9e4b1a 79 get { return i2cDevice; }
darienf 3:36de8b9e4b1a 80 set { i2cDevice = value; }
darienf 3:36de8b9e4b1a 81 }
darienf 3:36de8b9e4b1a 82 public SpiDevice SpiDevice
darienf 3:36de8b9e4b1a 83 {
darienf 3:36de8b9e4b1a 84 get { return spiDevice; }
darienf 3:36de8b9e4b1a 85 set { spiDevice = value; }
darienf 3:36de8b9e4b1a 86 }
darienf 3:36de8b9e4b1a 87
darienf 3:36de8b9e4b1a 88 MAX30101 max30101;
darienf 3:36de8b9e4b1a 89 public MAX30101 MAX30101
darienf 3:36de8b9e4b1a 90 {
darienf 3:36de8b9e4b1a 91 get { return max30101; }
darienf 3:36de8b9e4b1a 92 set { max30101 = value; }
darienf 3:36de8b9e4b1a 93 }
darienf 3:36de8b9e4b1a 94
darienf 3:36de8b9e4b1a 95 MAX30001 max30001;
darienf 3:36de8b9e4b1a 96 public MAX30001 MAX30001
darienf 3:36de8b9e4b1a 97 {
darienf 3:36de8b9e4b1a 98 get { return max30001; }
darienf 3:36de8b9e4b1a 99 set { max30001 = value; }
darienf 3:36de8b9e4b1a 100 }
darienf 3:36de8b9e4b1a 101
darienf 3:36de8b9e4b1a 102 MAX30205 max30205;
darienf 3:36de8b9e4b1a 103 public MAX30205 MAX30205
darienf 3:36de8b9e4b1a 104 {
darienf 3:36de8b9e4b1a 105 get { return max30205; }
darienf 3:36de8b9e4b1a 106 set { max30205 = value; }
darienf 3:36de8b9e4b1a 107 }
darienf 3:36de8b9e4b1a 108
darienf 3:36de8b9e4b1a 109 DataLogging.DataLogging dataLogging;
darienf 3:36de8b9e4b1a 110 public DataLogging.DataLogging DataLogging
darienf 3:36de8b9e4b1a 111 {
darienf 3:36de8b9e4b1a 112 get { return dataLogging; }
darienf 3:36de8b9e4b1a 113 set { dataLogging = value; }
darienf 3:36de8b9e4b1a 114 }
darienf 3:36de8b9e4b1a 115
darienf 3:36de8b9e4b1a 116 Devices.Led led;
darienf 3:36de8b9e4b1a 117 public Devices.Led Led
darienf 3:36de8b9e4b1a 118 {
darienf 3:36de8b9e4b1a 119 get { return led; }
darienf 3:36de8b9e4b1a 120 set { led = value; }
darienf 3:36de8b9e4b1a 121 }
darienf 3:36de8b9e4b1a 122
darienf 3:36de8b9e4b1a 123 Devices.Testing testing;
darienf 3:36de8b9e4b1a 124 public Devices.Testing Testing
darienf 3:36de8b9e4b1a 125 {
darienf 3:36de8b9e4b1a 126 get { return testing; }
darienf 3:36de8b9e4b1a 127 set { testing = value; }
darienf 3:36de8b9e4b1a 128 }
darienf 3:36de8b9e4b1a 129
darienf 3:36de8b9e4b1a 130 Devices.S25FS512 s25FS512;
darienf 3:36de8b9e4b1a 131 public Devices.S25FS512 S25FS512
darienf 3:36de8b9e4b1a 132 {
darienf 3:36de8b9e4b1a 133 get { return s25FS512; }
darienf 3:36de8b9e4b1a 134 set { s25FS512 = value; }
darienf 3:36de8b9e4b1a 135 }
darienf 3:36de8b9e4b1a 136
darienf 3:36de8b9e4b1a 137 public RPCClient(ePipeline pipelineType)
darienf 3:36de8b9e4b1a 138 {
darienf 3:36de8b9e4b1a 139 switch (pipelineType)
darienf 3:36de8b9e4b1a 140 {
darienf 3:36de8b9e4b1a 141 case ePipeline.eHid:
darienf 3:36de8b9e4b1a 142 pipeline = new HidPipeline();
darienf 3:36de8b9e4b1a 143 break;
darienf 3:36de8b9e4b1a 144 case ePipeline.eSerial:
darienf 3:36de8b9e4b1a 145 pipeline = new SerialPipeline();
darienf 3:36de8b9e4b1a 146 break;
darienf 3:36de8b9e4b1a 147 case ePipeline.eHttp:
darienf 3:36de8b9e4b1a 148 break;
darienf 3:36de8b9e4b1a 149 case ePipeline.eSerialWrap:
darienf 3:36de8b9e4b1a 150 pipeline = new SerialWrapPipeline();
darienf 3:36de8b9e4b1a 151 break;
darienf 3:36de8b9e4b1a 152 }
darienf 3:36de8b9e4b1a 153 ShowRpcLog(false);
darienf 3:36de8b9e4b1a 154 LogCallback(new RPCSupport.Pipelines.Pipeline.RawRpcRequest(LogRpcRequest), new RPCSupport.Pipelines.Pipeline.RawRpcReply(LogRpcReply), new RPCSupport.Pipelines.Pipeline.RawRpcStream(LogRpcStream));
darienf 3:36de8b9e4b1a 155 streaming = new Streaming.Streaming();
darienf 3:36de8b9e4b1a 156 }
darienf 3:36de8b9e4b1a 157
darienf 3:36de8b9e4b1a 158 void LogRpcRequest(string request)
darienf 3:36de8b9e4b1a 159 {
darienf 3:36de8b9e4b1a 160 rpcLog.LogRpcRequest(request);
darienf 3:36de8b9e4b1a 161 }
darienf 3:36de8b9e4b1a 162
darienf 3:36de8b9e4b1a 163 void LogRpcReply(string reply)
darienf 3:36de8b9e4b1a 164 {
darienf 3:36de8b9e4b1a 165 rpcLog.LogRpcReply(reply);
darienf 3:36de8b9e4b1a 166 }
darienf 3:36de8b9e4b1a 167
darienf 3:36de8b9e4b1a 168 void LogRpcStream(string stream)
darienf 3:36de8b9e4b1a 169 {
darienf 3:36de8b9e4b1a 170 rpcLog.LogRpcStream(stream);
darienf 3:36de8b9e4b1a 171 }
darienf 3:36de8b9e4b1a 172
darienf 3:36de8b9e4b1a 173 public void LogCallback(RPCSupport.Pipelines.Pipeline.RawRpcRequest request, RPCSupport.Pipelines.Pipeline.RawRpcReply reply, RPCSupport.Pipelines.Pipeline.RawRpcStream stream)
darienf 3:36de8b9e4b1a 174 {
darienf 3:36de8b9e4b1a 175 pipeline.LogCallback(request, reply, stream);
darienf 3:36de8b9e4b1a 176 }
darienf 3:36de8b9e4b1a 177
darienf 3:36de8b9e4b1a 178 public void Connect(string param) {
darienf 3:36de8b9e4b1a 179 pipeline.Connect(param);
darienf 3:36de8b9e4b1a 180 }
darienf 3:36de8b9e4b1a 181
darienf 3:36de8b9e4b1a 182 public void Disconnect()
darienf 3:36de8b9e4b1a 183 {
darienf 3:36de8b9e4b1a 184 pipeline.Disconnect();
darienf 3:36de8b9e4b1a 185 }
darienf 3:36de8b9e4b1a 186
darienf 3:36de8b9e4b1a 187 public string[] ScanAvailablePortNames() {
darienf 3:36de8b9e4b1a 188 return pipeline.ScanAvailablePortNames();
darienf 3:36de8b9e4b1a 189 }
darienf 3:36de8b9e4b1a 190
darienf 3:36de8b9e4b1a 191 public bool InitPipeline()
darienf 3:36de8b9e4b1a 192 {
darienf 3:36de8b9e4b1a 193 bool ret = pipeline.Init();
darienf 3:36de8b9e4b1a 194 return ret;
darienf 3:36de8b9e4b1a 195 }
darienf 3:36de8b9e4b1a 196
darienf 3:36de8b9e4b1a 197 public bool IsConnected()
darienf 3:36de8b9e4b1a 198 {
darienf 3:36de8b9e4b1a 199 return pipeline.IsConnected();
darienf 3:36de8b9e4b1a 200 }
darienf 3:36de8b9e4b1a 201
darienf 3:36de8b9e4b1a 202 public String RawRpcCall(String request, bool reply)
darienf 3:36de8b9e4b1a 203 {
darienf 3:36de8b9e4b1a 204 return pipeline.RawRpcCall(request, reply);
darienf 3:36de8b9e4b1a 205 }
darienf 3:36de8b9e4b1a 206
darienf 3:36de8b9e4b1a 207 public Devices.MAX30101 Init_MAX30101(int slaveAddress)
darienf 3:36de8b9e4b1a 208 {
darienf 3:36de8b9e4b1a 209 MAX30101 = new RPCSupport.Devices.MAX30101(this, slaveAddress);
darienf 3:36de8b9e4b1a 210 return MAX30101;
darienf 3:36de8b9e4b1a 211 }
darienf 3:36de8b9e4b1a 212
darienf 3:36de8b9e4b1a 213 public Devices.MAX30001 Init_MAX30001()
darienf 3:36de8b9e4b1a 214 {
darienf 3:36de8b9e4b1a 215 MAX30001 = new RPCSupport.Devices.MAX30001(this);
darienf 3:36de8b9e4b1a 216 return MAX30001;
darienf 3:36de8b9e4b1a 217 }
darienf 3:36de8b9e4b1a 218
darienf 3:36de8b9e4b1a 219 public Devices.MAX30205 Init_MAX30205(int slaveAddress)
darienf 3:36de8b9e4b1a 220 {
darienf 3:36de8b9e4b1a 221 MAX30205 = new RPCSupport.Devices.MAX30205(this, slaveAddress);
darienf 3:36de8b9e4b1a 222 return MAX30205;
darienf 3:36de8b9e4b1a 223 }
darienf 3:36de8b9e4b1a 224
darienf 3:36de8b9e4b1a 225 public Devices.LIS2HD Init_LIS2HD(int slaveAddress)
darienf 3:36de8b9e4b1a 226 {
darienf 3:36de8b9e4b1a 227 LIS2HD = new RPCSupport.Devices.LIS2HD(this, slaveAddress);
darienf 3:36de8b9e4b1a 228 return LIS2HD;
darienf 3:36de8b9e4b1a 229 }
darienf 3:36de8b9e4b1a 230
darienf 3:36de8b9e4b1a 231 public Devices.I2cDevice Init_I2cDevice()
darienf 3:36de8b9e4b1a 232 {
darienf 3:36de8b9e4b1a 233 I2cDevice = new RPCSupport.Devices.I2cDevice(this);
darienf 3:36de8b9e4b1a 234 return I2cDevice;
darienf 3:36de8b9e4b1a 235 }
darienf 3:36de8b9e4b1a 236
darienf 3:36de8b9e4b1a 237 public Devices.SpiDevice Init_SpiDevice()
darienf 3:36de8b9e4b1a 238 {
darienf 3:36de8b9e4b1a 239 SpiDevice = new RPCSupport.Devices.SpiDevice(this);
darienf 3:36de8b9e4b1a 240 return SpiDevice;
darienf 3:36de8b9e4b1a 241 }
darienf 3:36de8b9e4b1a 242
darienf 3:36de8b9e4b1a 243 public DataLogging.DataLogging Init_Logging()
darienf 3:36de8b9e4b1a 244 {
darienf 3:36de8b9e4b1a 245 dataLogging = new RPCSupport.DataLogging.DataLogging(this);
darienf 3:36de8b9e4b1a 246 return dataLogging;
darienf 3:36de8b9e4b1a 247 }
darienf 3:36de8b9e4b1a 248
darienf 3:36de8b9e4b1a 249 public RPCSupport.Devices.Led Init_Led()
darienf 3:36de8b9e4b1a 250 {
darienf 3:36de8b9e4b1a 251 led = new RPCSupport.Devices.Led(this);
darienf 3:36de8b9e4b1a 252 return led;
darienf 3:36de8b9e4b1a 253 }
darienf 3:36de8b9e4b1a 254
darienf 3:36de8b9e4b1a 255 public RPCSupport.Devices.Testing Init_Testing()
darienf 3:36de8b9e4b1a 256 {
darienf 3:36de8b9e4b1a 257 testing = new RPCSupport.Devices.Testing(this);
darienf 3:36de8b9e4b1a 258 return testing;
darienf 3:36de8b9e4b1a 259 }
darienf 3:36de8b9e4b1a 260
darienf 3:36de8b9e4b1a 261 public RPCSupport.Devices.S25FS512 Init_S25FS512()
darienf 3:36de8b9e4b1a 262 {
darienf 3:36de8b9e4b1a 263 s25FS512 = new RPCSupport.Devices.S25FS512(this);
darienf 3:36de8b9e4b1a 264 return s25FS512;
darienf 3:36de8b9e4b1a 265 }
darienf 3:36de8b9e4b1a 266
darienf 3:36de8b9e4b1a 267
darienf 3:36de8b9e4b1a 268 public void ReadRegister(DeviceSupport.DeviceDetails deviceDetails, DeviceSupport.RegisterInfo reg)
darienf 3:36de8b9e4b1a 269 {
darienf 3:36de8b9e4b1a 270 int hex;
darienf 3:36de8b9e4b1a 271
darienf 3:36de8b9e4b1a 272 switch (deviceDetails.type)
darienf 3:36de8b9e4b1a 273 {
darienf 3:36de8b9e4b1a 274 case DeviceSupport.DeviceDetails.eType.eI2c:
darienf 3:36de8b9e4b1a 275 i2cDevice.ReadReg(deviceDetails, reg);
darienf 3:36de8b9e4b1a 276 break;
darienf 3:36de8b9e4b1a 277 case DeviceSupport.DeviceDetails.eType.eSpi:
darienf 3:36de8b9e4b1a 278 spiDevice.ReadReg(deviceDetails, reg);
darienf 3:36de8b9e4b1a 279 break;
darienf 3:36de8b9e4b1a 280 case DeviceSupport.DeviceDetails.eType.eMAX30001:
darienf 3:36de8b9e4b1a 281 //reg.data[0] = max30001.ReadReg((byte)reg.address);
darienf 3:36de8b9e4b1a 282 hex = max30001.ReadReg((byte)reg.address);
darienf 3:36de8b9e4b1a 283 reg.data[0] = (hex >> 16) & 0xFF;
darienf 3:36de8b9e4b1a 284 reg.data[1] = (hex >> 8) & 0xFF;
darienf 3:36de8b9e4b1a 285 reg.data[2] = hex & 0xFF;
darienf 3:36de8b9e4b1a 286 break;
darienf 3:36de8b9e4b1a 287 case DeviceSupport.DeviceDetails.eType.eMAX30205:
darienf 3:36de8b9e4b1a 288 //reg.data[0] = max30001.ReadReg((byte)reg.address);
darienf 3:36de8b9e4b1a 289 hex = max30205.ReadReg((byte)reg.address);
darienf 3:36de8b9e4b1a 290 reg.data[0] = (hex >> 8) & 0xFF;
darienf 3:36de8b9e4b1a 291 reg.data[1] = hex & 0xFF;
darienf 3:36de8b9e4b1a 292 break;
darienf 3:36de8b9e4b1a 293 }
darienf 3:36de8b9e4b1a 294 }
darienf 3:36de8b9e4b1a 295
darienf 3:36de8b9e4b1a 296 public void WriteRegister(DeviceSupport.DeviceDetails deviceDetails, DeviceSupport.RegisterInfo reg)
darienf 3:36de8b9e4b1a 297 {
darienf 3:36de8b9e4b1a 298 switch (deviceDetails.type)
darienf 3:36de8b9e4b1a 299 {
darienf 3:36de8b9e4b1a 300 case DeviceSupport.DeviceDetails.eType.eI2c:
darienf 3:36de8b9e4b1a 301 i2cDevice.WriteReg(deviceDetails, reg);
darienf 3:36de8b9e4b1a 302 break;
darienf 3:36de8b9e4b1a 303 case DeviceSupport.DeviceDetails.eType.eSpi:
darienf 3:36de8b9e4b1a 304 spiDevice.WriteReg(deviceDetails, reg);
darienf 3:36de8b9e4b1a 305 break;
darienf 3:36de8b9e4b1a 306 case DeviceSupport.DeviceDetails.eType.eMAX30001:
darienf 3:36de8b9e4b1a 307 //max30001.WriteReg((byte)reg.address, reg.data[0]);
darienf 3:36de8b9e4b1a 308 max30001.WriteReg((byte)reg.address, reg.data[2] | reg.data[1] << 8 | reg.data[0] << 16);
darienf 3:36de8b9e4b1a 309 break;
darienf 3:36de8b9e4b1a 310 case DeviceSupport.DeviceDetails.eType.eMAX30205:
darienf 3:36de8b9e4b1a 311 max30001.WriteReg((byte)reg.address, reg.data[1] | reg.data[0] << 8);
darienf 3:36de8b9e4b1a 312 break;
darienf 3:36de8b9e4b1a 313 }
darienf 3:36de8b9e4b1a 314 }
darienf 3:36de8b9e4b1a 315
darienf 3:36de8b9e4b1a 316 RpcLog rpcLog;
darienf 3:36de8b9e4b1a 317 public void ShowRpcLog(bool state)
darienf 3:36de8b9e4b1a 318 {
darienf 3:36de8b9e4b1a 319 if (rpcLog == null)
darienf 3:36de8b9e4b1a 320 {
darienf 3:36de8b9e4b1a 321 rpcLog = new RpcLog();
darienf 3:36de8b9e4b1a 322 }
darienf 3:36de8b9e4b1a 323 rpcLogShown = state;
darienf 3:36de8b9e4b1a 324 if (state == true)
darienf 3:36de8b9e4b1a 325 rpcLog.Show();
darienf 3:36de8b9e4b1a 326 else
darienf 3:36de8b9e4b1a 327 rpcLog.Hide();
darienf 3:36de8b9e4b1a 328 }
darienf 3:36de8b9e4b1a 329
darienf 3:36de8b9e4b1a 330 public bool IsRpcLogShown()
darienf 3:36de8b9e4b1a 331 {
darienf 3:36de8b9e4b1a 332 return rpcLogShown;
darienf 3:36de8b9e4b1a 333 }
darienf 3:36de8b9e4b1a 334
darienf 3:36de8b9e4b1a 335 public string Version()
darienf 3:36de8b9e4b1a 336 {
darienf 3:36de8b9e4b1a 337 return RawRpcCall("/System/ReadVer\r\n", true);
darienf 3:36de8b9e4b1a 338 }
darienf 3:36de8b9e4b1a 339 }
darienf 3:36de8b9e4b1a 340 }