UART TX buffer length
Posted: Fri Dec 11, 2020 8:19 pm
Is it possible to set the UART TX buffer length? Is it possible to set it to 0 for an RX-only UART serial port?
The following works for setting the RX buffer length:
from pyb import UART
uart = UART(6)
uart.init(115200, rxbuf=64) # also accepts "read_buf_len" instead of "rxbuf"
but adding "txbuf=64" causes an "extra keyword argument" error.
I came across a Github discussion in 2018 between damien george and peter hinch that both "rxbuf" and "txbuf" were going to be added.
Thanks
The following works for setting the RX buffer length:
from pyb import UART
uart = UART(6)
uart.init(115200, rxbuf=64) # also accepts "read_buf_len" instead of "rxbuf"
but adding "txbuf=64" causes an "extra keyword argument" error.
I came across a Github discussion in 2018 between damien george and peter hinch that both "rxbuf" and "txbuf" were going to be added.
Thanks