set_uart_decoder

Configure decoder on the given channel

Parameters

integer required
Id of channel to configure decoder on
allowed values:1 to 2
integer required
Bit number to configure as a data pin
allowed values:1 to 16
boolean
Bit order for UART
default: undefined
integer
Number of data bits. Cannot be more than 8 if parity bit is enabled
default: 8
allowed values:5 to 9
Number of stop bits.
default: 1
allowed values:1 to 2
string
Parity for UART.
default: None
allowed values:None, Even, Odd
UART baud rate.
default: 9600
allowed values:1 to 2e6
units: baud
boolean
Disable all implicit conversions and coercions.
default: true

# Examples

# Sample response

{
    "data_bit": 1,
    "data_width": 8,
    "lsb_first": false,
    "protocol": "UART",
    "uart_baud_rate": 9600,
    "uart_parity": "None",
    "uart_stop_width": 1
}
1
2
3
4
5
6
7
8
9