RtBus Class

Encapsulates a hardware bus as a stream.

Inheritance Hierarchy

System.Object
  System.MarshalByRefObject
    ISystem.IO.Stream
      IntervalZero.MaxRT.wRTOS.RtApi.IO.RtBus

Namespace:  IntervalZero.MaxRT.wRTOS.RtApi.IO
Assembly:  IntervalZero.MaxRT.wRTOS (in IntervalZero.MaxRT.wRTOS.dll) Version: 1.0.0.0 (File version: 1.0.1)

Syntax

Copy
public class RtBus : Stream

 

The RtBus class exposes the following members.

Constructors

 

Name Description

Public method

RtBus

Initializes an instance of the Bus class.

Properties

  Name Description

Public property

BusDataType

The bus data type.

Public property

BusNumber

The bus number.

Public property

CanRead

Always returns true.

(Overrides Stream.CanRead.)

Public property

CanSeek

Always returns true.

(Overrides Stream.CanSeek.)

Public property

CanWrite

Always returns true.

(Overrides Stream.CanWrite.)

Public property

Length

Gets the mapped length of the bus.

(Overrides Stream.Length.)

Public property

Position

Gets or sets the current position (offset from the base address) in the stream.

(Overrides Stream.Position.)

Public property

Slot

The slot on the bus.

Methods

  Name Description

Public method

Flush

Overrides method Stream.Flush(). Currently, this method does nothing.

(Overrides Stream.Flush.)

Public method

Read

Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes.

(Overrides Stream.Read (Byte, Int32, Int32).)

Public method

Seek

Sets the position within the current stream.

(Overrides Stream;Seek (Int64, SeekOrigin).)

Public method

SetLength

Not supported. Throws a NotSupportedException.

(Overrides Stream;SetLength (Int64).)

Public method Static member

TranslateBusAddress

Translates a bus address.

Public method

Write

Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.

(Overrides Stream;Write (Byte, Int32, Int32).)

See Also: