Class NetworkDevice
Inheritance
System.Object
NetworkDevice
Assembly: Cosmos.HAL2.dll
Syntax
public abstract class NetworkDevice : object
Constructors
|
Improve this Doc
View Source
NetworkDevice()
Declaration
protected NetworkDevice()
Fields
|
Improve this Doc
View Source
DataReceived
Declaration
public DataReceivedHandler DataReceived
Field Value
Properties
|
Improve this Doc
View Source
CardType
Declaration
public abstract CardType CardType { get; }
Property Value
|
Improve this Doc
View Source
Devices
Declaration
public static List<NetworkDevice> Devices { get; }
Property Value
|
Improve this Doc
View Source
MACAddress
Declaration
public abstract MACAddress MACAddress { get; }
Property Value
|
Improve this Doc
View Source
Name
Declaration
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Ready
Declaration
public abstract bool Ready { get; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
BytesAvailable()
Declaration
public abstract int BytesAvailable()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Enable()
Declaration
public abstract bool Enable()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReceiveBufferFull()
Declaration
public abstract bool IsReceiveBufferFull()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsSendBufferFull()
Declaration
public abstract bool IsSendBufferFull()
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
QueueBytes(Byte[])
Add bytes to the transmit buffer queue.
Declaration
public virtual bool QueueBytes(byte[] buffer)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
bytes array to queue.
|
Returns
Type |
Description |
System.Boolean |
TRUE on success.
|
|
Improve this Doc
View Source
QueueBytes(Byte[], Int32, Int32)
Add bytes to the transmit buffer queue.
Declaration
public abstract bool QueueBytes(byte[] buffer, int offset, int length)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
bytes array to queue.
|
System.Int32 |
offset |
Offset of the data in the buffer.
|
System.Int32 |
length |
Data length.
|
Returns
Type |
Description |
System.Boolean |
TRUE on success.
|
|
Improve this Doc
View Source
ReceiveBytes(Byte[], Int32, Int32)
Declaration
public abstract bool ReceiveBytes(byte[] buffer, int offset, int max)
Parameters
Type |
Name |
Description |
System.Byte[] |
buffer |
|
System.Int32 |
offset |
|
System.Int32 |
max |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ReceivePacket()
Declaration
public abstract byte[] ReceivePacket()
Returns
Type |
Description |
System.Byte[] |
|