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:
Code: Select all
#define uart_hal_is_tx_idle(hal) uart_ll_is_tx_idle((hal)->dev)
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:
Code: Select all
uart_intr_config(), uart_enable_tx_intr()
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.