opentitanlib/transport/ftdi/chip.rs
1// Copyright lowRISC contributors (OpenTitan project).
2// Licensed under the Apache License, Version 2.0, see LICENSE for details.
3// SPDX-License-Identifier: Apache-2.0
4
5pub trait Chip {
6 const VENDOR_ID: u16 = 0x0403;
7 const PRODUCT_ID: u16;
8
9 const UART_BAUD: u32 = 115200;
10
11 const INTERFACES: &'static [ftdi::Interface];
12}
13
14pub struct Ft4232hq {}
15
16impl Chip for Ft4232hq {
17 const PRODUCT_ID: u16 = 0x6011;
18 const INTERFACES: &'static [ftdi::Interface] = &[
19 ftdi::Interface::A,
20 ftdi::Interface::B,
21 // ftdi::Interface::C,
22 ftdi::Interface::D,
23 ];
24}