C# Class Mosa.DeviceDriver.ISA.Serial

Inheritance: HardwareDevice, IDevice, IHardwareDevice, ISerialDevice
Show file Open project: tgiphil/MOSA-Project

Protected Properties

Property Type Description
dllBase IReadWriteIOPort
dlmBase IReadWriteIOPort
fcrBase IWriteOnlyIOPort
fifoBuffer byte[]
fifoEnd uint
fifoStart uint
ierBase IReadWriteIOPort
iirBase IReadOnlyIOPort
lcrBase IReadWriteIOPort
lsrBase IReadWriteIOPort
mcrBase IReadWriteIOPort
msrBase IReadWriteIOPort
rbrBase IReadOnlyIOPort
scrBase IReadWriteIOPort
spinLock SpinLock
thrBase IWriteOnlyIOPort

Public Methods

Method Description
DisableDataReceivedInterrupt ( ) : void

Disables the data received interrupt.

EnableDataReceivedInterrupt ( ) : void

Enables the data received interrupt.

OnInterrupt ( ) : bool

Called when an interrupt is received.

ReadByte ( ) : int

Reads the byte.

Serial ( ) : Mosa.DeviceSystem

Initializes a new instance of the Serial class.

Setup ( HardwareResources hardwareResources ) : bool

Setups this hardware device driver

Start ( ) : DeviceDriverStartStatus

Starts this hardware device.

Write ( byte ch ) : void

Writes the specified ch.

Protected Methods

Method Description
AddToFIFO ( byte value ) : void

Adds to FIFO.

CanRead ( ) : bool

Determines whether this instance can read.

CanTransmit ( ) : bool

Determines whether this instance can transmit.

GetFromFIFO ( ) : byte

Gets from FIFO.

IsFIFODataAvailable ( ) : bool

Determines whether [is FIFO data available].

IsFIFOFull ( ) : bool

Determines whether [is FIFO full].

ReadSerial ( ) : void

Reads the serial.

Method Details

AddToFIFO() protected method

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

CanRead() protected method

Determines whether this instance can read.
protected CanRead ( ) : bool
return bool

CanTransmit() protected method

Determines whether this instance can transmit.
protected CanTransmit ( ) : bool
return bool

DisableDataReceivedInterrupt() public method

Disables the data received interrupt.
public DisableDataReceivedInterrupt ( ) : void
return void

EnableDataReceivedInterrupt() public method

Enables the data received interrupt.
public EnableDataReceivedInterrupt ( ) : void
return void

GetFromFIFO() protected method

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

IsFIFODataAvailable() protected method

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

IsFIFOFull() protected method

Determines whether [is FIFO full].
protected IsFIFOFull ( ) : bool
return bool

OnInterrupt() public method

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

ReadByte() public method

Reads the byte.
public ReadByte ( ) : int
return int

ReadSerial() protected method

Reads the serial.
protected ReadSerial ( ) : void
return void

Serial() public method

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

Setup() public method

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

Start() public method

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

Write() public method

Writes the specified ch.
public Write ( byte ch ) : void
ch byte The ch.
return void

Property Details

dllBase protected property

Divisor Latch (LSB and MSB)
protected IReadWriteIOPort dllBase
return IReadWriteIOPort

dlmBase protected property

protected IReadWriteIOPort dlmBase
return IReadWriteIOPort

fcrBase protected property

FIFO Control Register (write only, 16550+ only)
protected IWriteOnlyIOPort fcrBase
return IWriteOnlyIOPort

fifoBuffer protected property

protected byte[] fifoBuffer
return byte[]

fifoEnd protected property

protected uint fifoEnd
return uint

fifoStart protected property

protected uint fifoStart
return uint

ierBase protected property

Interrupt Enable Register
protected IReadWriteIOPort ierBase
return IReadWriteIOPort

iirBase protected property

Interrupt Identification Register (read only)
protected IReadOnlyIOPort iirBase
return IReadOnlyIOPort

lcrBase protected property

Line Control Register
protected IReadWriteIOPort lcrBase
return IReadWriteIOPort

lsrBase protected property

Line Status Register
protected IReadWriteIOPort lsrBase
return IReadWriteIOPort

mcrBase protected property

Modem Control Register
protected IReadWriteIOPort mcrBase
return IReadWriteIOPort

msrBase protected property

Modem Status Register
protected IReadWriteIOPort msrBase
return IReadWriteIOPort

rbrBase protected property

Receive Buffer Register (read only)
protected IReadOnlyIOPort rbrBase
return IReadOnlyIOPort

scrBase protected property

Scratch Register (16450+ and some 8250s, special use with some boards)
protected IReadWriteIOPort scrBase
return IReadWriteIOPort

spinLock protected property

protected SpinLock spinLock
return SpinLock

thrBase protected property

Transmitter Holding Register (write only)
protected IWriteOnlyIOPort thrBase
return IWriteOnlyIOPort