mirror of
https://github.com/ckaczor/OneWireAPI.git
synced 2026-01-14 01:25:40 -05:00
28 lines
580 B
C#
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; }
|
|
}
|
|
}
|
|
}
|