C# Class Mosa.DeviceDriver.PCI.VideoCard.GenericVGA

Generic VGA Device Driver
Inheritance: HardwareDevice, IPixelPaletteGraphicsDevice
Afficher le fichier Open project: tgiphil/MOSA-Project

Protected Properties

Свойство Type Description
activeControllerData IReadWriteIOPort
activeControllerIndex IReadWriteIOPort
attributeAddress IReadWriteIOPort
attributeData IReadWriteIOPort
colors ushort
crtControllerData IReadWriteIOPort
crtControllerDataColor IReadWriteIOPort
crtControllerIndex IReadWriteIOPort
crtControllerIndexColor IReadWriteIOPort
dacData IReadWriteIOPort
dacIndexRead IReadWriteIOPort
dacIndexWrite IReadWriteIOPort
dacPaletteMask IReadWriteIOPort
graphicsControllerAddress IReadWriteIOPort
graphicsControllerData IReadWriteIOPort
height ushort
inputStatus1 IReadOnlyIOPort
inputStatus1ReadB IReadWriteIOPort
memory IMemory
miscellaneousOutputRead IReadOnlyIOPort
miscellaneousOutputWrite IWriteOnlyIOPort
offset uint
sequencerAddress IReadWriteIOPort
sequencerData IReadWriteIOPort
width ushort

Méthodes publiques

Méthode Description
Clear ( byte colorIndex ) : void

Clears device with the specified color index.

GenericVGA ( ) : Mosa.DeviceSystem

Initializes a new instance of the GenericVGA class.

GetPalette ( byte colorIndex ) : Color

Gets the palette.

OnInterrupt ( ) : bool

Called when an interrupt is received.

ReadPixel ( ushort x, ushort y ) : byte

Reads the pixel.

SetMode ( byte mode ) : bool

Sets the mode.

SetPalette ( byte colorIndex, Color color ) : void

Sets the palette.

Setup ( HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

WritePixel ( byte colorIndex, ushort x, ushort y ) : void

Writes the pixel.

Méthodes protégées

Méthode Description
GetValue ( byte command ) : byte

Gets the value.

SendCommand ( byte command, byte value ) : void

Sends the command.

WriteSettings ( byte settings ) : void

Writes the settings.

Method Details

Clear() public méthode

Clears device with the specified color index.
public Clear ( byte colorIndex ) : void
colorIndex byte Index of the color.
Résultat void

GenericVGA() public méthode

Initializes a new instance of the GenericVGA class.
public GenericVGA ( ) : Mosa.DeviceSystem
Résultat Mosa.DeviceSystem

GetPalette() public méthode

Gets the palette.
public GetPalette ( byte colorIndex ) : Color
colorIndex byte Index of the color.
Résultat Mosa.DeviceSystem.Color

GetValue() protected méthode

Gets the value.
protected GetValue ( byte command ) : byte
command byte The command.
Résultat byte

OnInterrupt() public méthode

Called when an interrupt is received.
public OnInterrupt ( ) : bool
Résultat bool

ReadPixel() public méthode

Reads the pixel.
public ReadPixel ( ushort x, ushort y ) : byte
x ushort The x.
y ushort The y.
Résultat byte

SendCommand() protected méthode

Sends the command.
protected SendCommand ( byte command, byte value ) : void
command byte The command.
value byte The value.
Résultat void

SetMode() public méthode

Sets the mode.
public SetMode ( byte mode ) : bool
mode byte The mode.
Résultat bool

SetPalette() public méthode

Sets the palette.
public SetPalette ( byte colorIndex, Color color ) : void
colorIndex byte Index of the color.
color Mosa.DeviceSystem.Color The color.
Résultat void

Setup() public méthode

Setups this hardware device driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources HardwareResources
Résultat bool

Start() public méthode

Starts this hardware device.
public Start ( ) : DeviceDriverStartStatus
Résultat DeviceDriverStartStatus

WritePixel() public méthode

Writes the pixel.
public WritePixel ( byte colorIndex, ushort x, ushort y ) : void
colorIndex byte Index of the color.
x ushort The x.
y ushort The y.
Résultat void

WriteSettings() protected méthode

Writes the settings.
protected WriteSettings ( byte settings ) : void
settings byte The settings.
Résultat void

Property Details

activeControllerData protected_oe property

protected IReadWriteIOPort activeControllerData
Résultat IReadWriteIOPort

activeControllerIndex protected_oe property

protected IReadWriteIOPort activeControllerIndex
Résultat IReadWriteIOPort

attributeAddress protected_oe property

protected IReadWriteIOPort attributeAddress
Résultat IReadWriteIOPort

attributeData protected_oe property

protected IReadWriteIOPort attributeData
Résultat IReadWriteIOPort

colors protected_oe property

protected ushort colors
Résultat ushort

crtControllerData protected_oe property

protected IReadWriteIOPort crtControllerData
Résultat IReadWriteIOPort

crtControllerDataColor protected_oe property

protected IReadWriteIOPort crtControllerDataColor
Résultat IReadWriteIOPort

crtControllerIndex protected_oe property

protected IReadWriteIOPort crtControllerIndex
Résultat IReadWriteIOPort

crtControllerIndexColor protected_oe property

protected IReadWriteIOPort crtControllerIndexColor
Résultat IReadWriteIOPort

dacData protected_oe property

protected IReadWriteIOPort dacData
Résultat IReadWriteIOPort

dacIndexRead protected_oe property

protected IReadWriteIOPort dacIndexRead
Résultat IReadWriteIOPort

dacIndexWrite protected_oe property

protected IReadWriteIOPort dacIndexWrite
Résultat IReadWriteIOPort

dacPaletteMask protected_oe property

protected IReadWriteIOPort dacPaletteMask
Résultat IReadWriteIOPort

graphicsControllerAddress protected_oe property

protected IReadWriteIOPort graphicsControllerAddress
Résultat IReadWriteIOPort

graphicsControllerData protected_oe property

protected IReadWriteIOPort graphicsControllerData
Résultat IReadWriteIOPort

height protected_oe property

protected ushort height
Résultat ushort

inputStatus1 protected_oe property

protected IReadOnlyIOPort inputStatus1
Résultat IReadOnlyIOPort

inputStatus1ReadB protected_oe property

protected IReadWriteIOPort inputStatus1ReadB
Résultat IReadWriteIOPort

memory protected_oe property

protected IMemory memory
Résultat IMemory

miscellaneousOutputRead protected_oe property

protected IReadOnlyIOPort miscellaneousOutputRead
Résultat IReadOnlyIOPort

miscellaneousOutputWrite protected_oe property

protected IWriteOnlyIOPort miscellaneousOutputWrite
Résultat IWriteOnlyIOPort

offset protected_oe property

protected uint offset
Résultat uint

sequencerAddress protected_oe property

protected IReadWriteIOPort sequencerAddress
Résultat IReadWriteIOPort

sequencerData protected_oe property

protected IReadWriteIOPort sequencerData
Résultat IReadWriteIOPort

width protected_oe property

protected ushort width
Résultat ushort