Darien Figueroa / Mbed 2 deprecated repo3

Dependencies:   mbed MAX14720 MAX30205 USBDevice

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers DeviceDetails.cs Source File

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 }