Getting current transmit status of the UART driver
Posted: Fri Apr 23, 2021 3:37 pm
Hi! I'm trying to figure out if there is a way to get current transmit status of UART driver?
I found a function in the HAL that fully matches my question:
But it use only in block waiting for the transmission ends and internal ISR routine. May be there are some macros or any other API I missed? Is there a way to use it without breaking library hierarchy and jumping to HAL from my code?
Also I can't understand using of this API - FIFO space threshold or transmission timeout reached:
I can configurate this interrupts, but no functions to use this interrupts or callbacks for it. How work with it? In case when I don't register a custom lower level interrupt handler using
Thanks in advance, Michael.
I found a function in the HAL that fully matches my question:
Code: Select all
#define uart_hal_is_tx_idle(hal) uart_ll_is_tx_idle((hal)->dev)
Also I can't understand using of this API - FIFO space threshold or transmission timeout reached:
Code: Select all
uart_intr_config(), uart_enable_tx_intr()
Code: Select all
uart_isr_register()