Google is committed to advancing racial equity for Black communities. See how.

fuchsia.hardware.serialimpl.async

PROTOCOLS

SerialImplAsync

Defined in fuchsia.hardware.serialimpl.async/serial-impl-async.fidl

CancelAll

Immediately cancels all outstanding asynchronous I/O

Request

NameType

Response

NameType

Config

Configures the given serial port.

Request

NameType
baud_rate uint32
flags uint32

Response

NameType
s zx/status

Enable

Request

NameType
enable bool

Response

NameType
s zx/status

GetInfo

Request

NameType

Response

NameType
s zx/status
info fuchsia.hardware.serial/SerialPortInfo

ReadAsync

Queues a receive operation. It is an error to queue more than one receive operation at a time. The callback will be invoked on the interrupt thread or the calling thread if the write completes immediately. ZX_ERR_NOT_SUPPORTED will be returned if a read is already pending.

Request

NameType

Response

NameType
s zx/status
buf vector<uint8>

WriteAsync

Queues a packet for transmission. It is an error to queue more than one transmit at a time. The callback will be invoked on the interrupt thread, or the calling thread if data is available. ZX_ERR_NOT_SUPPORTED will be returned if a write is already pending.

Request

NameType
buf vector<uint8>

Response

NameType
s zx/status

STRUCTS

ENUMS

SerialState

Type: uint32

Defined in fuchsia.hardware.serialimpl.async/serial-impl-async.fidl

NameValueDescription
READABLE 1
WRITABLE 2