示例#1
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Writes the specified data.
 /// </summary>
 /// <param name="data">The data.</param>
 public void Write16(ushort data)
 {
     IOPortDispatch.Write16(port, data);
 }
示例#2
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Writes the specified data.
 /// </summary>
 /// <param name="data">The data.</param>
 public void Write32(uint data)
 {
     IOPortDispatch.Write32(port, data);
 }
示例#3
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Writes the specified data.
 /// </summary>
 /// <param name="data">The data.</param>
 public void Write8(byte data)
 {
     IOPortDispatch.Write8(port, data);
 }
示例#4
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Reads this instance.
 /// </summary>
 /// <returns></returns>
 public uint Read32()
 {
     return(IOPortDispatch.Read32(port));
 }
示例#5
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Reads this instance.
 /// </summary>
 /// <returns></returns>
 public ushort Read16()
 {
     return(IOPortDispatch.Read16(port));
 }
示例#6
0
文件: IOPort.cs 项目: djlw78/Mosa
 /// <summary>
 /// Reads this instance.
 /// </summary>
 /// <returns></returns>
 public byte Read8()
 {
     return(IOPortDispatch.Read8(port));
 }
示例#7
0
 /// <summary>
 /// Requests an IO read/write port interface from the kernel
 /// </summary>
 /// <param name="port">The port number.</param>
 /// <returns></returns>
 public IReadWriteIOPort RequestIOPort(ushort port)
 {
     return(IOPortDispatch.RegisterIOPort(port));
 }