Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pyftdi/ftdi.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class Ftdi:
('230x', 0x6015),
('231x', 0x6015),
('234x', 0x6015),
('4232hp', 0x6043),
('4232ha', 0x6048),
('ft232', 0x6001),
('ft232r', 0x6001),
Expand All @@ -84,6 +85,7 @@ class Ftdi:
('ft230x', 0x6015),
('ft231x', 0x6015),
('ft234x', 0x6015),
('ft4232hp', 0x6043),
('ft4232ha', 0x6048)))
}
"""Supported products, only FTDI officials ones.
Expand All @@ -103,6 +105,7 @@ class Ftdi:
0x0800: 'ft4232h',
0x0900: 'ft232h',
0x1000: 'ft-x',
0x3100: 'ft4232hp',
0x3600: 'ft4232ha'}
"""Common names of FTDI supported devices."""

Expand All @@ -117,6 +120,7 @@ class Ftdi:
0x0800: (2048, 2048), # FT4232H: TX: 2KiB, RX: 2KiB
0x0900: (1024, 1024), # FT232H: TX: 1KiB, RX: 1KiB
0x1000: (512, 512), # FT-X: TX: 512, RX: 512
0x3100: (2048, 2048), # FT4232HP: TX: 2KiB, RX: 2KiB
0x3600: (2048, 2048), # FT4232HA: TX: 2KiB, RX: 2KiB
}
"""FTDI chip internal FIFO sizes
Expand Down Expand Up @@ -939,7 +943,7 @@ def has_mpsse(self) -> bool:
"""
if not self.is_connected:
raise FtdiError('Device characteristics not yet known')
return self.device_version in (0x0500, 0x0700, 0x0800, 0x0900, 0x3600)
return self.device_version in (0x0500, 0x0700, 0x0800, 0x0900, 0x3600, 0x3100)

@property
def has_wide_port(self) -> bool:
Expand Down Expand Up @@ -1024,6 +1028,8 @@ def is_mpsse_interface(self, interface: int) -> bool:
return False
if self.device_version == 0x3600 and interface > 2:
return False
if self.device_version == 0x3100 and interface > 2:
return False
return True

@property
Expand Down