C# Class Mosa.DeviceDriver.ISA.StandardKeyboard

Inheritance: HardwareDevice, IDevice, IHardwareDevice, IKeyboardDevice
Mostra file Open project: tgiphil/MOSA-Project Class Usage Examples

Protected Properties

Property Type Description
commandPort IReadWriteIOPort
dataPort IReadWriteIOPort
fifoBuffer byte[]
fifoEnd uint
fifoStart uint
spinLock SpinLock

Public Methods

Method 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.

Protected Methods

Method 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 method

Adds scan code to FIFO.
protected AddToFIFO ( byte value ) : void
value byte The value.
return void

GetFromFIFO() protected method

Gets scan code from FIFO.
protected GetFromFIFO ( ) : byte
return byte

GetScanCode() public method

Gets the scan code from the fifo
public GetScanCode ( ) : byte
return byte

IsFIFODataAvailable() protected method

Determines whether FIFO data is available
protected IsFIFODataAvailable ( ) : bool
return bool

IsFIFOFull() protected method

Determines whether the FIFO is full
protected IsFIFOFull ( ) : bool
return bool

OnInterrupt() public method

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

ReadScanCode() protected method

Reads the scan code from the device
protected ReadScanCode ( ) : void
return void

Setup() public method

Setups the standard keyboard driver
public Setup ( HardwareResources hardwareResources ) : bool
hardwareResources HardwareResources
return bool

StandardKeyboard() public method

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

Start() public method

Starts the standard keyboard device.
public Start ( ) : DeviceDriverStartStatus
return DeviceDriverStartStatus

Property Details

commandPort protected_oe property

protected IReadWriteIOPort commandPort
return IReadWriteIOPort

dataPort protected_oe property

protected IReadWriteIOPort dataPort
return IReadWriteIOPort

fifoBuffer protected_oe property

protected byte[] fifoBuffer
return byte[]

fifoEnd protected_oe property

protected uint fifoEnd
return uint

fifoStart protected_oe property

protected uint fifoStart
return uint

spinLock protected_oe property

protected SpinLock spinLock
return SpinLock