Go to the documentation of this file.
18 #ifndef __SERVER_SERIAL_NS16550_H
19 #define __SERVER_SERIAL_NS16550_H
@ LineControlDivisorLatch
virtual FileSystem::Result interrupt(const Size vector)
Called when an interrupt has been triggered for this device.
@ InterruptIdentityFifoEnable
virtual FileSystem::Result write(IOBuffer &buffer, Size &size, const Size offset)
Write bytes to the device.
@ UartStatusTransmitAvailable
Abstract Input/Output buffer.
unsigned int u32
Unsigned 32-bit number.
unsigned int Size
Any sane size indicator cannot go negative.
Registers
Hardware registers.
Provides sequential byte stream of incoming (RX) and outgoing (TX) data.
Result
Result code for filesystem Actions.
NS16550(const u32 irq)
Constructor.
virtual FileSystem::Result initialize()
Initializes the UART.
void setDivisorLatch(bool enabled)
Enable access to the divisor latch registers.
@ UartStatusReceiveAvailable
virtual FileSystem::Result read(IOBuffer &buffer, Size &size, const Size offset)
Read bytes from the device.
The NS16550 is a commonly available UART device.