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

Inheritance: II2c, IDisposable
Afficher le fichier Open project: porrey/iot

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnDispose ( ) : void
OnInitializeAsync ( ) : System.Threading.Tasks.Task
OnResetAsync ( ) : System.Threading.Tasks.Task

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

I2c() public méthode

public I2c ( byte deviceAddress ) : System
deviceAddress byte
Résultat System

I2c() public méthode

public I2c ( byte deviceAddress, I2cBusSpeed busSpeed ) : System
deviceAddress byte
busSpeed I2cBusSpeed
Résultat System

InitializeAsync() public méthode

Initializes the I2C device.
public InitializeAsync ( ) : Task
Résultat Task

IsAvailable() public static méthode

public static IsAvailable ( ) : bool
Résultat bool

OnDispose() protected méthode

protected OnDispose ( ) : void
Résultat void

OnInitializeAsync() protected méthode

protected OnInitializeAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

OnResetAsync() protected méthode

protected OnResetAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

ReadAsync() public méthode

public ReadAsync ( byte readBuffer ) : Task
readBuffer byte
Résultat Task

ReadBytesAsync() public méthode

public ReadBytesAsync ( int bufferSize ) : Task
bufferSize int
Résultat Task

ReadRegisterBytesAsync() public méthode

public ReadRegisterBytesAsync ( byte registerId, int bufferSize ) : Task
registerId byte
bufferSize int
Résultat Task

ResetAsync() public méthode

public ResetAsync ( ) : System.Threading.Tasks.Task
Résultat System.Threading.Tasks.Task

WriteAsync() public méthode

public WriteAsync ( byte writeBuffer ) : Task
writeBuffer byte
Résultat Task

WriteReadAsync() public méthode

public WriteReadAsync ( byte writeBuffer, byte readBuffer ) : Task
writeBuffer byte
readBuffer byte
Résultat Task