repo time

Dependencies:   mbed MAX14720 MAX30205 USBDevice

HspGuiSourceV301/HSPGui/DeviceDescriptions/DeviceDetails.cs

Committer:
darienf
Date:
2021-04-06
Revision:
20:6d2af70c92ab

File content as of revision 20:6d2af70c92ab:

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;
        }
    }
}