C# Class Mosa.DeviceDriver.ISA.Serial

Inheritance: HardwareDevice, IDevice, IHardwareDevice, ISerialDevice
Afficher le fichier Open project: tgiphil/MOSA-Project

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

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

CanRead() protected méthode

Determines whether this instance can read.
protected CanRead ( ) : bool
Résultat bool

CanTransmit() protected méthode

Determines whether this instance can transmit.
protected CanTransmit ( ) : bool
Résultat bool

DisableDataReceivedInterrupt() public méthode

Disables the data received interrupt.
public DisableDataReceivedInterrupt ( ) : void
Résultat void

EnableDataReceivedInterrupt() public méthode

Enables the data received interrupt.
public EnableDataReceivedInterrupt ( ) : void
Résultat void

GetFromFIFO() protected méthode

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

IsFIFODataAvailable() protected méthode

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

IsFIFOFull() protected méthode

Determines whether [is FIFO full].
protected IsFIFOFull ( ) : bool
Résultat bool

OnInterrupt() public méthode

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

ReadByte() public méthode

Reads the byte.
public ReadByte ( ) : int
Résultat int

ReadSerial() protected méthode

Reads the serial.
protected ReadSerial ( ) : void
Résultat void

Serial() public méthode

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

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

Write() public méthode

Writes the specified ch.
public Write ( byte ch ) : void
ch byte The ch.
Résultat void

Property Details

dllBase protected_oe property

Divisor Latch (LSB and MSB)
protected IReadWriteIOPort dllBase
Résultat IReadWriteIOPort

dlmBase protected_oe property

protected IReadWriteIOPort dlmBase
Résultat IReadWriteIOPort

fcrBase protected_oe property

FIFO Control Register (write only, 16550+ only)
protected IWriteOnlyIOPort fcrBase
Résultat IWriteOnlyIOPort

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

ierBase protected_oe property

Interrupt Enable Register
protected IReadWriteIOPort ierBase
Résultat IReadWriteIOPort

iirBase protected_oe property

Interrupt Identification Register (read only)
protected IReadOnlyIOPort iirBase
Résultat IReadOnlyIOPort

lcrBase protected_oe property

Line Control Register
protected IReadWriteIOPort lcrBase
Résultat IReadWriteIOPort

lsrBase protected_oe property

Line Status Register
protected IReadWriteIOPort lsrBase
Résultat IReadWriteIOPort

mcrBase protected_oe property

Modem Control Register
protected IReadWriteIOPort mcrBase
Résultat IReadWriteIOPort

msrBase protected_oe property

Modem Status Register
protected IReadWriteIOPort msrBase
Résultat IReadWriteIOPort

rbrBase protected_oe property

Receive Buffer Register (read only)
protected IReadOnlyIOPort rbrBase
Résultat IReadOnlyIOPort

scrBase protected_oe property

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

spinLock protected_oe property

protected SpinLock spinLock
Résultat SpinLock

thrBase protected_oe property

Transmitter Holding Register (write only)
protected IWriteOnlyIOPort thrBase
Résultat IWriteOnlyIOPort