Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed MAX14720 MAX30205 USBDevice
DeviceDetails.cs
00001 using System; 00002 using System.Collections.Generic; 00003 using System.Linq; 00004 using System.Text; 00005 00006 namespace HealthSensorPlatform.DeviceDescriptions 00007 { 00008 public class DeviceDetails 00009 { 00010 public enum eType 00011 { 00012 eSpi, 00013 eI2c 00014 } 00015 public eType type; 00016 public int i2cInstance; 00017 public int i2cSlaveAddress; 00018 00019 public int spiCs; 00020 public void InitSpi(int spiCs) { 00021 type = eType.eSpi; 00022 this.spiCs = spiCs; 00023 } 00024 public void InitI2c(int i2cInstance, int i2cSlaveAddress) { 00025 type = eType.eI2c; 00026 this.i2cInstance = i2cInstance; 00027 this.i2cSlaveAddress = i2cSlaveAddress; 00028 } 00029 } 00030 }
Generated on Thu Jul 28 2022 18:07:13 by
1.7.2