Files
OneWireAPI/Device.cs
2015-01-16 18:16:37 -05:00

24 lines
482 B
C#

namespace OneWireAPI
{
public class Device
{
protected Session Session;
public Identifier Id { get; protected set; }
public Device(Session session, short[] rawId)
{
// Store the session
Session = session;
// Create a new identifier and give it the ID supplied
Id = new Identifier(rawId);
}
public int Family
{
get { return Id.Family; }
}
}
}