C# 클래스 Mosa.DeviceDriver.ISA.StandardKeyboard

상속: HardwareDevice, IDevice, IHardwareDevice, IKeyboardDevice
파일 보기 프로젝트 열기: tgiphil/MOSA-Project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
commandPort IReadWriteIOPort
dataPort IReadWriteIOPort
fifoBuffer byte[]
fifoEnd uint
fifoStart uint
spinLock SpinLock

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
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

메소드 상세

AddToFIFO() 보호된 메소드

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

GetFromFIFO() 보호된 메소드

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

GetScanCode() 공개 메소드

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

IsFIFODataAvailable() 보호된 메소드

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

IsFIFOFull() 보호된 메소드

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

OnInterrupt() 공개 메소드

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

ReadScanCode() 보호된 메소드

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

Setup() 공개 메소드

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

StandardKeyboard() 공개 메소드

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

Start() 공개 메소드

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

프로퍼티 상세

commandPort 보호되어 있는 프로퍼티

protected IReadWriteIOPort commandPort
리턴 IReadWriteIOPort

dataPort 보호되어 있는 프로퍼티

protected IReadWriteIOPort dataPort
리턴 IReadWriteIOPort

fifoBuffer 보호되어 있는 프로퍼티

protected byte[] fifoBuffer
리턴 byte[]

fifoEnd 보호되어 있는 프로퍼티

protected uint fifoEnd
리턴 uint

fifoStart 보호되어 있는 프로퍼티

protected uint fifoStart
리턴 uint

spinLock 보호되어 있는 프로퍼티

protected SpinLock spinLock
리턴 SpinLock