Class IOPortBase
IOPortBase abstract class.
Namespace: Cosmos.Core
Assembly: Cosmos.Core.dll
Syntax
public abstract class IOPortBase : object
Constructors
| Improve this Doc View SourceIOPortBase(UInt16)
Create new instance of the IOPortBase class.
Declaration
protected IOPortBase(ushort aPort)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port. |
IOPortBase(UInt16, UInt16)
Create new instance of the IOPortBase class.
Declaration
protected IOPortBase(ushort aBase, ushort aOffset)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aBase | A base port. |
System.UInt16 | aOffset | A offset from the base port. |
Fields
| Improve this Doc View SourcePort
Port.
Declaration
protected readonly ushort Port
Field Value
Type | Description |
---|---|
System.UInt16 |
Methods
| Improve this Doc View SourceRead16(UInt16)
Read Word from port. Plugged.
Declaration
protected static ushort Read16(ushort aPort)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to read from. |
Returns
Type | Description |
---|---|
System.UInt16 | ushort value. |
Read16(UInt16[])
Read Word from base port.
Declaration
public void Read16(ushort[] aData)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16[] | aData | Output data array. |
Read32(UInt16)
Read DWord from port. Plugged.
Declaration
protected static uint Read32(ushort aPort)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to read from. |
Returns
Type | Description |
---|---|
System.UInt32 | uint value. |
Read32(UInt32[])
Read DWord from base port.
Declaration
public void Read32(uint[] aData)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32[] | aData | Output data array. |
Read8(Byte[])
Read byte from base port.
Declaration
public void Read8(byte[] aData)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | aData | Output data array. |
Read8(UInt16)
Read byte from port. Plugged.
Declaration
protected static byte Read8(ushort aPort)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to read from. |
Returns
Type | Description |
---|---|
System.Byte | byte value. |
Write16(UInt16, UInt16)
Write Word to port. Plugged.
Declaration
protected static void Write16(ushort aPort, ushort aData)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to write to. |
System.UInt16 | aData | A data. |
Write32(UInt16, UInt32)
Write DWord to port. Plugged.
Declaration
protected static void Write32(ushort aPort, uint aData)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to write to. |
System.UInt32 | aData | A data. |
Write8(UInt16, Byte)
Write byte to port. Plugged.
Declaration
protected static void Write8(ushort aPort, byte aData)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | aPort | A port to write to. |
System.Byte | aData | A data. |