Serial_io.setattributes() – Intel Extensible Firmware Interface User Manual

Page 353

Advertising
background image

Protocols

— Console Support

Version 1.10

12/01/02

10-59

SERIAL_IO.SetAttributes()

Summary

Sets the baud rate, receive FIFO depth, transmit/receive time out, parity, data bits, and stop bits on a
serial device.

EFI_STATUS

(EFIAPI *EFI_SERIAL_SET_ATTRIBUTES) (

IN

SERIAL_IO_INTERFACE

*This,

IN

UINT64

BaudRate,

IN

UINT32

ReceiveFifoDepth,

IN

UINT32

Timeout

IN

EFI_PARITY_TYPE

Parity,

IN

UINT8

DataBits,

IN

EFI_STOP_BITS_TYPE

StopBits

);

Parameters

This

A pointer to the

SERIAL_IO_INTERFACE

instance. Type

SERIAL_IO_INTERFACE

is defined in Section 10.12.

BaudRate

The requested baud rate. A

BaudRate

value of 0 will use the

device’s default interface speed.

ReceiveFifoDepth

The requested depth of the FIFO on the receive side of the serial
interface. A

ReceiveFifoDepth

value of 0 will use the

device’s default FIFO depth.

Timeout

The requested time out for a single character in microseconds.
This timeout applies to both the transmit and receive side of the
interface. A

Timeout

value of 0 will use the device’s default

time out value.

Parity

The type of parity to use on this serial device. A

Parity

value

of

DefaultParity

will use the device’s default parity value.

Type

EFI_PARITY_TYPE

is defined in “Related Definitions”

in Section 10.12.

DataBits

The number of data bits to use on this serial device. A

DataBits

value of 0 will use the device’s default data bit

setting.

StopBits

The number of stop bits to use on this serial device. A

StopBits

value of

DefaultStopBits

will use the device’s

default number of stop bits. Type

EFI_STOP_BITS_TYPE

is

defined in “Related Definitions” in Section 10.12.

Advertising