[0x08] = "Analog Channels (LSB)",
[0x09] = "Analog Channels (MSB)",
[0x06] = "Digital Channels (LSB)",
[0x08] = "Analog Channels (LSB)",
[0x09] = "Analog Channels (MSB)",
[0x06] = "Digital Channels (LSB)",
tree:add(p_logicpro16.fields.cmd, request_cmd):set_generated()
if request_cmd == 0x81 then -- register read
tree:add(p_logicpro16.fields.cmd, request_cmd):set_generated()
if request_cmd == 0x81 then -- register read
elseif request_cmd == 0x87 then -- i2c write
tree:add(p_logicpro16.fields.i2cresult, range(0, 1))
local t = tree:add(p_logicpro16.fields.i2cdata, range(1))
elseif request_cmd == 0x87 then -- i2c write
tree:add(p_logicpro16.fields.i2cresult, range(0, 1))
local t = tree:add(p_logicpro16.fields.i2cdata, range(1))