71typedef struct _serial_driver
80typedef struct _serial_device
MOSAPI void(1, 2) fatal_abort(const char *fmt
int serial_device_read(serial_device_t *device, char *data, size_t length)
bool serial_dev_get_data_ready(serial_device_t *device)
struct _serial_device serial_device_t
@ INTERRUPT_DATA_AVAILABLE
@ INTERRUPT_TRANSMITTER_EMPTY
@ INTERRUPT_STATUS_CHANGE
@ OFFSET_DLAB_DIVISOR_LSB
@ OFFSET_INTERRUPT_ENABLE
@ OFFSET_DLAB_DIVISOR_MSB
@ OFFSET_INTERRUPT_ID_FIFO
bool serial_device_setup(serial_device_t *device)
int serial_device_write(serial_device_t *device, const char *data, size_t length)
serial_baudrate_t baudrate_divisor
serial_charlength_t char_length
const serial_driver_t * driver
serial_stopbits_t stop_bits