C# Class GHIElectronics.UAP.Gadgeteer.CY8C9560A

Mostrar archivo Open project: amykatenicho/IoTWorkshop

Public Methods

Method Description
CY8C9560A ( Windows.Devices.I2c.I2cDevice device, Windows.Devices.Gpio.GpioPin interrupt ) : System
Dispose ( ) : void
GetAddress ( bool a0, bool a1, bool a2, bool a3, bool a4, bool a5, bool a6 ) : byte
ReadDigital ( Pin pin ) : bool
SetInput ( Pin pin ) : void
SetInterrupt ( Pin pin, Action onInterrupt ) : void
SetOutput ( Pin pin ) : void
SetPwm ( Pin pin, double frequency, double dutyCycle ) : void
WriteDigital ( Pin pin, bool value ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
ClearBits ( Register register, int mask ) : void
IsShadowed ( Register register ) : bool
OnInterrupt ( Windows.Devices.Gpio.GpioPin sender, Windows.Devices.Gpio.GpioPinValueChangedEventArgs e ) : void
ReadRegister ( Register register ) : byte
ReadRegisters ( Register register, int count ) : byte[]
SetBits ( Register register, int mask ) : void
WriteRegister ( Register register, int value ) : void

Method Details

CY8C9560A() public method

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

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, bool a3, bool a4, bool a5, bool a6 ) : byte
a0 bool
a1 bool
a2 bool
a3 bool
a4 bool
a5 bool
a6 bool
return byte

ReadDigital() public method

public ReadDigital ( Pin pin ) : bool
pin Pin
return bool

SetInput() public method

public SetInput ( Pin pin ) : void
pin Pin
return void

SetInterrupt() public method

public SetInterrupt ( Pin pin, Action onInterrupt ) : void
pin Pin
onInterrupt Action
return void

SetOutput() public method

public SetOutput ( Pin pin ) : void
pin Pin
return void

SetPwm() public method

public SetPwm ( Pin pin, double frequency, double dutyCycle ) : void
pin Pin
frequency double
dutyCycle double
return void

WriteDigital() public method

public WriteDigital ( Pin pin, bool value ) : void
pin Pin
value bool
return void