fuchsia.hardware.serial

PROTOCOLS

Device

Defined in fuchsia.hardware.serial/serial.fidl

Legacy synchronous device interface. New drivers should implement NewDevice instead.

GetClass

Lookup what type of serial device this is.

Request

NameType

Response

NameType
device_class Class

SetConfig

Set the configuration of this serial device.

Request

NameType
config Config

Response

NameType
s zx/status

NewDevice

Defined in fuchsia.hardware.serial/serial.fidl

FIDL device utilizing the new asynchronous serial driver instead of the synchronous FDIO-backed read/write interface. New drivers should implement this instead of the Device interface above.

GetClass

Lookup what type of serial device this is.

Request

NameType

Response

NameType
device_class Class

SetConfig

Set the configuration of this serial device.

Request

NameType
config Config

Response

NameType
s zx/status

Read

Reads data from the serial port

Request

NameType

Response

NameType
result NewDevice_Read_Result

Write

Writes data to the serial port

Request

NameType
data vector<uint8>

Response

NameType
result NewDevice_Write_Result

NewDeviceProxy

Defined in fuchsia.hardware.serial/serial.fidl

GetChannel

Request

NameType
req request<NewDevice>

STRUCTS

SomeLongAnonymousPrefix1

generated

anonymous struct

NameTypeDescriptionDefault
device_class Class No default

SomeLongAnonymousPrefix2

generated

anonymous struct

NameTypeDescriptionDefault
config Config No default

SomeLongAnonymousPrefix3

generated

anonymous struct

NameTypeDescriptionDefault
s zx/status No default

NewDevice_Read_Response

generated

NameTypeDescriptionDefault
data vector<uint8> No default

SomeLongAnonymousPrefix5

generated

anonymous struct

NameTypeDescriptionDefault
result NewDevice_Read_Result No default

SomeLongAnonymousPrefix6

generated

anonymous struct

NameTypeDescriptionDefault
data vector<uint8> No default

NewDevice_Write_Response

generated

NameTypeDescriptionDefault

SomeLongAnonymousPrefix7

generated

anonymous struct

NameTypeDescriptionDefault
result NewDevice_Write_Result No default

SomeLongAnonymousPrefix8

generated

anonymous struct

NameTypeDescriptionDefault
req request<NewDevice> No default

Config

Defined in fuchsia.hardware.serial/serial.fidl

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

SomeLongAnonymousPrefix1

generated

anonymous struct

NameTypeDescriptionDefault
device_class Class No default

SomeLongAnonymousPrefix2

generated

anonymous struct

NameTypeDescriptionDefault
config Config No default

SomeLongAnonymousPrefix3

generated

anonymous struct

NameTypeDescriptionDefault
s zx/status No default

ENUMS

Class

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Description of what type of serial device this is

NameValueDescription
GENERIC 1
BLUETOOTH_HCI 2

A Bluetooth host controller

CONSOLE 3

An interactive console

CharacterWidth

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Number of bits per character

NameValueDescription
BITS_5 1
BITS_6 2
BITS_7 3
BITS_8 4

StopWidth

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Number of stop bits

NameValueDescription
BITS_1 1
BITS_2 2

Parity

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

Which parity computation to use, if any.

NameValueDescription
NONE 1
EVEN 2
ODD 3

FlowControl

Type: uint8

Defined in fuchsia.hardware.serial/serial.fidl

What flow control mechanism to use

NameValueDescription
NONE 1
CTS_RTS 2

Clear To Send/Request To Send

UNIONS

NewDevice_Read_Result

generated

NameTypeDescription
response NewDevice_Read_Response
err zx/status

NewDevice_Write_Result

generated

NameTypeDescription
response NewDevice_Write_Response
err zx/status