C# 클래스 Raspberry.IO.InterIntegratedCircuit.I2cDriver

Represents a driver for I2C devices.
상속: IDisposable
파일 보기 프로젝트 열기: raspberry-sharp/raspberry-sharp-io 1 사용 예제들

공개 메소드들

메소드 설명
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