Skip to main content

Class Mcp4xxx

Represents a Mcp4xxx digital potentimeter or rheostat

Assembly: Mcp4xxx.dll​
View Source​
Declaration
public abstract class Mcp4xxx : ISpiPeripheral

Derived:
Meadow.Foundation.ICs.DigiPots.Mcp4xx1

Implements:
Meadow.Hardware.ISpiPeripheral

Properties​

SpiComms​

Gets the ISpiCommunications used to ineract with the SPI bus

View Source​
Declaration
protected ISpiCommunications SpiComms { get; }

DefaultSpiBusMode​

Default SPI bus mode

View Source​
Declaration
public SpiClockConfiguration.Mode DefaultSpiBusMode { get; }

DefaultSpiBusSpeed​

Default SPI bus speed for the peripheral

View Source​
Declaration
public Frequency DefaultSpiBusSpeed { get; }

MaxResistance​

Gets the maximum resistance of the digital potentiometer.

View Source​
Declaration
public Resistance MaxResistance { get; }

MaxSteps​

Gets the maximum number of steps or resolution.

View Source​
Declaration
public abstract int MaxSteps { get; }

SpiBusMode​

Current SPI bus mode

View Source​
Declaration
public SpiClockConfiguration.Mode SpiBusMode { get; set; }

SpiBusSpeed​

Current SPI bus speed

View Source​
Declaration
public Frequency SpiBusSpeed { get; set; }

Implements​

  • Meadow.Hardware.ISpiPeripheral