pub unsafe extern "C" fn uart_pattern_queue_reset(
    uart_num: uart_port_t,
    queue_length: c_int
) -> esp_err_t
Expand description

@brief Allocate a new memory with the given length to save record the detected pattern position in rx buffer.

@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param queue_length Max queue length for the detected pattern. If the queue length is not large enough, some pattern positions might be lost. Set this value to the maximum number of patterns that could be saved in data buffer at the same time. @return - ESP_ERR_NO_MEM No enough memory - ESP_ERR_INVALID_STATE Driver not installed - ESP_FAIL Parameter error - ESP_OK Success