8557c94f87
Undocumented data shitfing commands that operate in bitmode, MSB first, and have both Write TMS and Read TDO bits set, do not seem to consume the data payload. Do not dissect the data byte for these commands. Treat MCU Host mode commands as Bad Command when in MPSSE mode. MCU Host mode commands are recognized only in MCU Host mode. Add preliminary support for MCU Host mode dissection. Ping-Bug: 11743 Change-Id: I3046aab92f69e2e141cb5a23c68e844b24b6c2ca Reviewed-on: https://code.wireshark.org/review/37566 Petri-Dish: Tomasz Moń <desowin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
47 lines
964 B
C
47 lines
964 B
C
/* packet-ftdi-ft.h
|
|
* FTDI FTxxxx USB converters dissector
|
|
*
|
|
* Copyright 2019 Tomasz Mon
|
|
*
|
|
* Wireshark - Network traffic analyzer
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
* Copyright 1998 Gerald Combs
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef __PACKET_FTDI_FT_H__
|
|
#define __PACKET_FTDI_FT_H__
|
|
|
|
#include <glib.h>
|
|
|
|
typedef enum {
|
|
FTDI_CHIP_UNKNOWN,
|
|
FTDI_CHIP_FT8U232AM,
|
|
FTDI_CHIP_FT232B,
|
|
FTDI_CHIP_FT2232D,
|
|
FTDI_CHIP_FT232R,
|
|
FTDI_CHIP_FT2232H,
|
|
FTDI_CHIP_FT4232H,
|
|
FTDI_CHIP_FT232H,
|
|
FTDI_CHIP_X_SERIES,
|
|
} FTDI_CHIP;
|
|
|
|
typedef enum {
|
|
FTDI_INTERFACE_UNKNOWN,
|
|
FTDI_INTERFACE_A,
|
|
FTDI_INTERFACE_B,
|
|
FTDI_INTERFACE_C,
|
|
FTDI_INTERFACE_D,
|
|
} FTDI_INTERFACE;
|
|
|
|
typedef struct _ftdi_mpsse_info_t {
|
|
guint32 bus_id;
|
|
guint32 device_address;
|
|
FTDI_CHIP chip;
|
|
FTDI_INTERFACE iface;
|
|
gboolean mcu_mode;
|
|
} ftdi_mpsse_info_t;
|
|
|
|
#endif /* __PACKET_FTDI_FT_H__ */
|