Show / Hide Table of Contents
View Source

Class Uart

Inheritance
System.Object
Uart
Namespace:MraaSharp
Assembly:MraaSharp.dll
Syntax
public class Uart : IDisposable

Constructors

View Source

Uart(Int32)

Declaration
public Uart(int uart)
Parameters
Type Name Description
System.Int32 uart
View Source

Uart(String)

Declaration
public Uart(string path)
Parameters
Type Name Description
System.String path

Properties

View Source

DevPath

Declaration
public string DevPath
{
    get;
}
Property Value
Type Description
System.String

Methods

View Source

Dispose()

Declaration
public void Dispose()
View Source

Flush()

Declaration
public void Flush()
View Source

IsDataAvailable(UInt32)

Declaration
public bool IsDataAvailable(uint millis)
Parameters
Type Name Description
System.UInt32 millis
Returns
Type Description
System.Boolean
View Source

Read(Byte[])

Declaration
public int Read(byte[] buffer)
Parameters
Type Name Description
System.Byte[] buffer
Returns
Type Description
System.Int32
View Source

SetBaudrate(UInt32)

Declaration
public void SetBaudrate(uint baud)
Parameters
Type Name Description
System.UInt32 baud
View Source

SetFlowControl(Boolean, Boolean)

Declaration
public void SetFlowControl(bool xonxoff, bool rtscts)
Parameters
Type Name Description
System.Boolean xonxoff
System.Boolean rtscts
View Source

SetMode(Int32, MraaUartParity, Int32)

Declaration
public void SetMode(int bytesize, MraaUartParity parity, int stopbits)
Parameters
Type Name Description
System.Int32 bytesize
MraaUartParity parity
System.Int32 stopbits
View Source

Stop()

Declaration
public void Stop()
View Source

Write(Byte[])

Declaration
public int Write(byte[] buffer)
Parameters
Type Name Description
System.Byte[] buffer
Returns
Type Description
System.Int32
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX