Mcp342x Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base type for MCP342X ADC
public abstract class Mcp342x : IDisposable
type Mcp342x = class
interface IDisposable
Public MustInherit Class Mcp342x
Implements IDisposable
- Inheritance
-
Mcp342x
- Derived
- Implements
Mcp342x(I2c |
Protected constructor to easily generate MCP3426/7 devices whose only difference is channel count and I2C address |
Channel |
Number of channels |
Input |
Gets or sets the input gain. |
Last |
Gets the last transmitted bytes. Debug function |
Last |
Channel most recently read |
Last |
Last conversion result |
Mode |
ADC mode |
Resolution |
Gets or sets the bit resolution of the result. |
Wait |
Wait period before operation is cancelled |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
One |
Initiates One-shot reading and waits for the conversion to finish. |
One |
One-shot read as an asynchronous operation. Initiates read and waits for it to finish. Async API was required as reading in 16bit resolution can take more than 60ms. |
Read |
Reads the channel. |
Read |
Reads the channel. Async API is mostly useful for greater resolutions and one-shot mode, when conversion time can be significant. |
Read |
Read (or load) configuration byte |
Read |
Reads value on the specified channel |
Read |
Initiates reading value |
Set |
Sets the lower time limit in ms. If the current configuration reads data faster the synchronous API is used. This can save some overhead. |
Set |
Write configuration register and read back value |
Wait |
Waits for conversion to complete |
Wait |
Initiates waiting for conversion |
Write |
Writes configuration |
On |
Event called when conversion is complete |
ผลิตภัณฑ์ | เวอร์ชัน |
---|---|
.NET IoT Libraries | 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0 |