12.1.5 SERIAL_IO.Write()
Summary
Writes data to a serial device.
Prototype
EFI_STATUS
(EFIAPI *EFI_SERIAL_WRITE) (
IN SERIAL_IO_INTERFACE
IN OUT UINTN
IN VOID
);
Parameters
This
BufferSize
Buffer
Description
The
function writes the specified number of bytes to a serial device. If a time out error
Write()
occurs while data is being sent to the serial port, transmission of this buffer will terminate, and
will be returned. In all cases the number of bytes actually written to the serial
EFI_TIMEOUT
device is returned in BufferSize.
Status Codes Returned
EFI_SUCCESS
EFI_DEVICE_ERROR
EFI_TIMEOUT
Version 1.02
*This,
*BufferSize,
*Buffer
A pointer to the
SERIAL_IO_INTERFACE
SERIAL_IO_INTERFACE
On input, the size of the Buffer. On output, the amount of
data actually written.
The buffer of data to write.
The data was written.
The device reported an error.
The data write was stopped due to a timeout.
12/12/00
Serial I/O Protocol
instance. Type
is defined in Section 12.1.
223
Need help?
Do you have a question about the Extensible Firmware Interface and is the answer not in the manual?