C# Class Rinsen.IoT.OneWire.DS2482_100

Inheritance: IDisposable
显示文件 Open project: Rinsen/OneWire Class Usage Examples

Public Methods

Method Description
DS2482_100 ( Windows.Devices.I2c.I2cDevice i2cDevice ) : System
Dispose ( ) : void
EnableStrongPullup ( ) : void
OneWireFamilySkipSetup ( ) : void

Setup the search to skip the current device type on the next call to OWNext().

OneWireFirst ( ) : bool

Find the 'first' devices on the 1-Wire bus

OneWireReadBit ( ) : bool

Read 1 bit of data from the 1-Wire bus

OneWireReadByte ( ) : byte

Read 1 bit of data from the 1-Wire bus

OneWireReset ( ) : bool

Reset the 1-Wire bus and return the presence of any device

OneWireSearch ( ) : bool

Perform the 1-Wire Search Algorithm on the 1-Wire bus using the existing search state.

OneWireTargetSetup ( byte family_code ) : void

Setup the search to find the device type 'family_code' on the next call to OWNext() if it is present.

OneWireVerify ( ) : bool

Verify the device with the ROM number in ROM_NO buffer is present.

OneWireWriteBit ( bool bit_value ) : void

Send 1 bit of data to teh 1-Wire bus

OneWireWriteByte ( byte byte_value ) : void

Send 8 bits of data to the 1-Wire bus

OnoWireNext ( ) : bool

Find the 'next' devices on the 1-Wire bus

ReadStatus ( bool setReadPointerToStatus = false ) : byte

Read status byte from DS2482_100

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
WaitForOneWireReady ( ) : void
docrc8 ( byte value ) : byte

Method Details

DS2482_100() public method

public DS2482_100 ( Windows.Devices.I2c.I2cDevice i2cDevice ) : System
i2cDevice Windows.Devices.I2c.I2cDevice
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

EnableStrongPullup() public method

public EnableStrongPullup ( ) : void
return void

OneWireFamilySkipSetup() public method

Setup the search to skip the current device type on the next call to OWNext().
public OneWireFamilySkipSetup ( ) : void
return void

OneWireFirst() public method

Find the 'first' devices on the 1-Wire bus
public OneWireFirst ( ) : bool
return bool

OneWireReadBit() public method

Read 1 bit of data from the 1-Wire bus
public OneWireReadBit ( ) : bool
return bool

OneWireReadByte() public method

Read 1 bit of data from the 1-Wire bus
public OneWireReadByte ( ) : byte
return byte

OneWireReset() public method

Reset the 1-Wire bus and return the presence of any device
public OneWireReset ( ) : bool
return bool

OneWireSearch() public method

Perform the 1-Wire Search Algorithm on the 1-Wire bus using the existing search state.
public OneWireSearch ( ) : bool
return bool

OneWireTargetSetup() public method

Setup the search to find the device type 'family_code' on the next call to OWNext() if it is present.
public OneWireTargetSetup ( byte family_code ) : void
family_code byte
return void

OneWireVerify() public method

Verify the device with the ROM number in ROM_NO buffer is present.
public OneWireVerify ( ) : bool
return bool

OneWireWriteBit() public method

Send 1 bit of data to teh 1-Wire bus
public OneWireWriteBit ( bool bit_value ) : void
bit_value bool
return void

OneWireWriteByte() public method

Send 8 bits of data to the 1-Wire bus
public OneWireWriteByte ( byte byte_value ) : void
byte_value byte byte to send
return void

OnoWireNext() public method

Find the 'next' devices on the 1-Wire bus
public OnoWireNext ( ) : bool
return bool

ReadStatus() public method

Read status byte from DS2482_100
public ReadStatus ( bool setReadPointerToStatus = false ) : byte
setReadPointerToStatus bool Set to true if read pointer should be moved to status register before reading status
return byte