Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h
Characteristic Locus
Inheritance object > Ft232h
Implements IDisposable IDigitalInputOutputController IDigitalInputController ISpiController IDigitalOutputController II2cController IPinController
Inherited Members object.Equals(object) object.Equals(object, object) object.GetHashCode() object.GetType() object.MemberwiseClone() object.ReferenceEquals(object, object) object.ToString()
Namespace Meadow.Foundation.ICs.IOExpanders
Assembly Ft232h.dll

Syntax

public class Ft232h : IDisposable, IDigitalInputOutputController, IDigitalInputController, ISpiController, IDigitalOutputController, II2cController, IPinController

Constructors

Ft232h()

Represents a DS3502 digital potentiometer

Declaration
public Ft232h()

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

Properties

DefaultClockConfiguration

Represents a DS3502 digital potentiometer

Declaration
public static SpiClockConfiguration DefaultClockConfiguration { get; }

Property Value

Type Description
SpiClockConfiguration

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

Pins

The pins

Declaration
public Ft232h.PinDefinitions Pins { get; }

Property Value

Type Description
Ft232h.PinDefinitions

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

Methods

CreateDigitalInputPort(IPin)

Creates an IDigitalInputPort on the specified pin with Disabled resistor mode

Declaration
public IDigitalInputPort CreateDigitalInputPort(IPin pin)

Parameters

Type Name Description
IPin pin

The pin on which to create the port.

Returns

Type Description
IDigitalInputPort

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateDigitalInputPort(IPin, ResistorMode)

Creates an IDigitalInputPort on the specified pin.

Declaration
public IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)

Parameters

Type Name Description
IPin pin

The pin on which to create the port.

ResistorMode resistorMode

The ResistorMode specifying whether an external pull-up/pull-down resistor is used, or an internal pull-up/pull-down resistor should be configured for default state.

Returns

Type Description
IDigitalInputPort

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateDigitalOutputPort(IPin, bool, OutputType)

Creates an IDigitalOutputPort on the specified pin.

Declaration
public IDigitalOutputPort CreateDigitalOutputPort(IPin pin, bool initialState = false, OutputType initialOutputType = OutputType.PushPull)

Parameters

Type Name Description
IPin pin

The pin on which to create the port.

bool initialState

The default initial state of the port, either LOW (false), or HIGH (true).

OutputType initialOutputType

Whether the port is initially configured as PushPull or OpenDrain. PushPull by default.

Returns

Type Description
IDigitalOutputPort

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateI2cBus(IPin, IPin, I2cBusSpeed)

Creates an I2C bus instance for the requested pins and bus speed

Declaration
public II2cBus CreateI2cBus(IPin clock, IPin data, I2cBusSpeed busSpeed)

Parameters

Type Name Description
IPin clock

The I2C clock pin

IPin data

The I2C data pin

I2cBusSpeed busSpeed

The bus speed

Returns

Type Description
II2cBus

An instance of an I2cBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateI2cBus(IPin[], I2cBusSpeed)

Creates an I2C bus instance for the requested pins and bus speed

Declaration
public II2cBus CreateI2cBus(IPin[] pins, I2cBusSpeed busSpeed)

Parameters

Type Name Description
IPin[] pins

An array of two pins holding the I2C clock and data pins

I2cBusSpeed busSpeed

The bus speed

Returns

Type Description
II2cBus

An instance of an I2cBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateI2cBus(int)

Represents a DS3502 digital potentiometer

Declaration
public II2cBus CreateI2cBus(int busNumber = 0)

Parameters

Type Name Description
int busNumber

Returns

Type Description
II2cBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateI2cBus(int, I2cBusSpeed)

Creates an I2C bus instance for the default pins and the requested bus speed

Declaration
public II2cBus CreateI2cBus(int busNumber, I2cBusSpeed busSpeed)

Parameters

Type Name Description
int busNumber

The bus number

I2cBusSpeed busSpeed

The bus speed

Returns

Type Description
II2cBus

An instance of an I2cBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateSpiBus()

Represents a DS3502 digital potentiometer

Declaration
public ISpiBus CreateSpiBus()

Returns

Type Description
ISpiBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateSpiBus(IPin, IPin, IPin, SpiClockConfiguration)

Creates a SPI bus instance for the requested control pins and bus speed

Declaration
public ISpiBus CreateSpiBus(IPin clock, IPin mosi, IPin miso, SpiClockConfiguration config)

Parameters

Type Name Description
IPin clock

The IPin instance to use as the bus clock

IPin mosi
IPin miso
SpiClockConfiguration config

The bus clock configuration parameters

Returns

Type Description
ISpiBus

An instance of an IISpiBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

CreateSpiBus(IPin, IPin, IPin, Frequency)

Creates a SPI bus instance for the requested control pins and bus speed

Declaration
public ISpiBus CreateSpiBus(IPin clock, IPin mosi, IPin miso, Frequency speed)

Parameters

Type Name Description
IPin clock

The IPin instance to use as the bus clock

IPin mosi
IPin miso
Frequency speed

The bus speed

Returns

Type Description
ISpiBus

An instance of an IISpiBus

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

Dispose(bool)

Represents a DS3502 digital potentiometer

Declaration
protected virtual void Dispose(bool disposing)

Parameters

Type Name Description
bool disposing

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h

~Ft232h()

Represents a DS3502 digital potentiometer

Declaration
protected ~Ft232h()

Remarks

Ft232h
Status Status badge: working
Source code GitHub
NuGet package NuGet Gallery for Meadow.Foundation.ICs.IOExpanders.Ft232h