C# Class Mosa.DeviceDriver.ISA.StandardKeyboard

Inheritance: HardwareDevice, IDevice, IHardwareDevice, IKeyboardDevice
Afficher le fichier Open project: tgiphil/MOSA-Project Class Usage Examples

Protected Properties

Свойство Type Description
commandPort IReadWriteIOPort
dataPort IReadWriteIOPort
fifoBuffer byte[]
fifoEnd uint
fifoStart uint
spinLock SpinLock

Méthodes publiques

Méthode Description
GetScanCode ( ) : byte

Gets the scan code from the fifo

OnInterrupt ( ) : bool

Called when interrupt is received.

Setup ( HardwareResources hardwareResources ) : bool

Setups the standard keyboard driver

StandardKeyboard ( ) : Mosa.DeviceSystem

Initializes a new instance of the StandardKeyboard class.

Start ( ) : DeviceDriverStartStatus

Starts the standard keyboard device.

Méthodes protégées

Méthode Description
AddToFIFO ( byte value ) : void

Adds scan code to FIFO.

GetFromFIFO ( ) : byte

Gets scan code from FIFO.

IsFIFODataAvailable ( ) : bool

Determines whether FIFO data is available

IsFIFOFull ( ) : bool

Determines whether the FIFO is full

ReadScanCode ( ) : void

Reads the scan code from the device

Method Details

AddToFIFO() protected méthode

Adds scan code to FIFO.
protected AddToFIFO ( byte value ) : void
value byte The value.
Résultat void

GetFromFIFO() protected méthode

Gets scan code from FIFO.
protected GetFromFIFO ( ) : byte
Résultat byte

GetScanCode() public méthode

Gets the scan code from the fifo
public GetScanCode ( ) : byte
Résultat byte

IsFIFODataAvailable() protected méthode

Determines whether FIFO data is available
protected IsFIFODataAvailable ( ) : bool
Résultat bool

IsFIFOFull() protected méthode

Determines whether the FIFO is full
protected IsFIFOFull ( ) : bool
Résultat bool

OnInterrupt() public méthode

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

ReadScanCode() protected méthode

Reads the scan code from the device
protected ReadScanCode ( ) : void
Résultat void

Setup() public méthode

Setups the standard keyboard driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources HardwareResources
Résultat bool

StandardKeyboard() public méthode

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

Start() public méthode

Starts the standard keyboard device.
public Start ( ) : DeviceDriverStartStatus
Résultat DeviceDriverStartStatus

Property Details

commandPort protected_oe property

protected IReadWriteIOPort commandPort
Résultat IReadWriteIOPort

dataPort protected_oe property

protected IReadWriteIOPort dataPort
Résultat IReadWriteIOPort

fifoBuffer protected_oe property

protected byte[] fifoBuffer
Résultat byte[]

fifoEnd protected_oe property

protected uint fifoEnd
Résultat uint

fifoStart protected_oe property

protected uint fifoStart
Résultat uint

spinLock protected_oe property

protected SpinLock spinLock
Résultat SpinLock