Is there any way to activate RX interrupt on esp32? I am working on a project using nextion display, therefore I am trying to activate interrupt on uart in esp32, but I have no idea on how to do it. I could not even find a library that did this.
There are many interrupts that can be generated following specific UART states or detected errors. The full list of available interrupts is provided in ESP32 Technical Reference Manual > UART Controller (UART) > UART Interrupts and UHCI Interrupts [PDF]. You can enable or disable specific interrupts by calling uart_enable_intr_mask() or uart_disable_intr_mask() respectively. The mask of all interrupts is available as UART_INTR_MASK.... want to know more see the API.
And I have a question id it possible to attach external interrupt to my RX pin(pin 16) and when that intterrupts occur and then I read the data ? Something like that