VectorNav .NET Library
Public Member Functions | Properties | Events | List of all members
VectorNav.Communication.ISimplePort Interface Reference

Interface for a simple port. More...

Inheritance diagram for VectorNav.Communication.ISimplePort:
VectorNav.Communication.AutoConnectPort VectorNav.Communication.SerialPort

Public Member Functions

void Open ()
 Opens the simple port. More...
 
void Close ()
 Closes the simple port. More...
 
void Write (byte[] buffer, int index, int length)
 Writes out data to the simple port. More...
 
int Read (byte[] buffer, int index, int numOfBytesToRead)
 Allows reading data from the simple port. More...
 

Properties

bool IsOpen [get]
 Indicates if the simple port is open. More...
 
int BytesToRead [get]
 Returns the number of bytes available to read in the received buffer. More...
 

Events

EventHandler DataReceived
 Raised whenever the simple port receives new data. More...
 

Detailed Description

Interface for a simple port.

Member Function Documentation

void VectorNav.Communication.ISimplePort.Close ( )
void VectorNav.Communication.ISimplePort.Open ( )
int VectorNav.Communication.ISimplePort.Read ( byte[]  buffer,
int  index,
int  numOfBytesToRead 
)

Allows reading data from the simple port.

Parameters
bufferThe buffer to place any read bytes.
indexThe index to start placing any read bytes.
numOfBytesToReadThe maximum number of bytes to read.
Returns
The actual number of bytes read.

Implemented in VectorNav.Communication.SerialPort, and VectorNav.Communication.AutoConnectPort.

void VectorNav.Communication.ISimplePort.Write ( byte[]  buffer,
int  index,
int  length 
)

Writes out data to the simple port.

Parameters
bufferThe buffer containing the data to write out.
indexThe index in the buffer to start writing data out.
lengthThe number of bytes to write out.

Implemented in VectorNav.Communication.SerialPort, and VectorNav.Communication.AutoConnectPort.

Property Documentation

int VectorNav.Communication.ISimplePort.BytesToRead
get

Returns the number of bytes available to read in the received buffer.

bool VectorNav.Communication.ISimplePort.IsOpen
get

Indicates if the simple port is open.

Event Documentation

EventHandler VectorNav.Communication.ISimplePort.DataReceived

Raised whenever the simple port receives new data.


The documentation for this interface was generated from the following file: