C# Класс Raspberry.IO.InterIntegratedCircuit.I2cDriver

Represents a driver for I2C devices.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Connect ( int deviceAddress ) : Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection

Connects the specified device address.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

I2cDriver ( ProcessorPin sdaPin, ProcessorPin sclPin ) : System

Initializes a new instance of the I2cDriver class.

Приватные методы

Метод Описание
EnsureDeviceAddress ( int deviceAddress ) : void
Execute ( int deviceAddress, Raspberry.IO.InterIntegratedCircuit.I2cTransaction transaction ) : void

Executes the specified transaction.

GetBscBase ( ProcessorPin sdaPin, ProcessorPin sclPin ) : uint
GetProcessorBscAddress ( Processor processor ) : uint
GetProcessorGpioAddress ( Processor processor ) : uint
GetWaitInterval ( ushort actualDivider ) : int
Read ( int deviceAddress, byte buffer ) : void
ReadUInt32 ( IntPtr address ) : uint
SafeReadUInt32 ( IntPtr address ) : uint
SafeWriteUInt32 ( IntPtr address, uint value ) : void
SetPinMode ( uint pin, uint mode ) : bool

Wait ( uint remaining ) : void
Write ( int deviceAddress, byte buffer ) : void
WriteUInt32 ( IntPtr address, uint value ) : void
WriteUInt32Mask ( IntPtr address, uint value, uint mask ) : void

Описание методов

Connect() публичный Метод

Connects the specified device address.
public Connect ( int deviceAddress ) : Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection
deviceAddress int The device address.
Результат Raspberry.IO.InterIntegratedCircuit.I2cDeviceConnection

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

I2cDriver() публичный Метод

Initializes a new instance of the I2cDriver class.
public I2cDriver ( ProcessorPin sdaPin, ProcessorPin sclPin ) : System
sdaPin ProcessorPin The SDA pin.
sclPin ProcessorPin The SCL pin.
Результат System