repo time
Dependencies: mbed MAX14720 MAX30205 USBDevice
HspGuiSourceV301/HSPGui/DeviceDescriptions/DeviceDetails.cs@20:6d2af70c92ab, 2021-04-06 (annotated)
- Committer:
- darienf
- Date:
- Tue Apr 06 06:41:40 2021 +0000
- Revision:
- 20:6d2af70c92ab
another repo
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
darienf | 20:6d2af70c92ab | 1 | using System; |
darienf | 20:6d2af70c92ab | 2 | using System.Collections.Generic; |
darienf | 20:6d2af70c92ab | 3 | using System.Linq; |
darienf | 20:6d2af70c92ab | 4 | using System.Text; |
darienf | 20:6d2af70c92ab | 5 | |
darienf | 20:6d2af70c92ab | 6 | namespace HealthSensorPlatform.DeviceDescriptions |
darienf | 20:6d2af70c92ab | 7 | { |
darienf | 20:6d2af70c92ab | 8 | public class DeviceDetails |
darienf | 20:6d2af70c92ab | 9 | { |
darienf | 20:6d2af70c92ab | 10 | public enum eType |
darienf | 20:6d2af70c92ab | 11 | { |
darienf | 20:6d2af70c92ab | 12 | eSpi, |
darienf | 20:6d2af70c92ab | 13 | eI2c |
darienf | 20:6d2af70c92ab | 14 | } |
darienf | 20:6d2af70c92ab | 15 | public eType type; |
darienf | 20:6d2af70c92ab | 16 | public int i2cInstance; |
darienf | 20:6d2af70c92ab | 17 | public int i2cSlaveAddress; |
darienf | 20:6d2af70c92ab | 18 | |
darienf | 20:6d2af70c92ab | 19 | public int spiCs; |
darienf | 20:6d2af70c92ab | 20 | public void InitSpi(int spiCs) { |
darienf | 20:6d2af70c92ab | 21 | type = eType.eSpi; |
darienf | 20:6d2af70c92ab | 22 | this.spiCs = spiCs; |
darienf | 20:6d2af70c92ab | 23 | } |
darienf | 20:6d2af70c92ab | 24 | public void InitI2c(int i2cInstance, int i2cSlaveAddress) { |
darienf | 20:6d2af70c92ab | 25 | type = eType.eI2c; |
darienf | 20:6d2af70c92ab | 26 | this.i2cInstance = i2cInstance; |
darienf | 20:6d2af70c92ab | 27 | this.i2cSlaveAddress = i2cSlaveAddress; |
darienf | 20:6d2af70c92ab | 28 | } |
darienf | 20:6d2af70c92ab | 29 | } |
darienf | 20:6d2af70c92ab | 30 | } |