Class DeviceDriverStream
This stream encapsulates the interface between a user mode application and a device driver on the controller.
Implements
Inherited Members
Namespace: ABB.Robotics.Controllers
Assembly: ABB.Robotics.Controllers.PC.dll
Syntax
public class DeviceDriverStream : ControllerBoundStream, IDisposable
Constructors
DeviceDriverStream(Controller, String)
Opens the stream with Read access.
Declaration
public DeviceDriverStream(Controller controller, string name)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | Controller that hosts the stream. |
String | name | Name of device. |
DeviceDriverStream(Controller, String, DeviceAccess)
Opens a stream with the specified name and access.
Declaration
public DeviceDriverStream(Controller controller, string name, DeviceAccess access)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | Controller that hosts the stream. |
String | name | Name of stream to open. |
DeviceAccess | access | Access of stream. |
DeviceDriverStream(Controller, String, DeviceAccess, Int32)
Opens a stream with the specified name and access.
Declaration
public DeviceDriverStream(Controller controller, string name, DeviceAccess access, int flags)
Parameters
Type | Name | Description |
---|---|---|
Controller | controller | Controller that hosts the stream. |
String | name | Name of stream to open. |
DeviceAccess | access | Access of stream. |
Int32 | flags | Device specific flags. |
Properties
CanRead
Check if the stream can be read.
Declaration
public override bool CanRead { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
CanSeek
Checks if the stream can be seeked.
Declaration
public override bool CanSeek { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
CanWrite
Checks if the stream can be written.
Declaration
public override bool CanWrite { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Length
Not possible to read length from a device stream.
Declaration
public override long Length { get; }
Property Value
Type | Description |
---|---|
Int64 |
Overrides
Position
It is not possible the seek on a device stream.
Declaration
public override long Position { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Overrides
Methods
Close()
Closes the stream object.
Declaration
public override void Close()
Overrides
Flush()
Flush data to stream, currently not implemented, all writes are imediate against the controller.
Declaration
public override void Flush()
Overrides
Read(Byte[], Int32, Int32)
Reads a sequence of bytes from the stream.
Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | Buffer for read data. |
Int32 | offset | Offset in buffer. |
Int32 | count | Maximum number of bytes to read. |
Returns
Type | Description |
---|---|
Int32 | Acutal number of bytes read. |
Overrides
Seek(Int64, SeekOrigin)
Not supported.
Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
Type | Name | Description |
---|---|---|
Int64 | offset | Not supported. |
SeekOrigin | origin | Not supported. |
Returns
Type | Description |
---|---|
Int64 | Not supported. |
Overrides
SetLength(Int64)
Not supported.
Declaration
public override void SetLength(long value)
Parameters
Type | Name | Description |
---|---|---|
Int64 | value | Not supported. |
Overrides
Write(Byte[], Int32, Int32)
Writes a sequence of bytes to the stream.
Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type | Name | Description |
---|---|---|
Byte[] | buffer | Buffer for write data. |
Int32 | offset | Offset in buffer to write. |
Int32 | count | Maximum number of bytes to write. |