C# Class GHIElectronics.UAP.Drivers.PCA9535

Show file Open project: amykatenicho/IoTWorkshop Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GetAddress ( bool a0, bool a1, bool a2 ) : byte
PCA9535 ( Windows.Devices.I2c.I2cDevice device, Windows.Devices.Gpio.GpioPin interrupt ) : System
Read ( int pin ) : bool
SetDriveMode ( int pin, GpioPinDriveMode driveMode ) : void
Write ( int pin, bool state ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
OnInterruptValueChanged ( Windows.Devices.Gpio.GpioPin sender, Windows.Devices.Gpio.GpioPinValueChangedEventArgs args ) : void
OnPinValueChanged ( int pin, bool newState ) : void
ReadRegister ( Register register ) : byte
WriteRegister ( Register register, int value ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetAddress() public static method

public static GetAddress ( bool a0, bool a1, bool a2 ) : byte
a0 bool
a1 bool
a2 bool
return byte

PCA9535() public method

public PCA9535 ( Windows.Devices.I2c.I2cDevice device, Windows.Devices.Gpio.GpioPin interrupt ) : System
device Windows.Devices.I2c.I2cDevice
interrupt Windows.Devices.Gpio.GpioPin
return System

Read() public method

public Read ( int pin ) : bool
pin int
return bool

SetDriveMode() public method

public SetDriveMode ( int pin, GpioPinDriveMode driveMode ) : void
pin int
driveMode GpioPinDriveMode
return void

Write() public method

public Write ( int pin, bool state ) : void
pin int
state bool
return void