C# Class Porrey.Uwp.IoT.Sensors.I2c

Inheritance: II2c, IDisposable
Datei anzeigen Open project: porrey/iot

Public Methods

Method Description
Dispose ( ) : void
I2c ( byte deviceAddress ) : System
I2c ( byte deviceAddress, I2cBusSpeed busSpeed ) : System
InitializeAsync ( ) : Task

Initializes the I2C device.

IsAvailable ( ) : bool
ReadAsync ( byte readBuffer ) : Task
ReadBytesAsync ( int bufferSize ) : Task
ReadRegisterBytesAsync ( byte registerId, int bufferSize ) : Task
ResetAsync ( ) : System.Threading.Tasks.Task
WriteAsync ( byte writeBuffer ) : Task
WriteReadAsync ( byte writeBuffer, byte readBuffer ) : Task

Protected Methods

Method Description
OnDispose ( ) : void
OnInitializeAsync ( ) : System.Threading.Tasks.Task
OnResetAsync ( ) : System.Threading.Tasks.Task

Method Details

Dispose() public method

public Dispose ( ) : void
return void

I2c() public method

public I2c ( byte deviceAddress ) : System
deviceAddress byte
return System

I2c() public method

public I2c ( byte deviceAddress, I2cBusSpeed busSpeed ) : System
deviceAddress byte
busSpeed I2cBusSpeed
return System

InitializeAsync() public method

Initializes the I2C device.
public InitializeAsync ( ) : Task
return Task

IsAvailable() public static method

public static IsAvailable ( ) : bool
return bool

OnDispose() protected method

protected OnDispose ( ) : void
return void

OnInitializeAsync() protected method

protected OnInitializeAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

OnResetAsync() protected method

protected OnResetAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

ReadAsync() public method

public ReadAsync ( byte readBuffer ) : Task
readBuffer byte
return Task

ReadBytesAsync() public method

public ReadBytesAsync ( int bufferSize ) : Task
bufferSize int
return Task

ReadRegisterBytesAsync() public method

public ReadRegisterBytesAsync ( byte registerId, int bufferSize ) : Task
registerId byte
bufferSize int
return Task

ResetAsync() public method

public ResetAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WriteAsync() public method

public WriteAsync ( byte writeBuffer ) : Task
writeBuffer byte
return Task

WriteReadAsync() public method

public WriteReadAsync ( byte writeBuffer, byte readBuffer ) : Task
writeBuffer byte
readBuffer byte
return Task