From ff1724eaf8f3342a33c12dc6ed18cf52cb8a41f3 Mon Sep 17 00:00:00 2001 From: Elia Sulimanov Date: Wed, 17 Jun 2020 22:27:21 +0300 Subject: [PATCH] Started working on IOPort api docs --- source/Cosmos.Core/IOPort.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/Cosmos.Core/IOPort.cs b/source/Cosmos.Core/IOPort.cs index 3ff7f1dc3..68159dfea 100644 --- a/source/Cosmos.Core/IOPort.cs +++ b/source/Cosmos.Core/IOPort.cs @@ -89,6 +89,9 @@ namespace Cosmos.Core { } + /// + /// Wait for the previous IO read/write to complete. + /// static public void Wait() { // Write to an unused port. This assures whatever we were waiting on for a previous @@ -100,18 +103,27 @@ namespace Cosmos.Core Write8(0x80, 0x22); } + /// + /// Get and set Byte value in IO port. + /// public byte Byte { get => Read8(Port); set => Write8(Port, value); } + /// + /// Get and set Word value in IO port. + /// public ushort Word { get => Read16(Port); set => Write16(Port, value); } + /// + /// Get and set DWord value in IO port. + /// public uint DWord { get => Read32(Port);