Skip to main content

Class Sc16is7x2Extensions

Convenience extension methods for the Sc16is7x2 class

Assembly: Sc16is7x2.dll
View Source
public static class Sc16is7x2Extensions

Methods

CreateRs485SerialPort(Sc16SerialPortName, int, int, Parity, StopBits, bool)

Creates an RS485 Serial Port

View Source
public static ISerialPort CreateRs485SerialPort(this Sc16is7x2.Sc16SerialPortName portName, int baudRate = 9600, int dataBits = 8, Parity parity = Parity.None, StopBits stopBits = StopBits.One, bool invertDE = false)
Returns

Meadow.Hardware.ISerialPort

Parameters
TypeNameDescription
Meadow.Foundation.ICs.IOExpanders.Sc16is7x2.Sc16SerialPortNameportNameThe Sc16SerialPortName name of the channel to create
System.Int32baudRateThe baud rate used in communication
System.Int32dataBitsThe data bits used in communication
Meadow.Hardware.ParityparityThe parity used in communication
Meadow.Hardware.StopBitsstopBitsThe stop bits used in communication
System.BooleaninvertDESet to true to invert the logic (active high) driver enable output signal