Initial commit

This commit is contained in:
2014-05-01 16:19:33 -04:00
commit 4c840c3ae0
123 changed files with 52949 additions and 0 deletions

41
owDevice.cs Normal file
View File

@@ -0,0 +1,41 @@
using System;
namespace OneWireAPI
{
public class owDevice
{
#region Member variables
protected owSession _session; // The current session
protected owIdentifier _deviceID; // The ID of this device
#endregion
#region Constructor
public owDevice(owSession session, short[] rawID)
{
// Store the session
_session = session;
// Create a new identifier and give it the ID supplied
_deviceID = new owIdentifier(rawID);
}
#endregion
#region Properties
public owIdentifier ID
{
get { return _deviceID; }
}
public int Family
{
get { return _deviceID.Family; }
}
#endregion
}
}