C# Class GHIElectronics.UAP.Gadgeteer.SoftwareInterfaces.I2cDevice

Inheritance: SocketInterfaces.I2cDevice
Show file Open project: amykatenicho/IoTWorkshop

Public Methods

Method Description
Read ( byte buffer ) : void
Write ( byte buffer ) : void
WriteThenRead ( byte writeBuffer, byte readBuffer ) : void

Private Methods

Method Description
ClearScl ( ) : void
ClearSda ( ) : void
I2cDevice ( DigitalIO sda, DigitalIO scl, Windows settings ) : GHIElectronics.UAP.Gadgeteer.SocketInterfaces
Read ( byte buffer, bool sendStart, bool sendStop ) : void
ReadBit ( ) : bool
ReadScl ( ) : bool
ReadSda ( ) : bool
Receive ( bool sendAck, bool sendStop ) : byte
ReleaseScl ( ) : void
ReleaseSda ( ) : void
SendStart ( ) : bool
SendStop ( ) : bool
Transmit ( bool sendStart, bool sendStop, byte data ) : bool
WaitForScl ( ) : void
Write ( byte buffer, bool sendStart, bool sendStop ) : void
WriteBit ( bool bit ) : bool

Method Details

Read() public method

public Read ( byte buffer ) : void
buffer byte
return void

Write() public method

public Write ( byte buffer ) : void
buffer byte
return void

WriteThenRead() public method

public WriteThenRead ( byte writeBuffer, byte readBuffer ) : void
writeBuffer byte
readBuffer byte
return void