set_usb_decoder
Configure usb decoder on the given channelParameters
integer required
Target decoder channel
allowed values:1 to 2 integer required
Bit index to receive D+ line
allowed values:0 to 15 integer required
Bit index to receive D- line
allowed values:0 to 15 string
USB speed mode
default: Lowallowed values:Moku:Lab Low, Full, Custom Moku:Go Low, Custom Moku:Pro Low, Full, Custom Moku:Delta Low, Full, Custom
integer
Baud rate for custom speed mode
default: 1500000allowed values:Moku:Lab 1 to 15625000 Moku:Go 1 to 3906250 Moku:Pro 1 to 15625000 Moku:Delta 1 to 15625000
boolean
Disable all implicit conversions and coercions.
default: true# Examples
# Sample response
{
"baud_rate": 1500000,
"d_minus_bit": 2,
"d_plus_bit": 1,
"protocol": "USB",
"speed_mode": "Custom"
}
1
2
3
4
5
6
7
2
3
4
5
6
7