Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the usb packet field name for recent versions of wireshark #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 3 additions & 3 deletions ftdi2vcd.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


local usb_transfer_type_f = Field.new("usb.transfer_type")
local usb_direction_f = Field.new("usb.endpoint_number.direction")
local usb_direction_f = Field.new("usb.endpoint_address.direction")
local usb_capdata_f = Field.new("usb.capdata")


Expand Down Expand Up @@ -119,7 +119,7 @@ function FTDI:cmd_19()
end

function FTDI:cmd_1b()
local len = self.o:read_uint8()
local len = self.o:read_uint8() + 1
local outval = self.o:read_uint8()
self:comment("data out bits", len, "outval", outval)
self:clock(len, {TDI = outval})
Expand All @@ -136,7 +136,7 @@ end

function FTDI:cmd_2a()
local len = self.o:read_uint8() + 1
local inval = self.i:read_uint8()
local inval = bit32.rshift(self.i:read_uint8(), 8 - len)
self:comment("data in bits", len, "inval", inval)
self:clock(len, {TDO = inval})
end
Expand Down
2 changes: 1 addition & 1 deletion ftdi_dump.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


local usb_transfer_type_f = Field.new("usb.transfer_type")
local usb_direction_f = Field.new("usb.endpoint_number.direction")
local usb_direction_f = Field.new("usb.endpoint_address.direction")
local usb_capdata_f = Field.new("usb.capdata")


Expand Down