C# Class Mosa.DeviceDriver.ISA.VGAText

Inheritance: Mosa.DeviceSystem.HardwareDevice, IDevice, ITextDevice
Mostrar archivo Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
activeControllerData IReadWriteIOPort
activeControllerIndex IReadWriteIOPort
attributeAddress IReadWriteIOPort
attributeData IReadWriteIOPort
bytePerChar byte
colorMode bool
crtControllerData IReadWriteIOPort
crtControllerDataColor IReadWriteIOPort
crtControllerIndex IReadWriteIOPort
crtControllerIndexColor IReadWriteIOPort
defaultBackground TextColor
graphicsControllerAddress IReadWriteIOPort
graphicsControllerData IReadWriteIOPort
height byte
inputStatus1ReadB IReadWriteIOPort
memory IMemory
miscellaneousOutput IReadWriteIOPort
miscellaneousOutputWrite IWriteOnlyIOPort
offset uint
sequencerAddress IReadWriteIOPort
sequencerData IReadWriteIOPort
width byte

Public Methods

Method Description
ClearScreen ( ) : void

Clears the screen.

OnInterrupt ( ) : bool

Called when an interrupt is received.

ScrollUp ( ) : void

Scrolls up.

SetCursor ( ushort x, ushort y ) : void

Sets the cursor position.

Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

VGAText ( ) : Mosa.DeviceSystem

Initializes a new instance of the VGAText class.

WriteChar ( ushort x, ushort y, char c, TextColor foreground, TextColor background ) : void

Writes the char at the position indicated.

Protected Methods

Method Description
GetValue ( byte command ) : byte

Gets the value.

SendCommand ( byte command, byte value ) : void

Sends the command.

SetCursorSize ( byte start, byte end ) : void

Sets the size of the cursor.

WriteSettings ( byte settings ) : void

Writes the settings.

Method Details

ClearScreen() public method

Clears the screen.
public ClearScreen ( ) : void
return void

GetValue() protected method

Gets the value.
protected GetValue ( byte command ) : byte
command byte The command.
return byte

OnInterrupt() public method

Called when an interrupt is received.
public OnInterrupt ( ) : bool
return bool

ScrollUp() public method

Scrolls up.
public ScrollUp ( ) : void
return void

SendCommand() protected method

Sends the command.
protected SendCommand ( byte command, byte value ) : void
command byte The command.
value byte The value.
return void

SetCursor() public method

Sets the cursor position.
public SetCursor ( ushort x, ushort y ) : void
x ushort The x position.
y ushort The y position.
return void

SetCursorSize() protected method

Sets the size of the cursor.
protected SetCursorSize ( byte start, byte end ) : void
start byte The start.
end byte The end.
return void

Setup() public method

Setups this hardware device driver
public Setup ( Mosa.DeviceSystem.HardwareResources hardwareResources ) : bool
hardwareResources Mosa.DeviceSystem.HardwareResources
return bool

Start() public method

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
return DeviceDriverStartStatus

VGAText() public method

Initializes a new instance of the VGAText class.
public VGAText ( ) : Mosa.DeviceSystem
return Mosa.DeviceSystem

WriteChar() public method

Writes the char at the position indicated.
public WriteChar ( ushort x, ushort y, char c, TextColor foreground, TextColor background ) : void
x ushort The x position.
y ushort The y position.
c char The character.
foreground TextColor The foreground color.
background TextColor The background color.
return void

WriteSettings() protected method

Writes the settings.
protected WriteSettings ( byte settings ) : void
settings byte The settings.
return void

Property Details

activeControllerData protected_oe property

protected IReadWriteIOPort activeControllerData
return IReadWriteIOPort

activeControllerIndex protected_oe property

protected IReadWriteIOPort activeControllerIndex
return IReadWriteIOPort

attributeAddress protected_oe property

protected IReadWriteIOPort attributeAddress
return IReadWriteIOPort

attributeData protected_oe property

protected IReadWriteIOPort attributeData
return IReadWriteIOPort

bytePerChar protected_oe property

protected byte bytePerChar
return byte

colorMode protected_oe property

protected bool colorMode
return bool

crtControllerData protected_oe property

protected IReadWriteIOPort crtControllerData
return IReadWriteIOPort

crtControllerDataColor protected_oe property

protected IReadWriteIOPort crtControllerDataColor
return IReadWriteIOPort

crtControllerIndex protected_oe property

protected IReadWriteIOPort crtControllerIndex
return IReadWriteIOPort

crtControllerIndexColor protected_oe property

protected IReadWriteIOPort crtControllerIndexColor
return IReadWriteIOPort

defaultBackground protected_oe property

protected TextColor defaultBackground
return TextColor

graphicsControllerAddress protected_oe property

protected IReadWriteIOPort graphicsControllerAddress
return IReadWriteIOPort

graphicsControllerData protected_oe property

protected IReadWriteIOPort graphicsControllerData
return IReadWriteIOPort

height protected_oe property

protected byte height
return byte

inputStatus1ReadB protected_oe property

protected IReadWriteIOPort inputStatus1ReadB
return IReadWriteIOPort

memory protected_oe property

protected IMemory memory
return IMemory

miscellaneousOutput protected_oe property

protected IReadWriteIOPort miscellaneousOutput
return IReadWriteIOPort

miscellaneousOutputWrite protected_oe property

protected IWriteOnlyIOPort miscellaneousOutputWrite
return IWriteOnlyIOPort

offset protected_oe property

protected uint offset
return uint

sequencerAddress protected_oe property

protected IReadWriteIOPort sequencerAddress
return IReadWriteIOPort

sequencerData protected_oe property

protected IReadWriteIOPort sequencerData
return IReadWriteIOPort

width protected_oe property

protected byte width
return byte