mirror of
https://github.com/danbulant/Cosmos
synced 2026-06-11 18:51:41 +00:00
Started working on IOPort api docs
This commit is contained in:
parent
ae58670c7f
commit
ff1724eaf8
1 changed files with 12 additions and 0 deletions
|
|
@ -89,6 +89,9 @@ namespace Cosmos.Core
|
|||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Wait for the previous IO read/write to complete.
|
||||
/// </summary>
|
||||
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);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get and set Byte value in IO port.
|
||||
/// </summary>
|
||||
public byte Byte
|
||||
{
|
||||
get => Read8(Port);
|
||||
set => Write8(Port, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get and set Word value in IO port.
|
||||
/// </summary>
|
||||
public ushort Word
|
||||
{
|
||||
get => Read16(Port);
|
||||
set => Write16(Port, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get and set DWord value in IO port.
|
||||
/// </summary>
|
||||
public uint DWord
|
||||
{
|
||||
get => Read32(Port);
|
||||
|
|
|
|||
Loading…
Reference in a new issue