pub unsafe extern "C" fn uart_enable_tx_intr(
    uart_num: uart_port_t,
    enable: c_int,
    thresh: c_int
) -> esp_err_t
Expand description

@brief Enable UART TX interrupt (TX_FULL & TX_TIMEOUT INTERRUPT)

@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param enable 1: enable; 0: disable @param thresh Threshold of TX interrupt, 0 ~ UART_FIFO_LEN

@return - ESP_OK Success - ESP_FAIL Parameter error