fuchsia.hardware.serial

Added: HEAD

PROTOCOLS

Device

Defined in fuchsia.hardware.serial/serial.fidl

A serial device.

GetClass

Lookup what type of serial device this is.

Request

<EMPTY>

Response

NameType
device_class Class

Read

Reads data from the serial port.

Request

<EMPTY>

Response

NameType
payload Device_Read_Result

SetConfig

Set the configuration of this serial device.

Request

NameType
config Config

Response

NameType
s zx/Status

Write

Writes data to the serial port.

Request

NameType
data vector<uint8>

Response

NameType
payload Device_Write_Result

DeviceProxy

Defined in fuchsia.hardware.serial/serial.fidl

GetChannel

Request

NameType
req server_end:Device

STRUCTS

Config

Defined in fuchsia.hardware.serial/serial.fidl

FieldTypeDescriptionDefault
character_width CharacterWidth No default
stop_width StopWidth No default
parity Parity No default
control_flow FlowControl No default
baud_rate uint32 No default

Device_Read_Response

Defined in fuchsia.hardware.serial/serial.fidl

FieldTypeDescriptionDefault
data vector<uint8> No default

Device_Write_Response

Defined in fuchsia.hardware.serial/serial.fidl

<EMPTY>

SerialPortInfo

Defined in fuchsia.hardware.serial/serial.fidl

FieldTypeDescriptionDefault
serial_class Class No default
serial_vid uint32

Vendor and product ID of hardware attached to this serial port, or zero if not applicable.

No default
serial_pid uint32 No default

ENUMS

CharacterWidth strict

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Number of bits per character

NameValueDescription
1
2
3
4

Class strict

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Description of what type of serial device this is

NameValueDescription
1
2

A Bluetooth host controller

3

An interactive console

4

Kernel debug serial

FlowControl strict

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

What flow control mechanism to use

NameValueDescription
1
2

Clear To Send/Request To Send

Parity strict

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Which parity computation to use, if any.

NameValueDescription
1
2
3

StopWidth strict

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Number of stop bits

NameValueDescription
1
2

UNIONS

Device_Read_Result strict

Defined in fuchsia.hardware.serial/serial.fidl

OrdinalVariantTypeDescription
response Device_Read_Response
err zx/Status

Device_Write_Result strict

Defined in fuchsia.hardware.serial/serial.fidl

OrdinalVariantTypeDescription
response Device_Write_Response
err zx/Status

SERVICES

Service

Defined in fuchsia.hardware.serial/serial.fidl

NameTypeTransport
device fuchsia.hardware.serial/Device Channel