Mosa.HardwareSystem.HAL.RequestIOPort C# (CSharp) Method

RequestIOPort() static private method

Requests an IO read/write port interface from the kernel
static private RequestIOPort ( ushort port ) : IReadWriteIOPort
port ushort The port number.
return IReadWriteIOPort
        internal static IReadWriteIOPort RequestIOPort(ushort port)
        {
            return hardwareAbstraction.RequestIOPort(port);
        }

Usage Example

 /// <summary>
 /// Gets the IO port.
 /// </summary>
 /// <param name="region">The region.</param>
 /// <param name="index">The index.</param>
 /// <returns></returns>
 public IReadWriteIOPort GetIOPort(byte region, ushort index)
 {
     return(HAL.RequestIOPort((ushort)(ioPortRegions[region].BaseIOPort + index)));
 }