메소드 | 설명 | |
---|---|---|
Decrease ( |
Decriments the volatile wiper for the given number of steps.
|
|
Dispose ( ) : void |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MicrochipPotDeviceController. The Dispose method leaves the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MicrochipPotDeviceController in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MicrochipPotDeviceController so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MicrochipPotDeviceController was occupying. |
|
GetTerminalConfiguration ( |
Gets the terminal configuration for the specified channel.
|
|
GetValue ( |
Receives the current wiper's value from the device.
|
|
Increase ( |
Increments the volatile wiper for the given number of steps.
|
|
MicrochipPotDeviceController ( II2CBus device, |
Initializes a new instance of the CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MicrochipPotDeviceController class with the I2C bus device this instance is connected to and the bus address of that device.
|
|
SetTerminalConfiguration ( |
Sets the device's terminal configuration.
|
|
SetValue ( |
Sets the wiper's value in the device.
|
|
SetWiperLock ( |
Enables or disables the wiper's lock.
|
|
SetWriteProtection ( System.Boolean enabled ) : void |
Enables or disables the device's write-protection.
|
메소드 | 설명 | |
---|---|---|
IncreaseOrDecrease ( Byte memAddr, System.Boolean increase, |
Writes n (steps) bytes to the device holding the wiper's address and the increment or decrement command and value.
|
|
Read ( Byte memAddr ) : |
Reads two bytes from the device at the given memory address.
|
|
SetBit ( |
Sets or clears a bit in the specified memory (integer).
|
|
Write ( Byte memAddr, |
Writes 9 bits of the give value to the device.
|
public Decrease ( |
||
channel | /// The device channel the wiper is on. /// | |
steps | /// The number of steps. /// | |
리턴 | void |
public GetTerminalConfiguration ( |
||
channel | /// The channel to get the terminal configuration for. /// | |
리턴 |
public GetValue ( |
||
channel | /// The device channel the wiper is on. /// | |
nonVolatile | System.Boolean | /// Set true to read from non-volatile memory, false to read from /// volatile memory. /// |
리턴 |
public Increase ( |
||
channel | /// The device channel the wiper is on. /// | |
steps | /// The number of steps. /// | |
리턴 | void |
public MicrochipPotDeviceController ( II2CBus device, |
||
device | II2CBus | /// The I2C bus device this instance is connected to. /// |
busAddress | /// The bus address of the device. /// | |
리턴 | System |
public SetTerminalConfiguration ( |
||
config | /// The configuration to set. /// | |
리턴 | void |
public SetValue ( |
||
channel | /// The device channel the wiper is on. /// | |
value | /// The wiper's value. /// | |
nonVolatile | System.Boolean | /// Set true to write to non-volatile memory, or false to write to volatile memory. /// |
리턴 | void |
public SetWiperLock ( |
||
channel | /// The channel of the wiper to set the lock for. /// | |
locked | System.Boolean | /// Set true to enable the lock, or false to disable. /// |
리턴 | void |
public SetWriteProtection ( System.Boolean enabled ) : void | ||
enabled | System.Boolean | /// Set true to enable write protection, or false to disable. /// |
리턴 | void |