Mcp3428 Class

Definition

Represents MCP3428 ADC

public class Mcp3428 : Iot.Device.Mcp3428.Mcp342x
type Mcp3428 = class
    inherit Mcp342x
Public Class Mcp3428
Inherits Mcp342x
Inheritance
Mcp3428

Constructors

Mcp3428(I2cDevice)

Constructs Mcp3428 instance

Mcp3428(I2cDevice, AdcMode, AdcResolution, AdcGain)

Constructs Mcp3428 instance

Properties

ChannelCount

Number of channels

(Inherited from Mcp342x)
InputGain

Gets or sets the input gain.

(Inherited from Mcp342x)
LastBytes

Gets the last transmitted bytes. Debug function

(Inherited from Mcp342x)
LastChannel

Channel most recently read

(Inherited from Mcp342x)
LastConversion

Last conversion result

(Inherited from Mcp342x)
Mode

ADC mode

(Inherited from Mcp342x)
Resolution

Gets or sets the bit resolution of the result.

(Inherited from Mcp342x)
WaitTime

Wait period before operation is cancelled

(Inherited from Mcp342x)

Methods

Dispose() (Inherited from Mcp342x)
I2CAddressFromPins(PinState, PinState)

Determine device I2C address based on the configuration pin states.

OneShotRead(Int32)

Initiates One-shot reading and waits for the conversion to finish.

(Inherited from Mcp342x)
OneShotReadAsync(Int32, CancellationToken)

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.

(Inherited from Mcp342x)
ReadChannel(Int32)

Reads the channel.

(Inherited from Mcp342x)
ReadChannelAsync(Int32, CancellationToken)

Reads the channel. Async API is mostly useful for greater resolutions and one-shot mode, when conversion time can be significant.

(Inherited from Mcp342x)
ReadConfigByte(Byte)

Read (or load) configuration byte

(Inherited from Mcp342x)
ReadValue(Int32)

Reads value on the specified channel

(Inherited from Mcp342x)
ReadValueAsync(Int32, CancellationToken)

Initiates reading value

(Inherited from Mcp342x)
SetConfig(Int32, AdcMode, AdcResolution, AdcGain, IList<String>)

Write configuration register and read back value

(Inherited from Mcp342x)
WaitForConversion(Nullable<TimeSpan>, Action<Int32>, CancellationToken)

Waits for conversion to complete

(Inherited from Mcp342x)
WaitForConversionAsync(Nullable<TimeSpan>, Action<Int32>, CancellationToken)

Initiates waiting for conversion

(Inherited from Mcp342x)
WriteConfig(Byte)

Writes configuration

(Inherited from Mcp342x)

Events

OnConversion

Event called when conversion is complete

(Inherited from Mcp342x)

Applies to