repo time
Dependencies: mbed MAX14720 MAX30205 USBDevice
Diff: HspGuiSourceV301/HSPGui/DeviceDescriptions/DeviceDetails.cs
- Revision:
- 20:6d2af70c92ab
diff -r 002c398f14cc -r 6d2af70c92ab HspGuiSourceV301/HSPGui/DeviceDescriptions/DeviceDetails.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/HspGuiSourceV301/HSPGui/DeviceDescriptions/DeviceDetails.cs Tue Apr 06 06:41:40 2021 +0000 @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace HealthSensorPlatform.DeviceDescriptions +{ + public class DeviceDetails + { + public enum eType + { + eSpi, + eI2c + } + public eType type; + public int i2cInstance; + public int i2cSlaveAddress; + + public int spiCs; + public void InitSpi(int spiCs) { + type = eType.eSpi; + this.spiCs = spiCs; + } + public void InitI2c(int i2cInstance, int i2cSlaveAddress) { + type = eType.eI2c; + this.i2cInstance = i2cInstance; + this.i2cSlaveAddress = i2cSlaveAddress; + } + } +}