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()

Initializes a new instance of the Ft232h class.

Declaration
public Ft232h()

Remarks

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

Properties

DefaultClockConfiguration

The default SPI clock configuration

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 with the specified clock and data pins and bus speed.

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

Parameters

Type Name Description
IPin clock

The clock pin.

IPin data

The data pin.

I2cBusSpeed busSpeed

The I2C bus speed.

Returns

Type Description
II2cBus

The I2C bus.

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 with the specified pins and bus speed.

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

Parameters

Type Name Description
IPin[] pins

The I2C clock and data pins.

I2cBusSpeed busSpeed

The I2C bus speed.

Returns

Type Description
II2cBus

The I2C bus.

Remarks

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

CreateI2cBus(int)

Creates an I2C bus with the specified bus number and clock rate.

Declaration
public II2cBus CreateI2cBus(int busNumber = 0)

Parameters

Type Name Description
int busNumber

The bus number.

Returns

Type Description
II2cBus

The I2C bus.

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 with the specified bus number and clock rate.

Declaration
public II2cBus CreateI2cBus(int busNumber, I2cBusSpeed busSpeed)

Parameters

Type Name Description
int busNumber

The bus number.

I2cBusSpeed busSpeed

The I2C bus speed.

Returns

Type Description
II2cBus

The I2C bus.

Remarks

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

CreateSpiBus()

Creates an SPI bus with the default configuration.

Declaration
public ISpiBus CreateSpiBus()

Returns

Type Description
ISpiBus

The SPI bus.

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 an SPI bus with the specified clock, MOSI, MISO pins, and configuration.

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

Parameters

Type Name Description
IPin clock

The clock pin.

IPin mosi

The MOSI (Master Out Slave In) pin.

IPin miso

The MISO (Master In Slave Out) pin.

SpiClockConfiguration config

The SPI configuration.

Returns

Type Description
ISpiBus

The SPI bus.

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 an SPI bus with the specified clock, MOSI, MISO pins, and configuration.

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

Parameters

Type Name Description
IPin clock

The clock pin.

IPin mosi

The MOSI (Master Out Slave In) pin.

IPin miso

The MISO (Master In Slave Out) pin.

Frequency speed

The SPI frequency.

Returns

Type Description
ISpiBus

The SPI bus.

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 an FT232H IO expander

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 an FT232H IO expander

Declaration
protected ~Ft232h()

Remarks

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