# SerialPort

`import { SerialPort } from "destack:device/binding";`

Serial port.

```ds title="SerialPort"
export struct SerialPort {
    id: string;
    transport: SerialTransport;
    name: string;
    path: Path;
    manufacturer: string;
    product: string;
    serialNumber: string;
    usbVendorId: uint16;
    usbProductId: uint16;
    bluetoothServiceClassId: string;
}
```

[language/library/src/device/binding/serial.ds:120:141](https://github.com/destack-sh/destack/blob/main/language/library/src/device/binding/serial.ds#L120-L141)

## Members

### `id: string`

Stable serial endpoint identifier.

### `transport: SerialTransport`

Host-classified transport kind.

### `name: string`

Host-visible endpoint name.

### `path: Path`

Device path for the endpoint.

### `manufacturer: string`

Host-visible manufacturer string when available.

### `product: string`

Host-visible product string when available.

### `serialNumber: string`

Host-visible serial number when available.

### `usbVendorId: uint16`

USB vendor identifier when the endpoint is USB backed.

### `usbProductId: uint16`

USB product identifier when the endpoint is USB backed.

### `bluetoothServiceClassId: string`

Bluetooth service-class identifier when the endpoint is Bluetooth backed.
