Files
OneWireAPI/owDevice.cs
2015-01-16 17:55:23 -05:00

28 lines
580 B
C#

namespace OneWireAPI
{
public class owDevice
{
protected owSession Session;
protected owIdentifier DeviceId;
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);
}
public owIdentifier Id
{
get { return DeviceId; }
}
public int Family
{
get { return DeviceId.Family; }
}
}
}