[][src]Function esp_idf_sys::uart_enable_pattern_det_intr

pub unsafe extern "C" fn uart_enable_pattern_det_intr(
    uart_num: uart_port_t,
    pattern_chr: c_char,
    chr_num: u8,
    chr_tout: c_int,
    post_idle: c_int,
    pre_idle: c_int
) -> esp_err_t

@brief UART enable pattern detect function. Designed for applications like 'AT commands'. When the hardware detect a series of one same character, the interrupt will be triggered.

@param uart_num UART port number. @param pattern_chr character of the pattern @param chr_num number of the character, 8bit value. @param chr_tout timeout of the interval between each pattern characters, 24bit value, unit is APB (80Mhz) clock cycle. When the duration is less than this value, it will not take this data as at_cmd char @param post_idle idle time after the last pattern character, 24bit value, unit is APB (80Mhz) clock cycle. When the duration is less than this value, it will not take the previous data as the last at_cmd char @param pre_idle idle time before the first pattern character, 24bit value, unit is APB (80Mhz) clock cycle. When the duration is less than this value, it will not take this data as the first at_cmd char

@return - ESP_OK Success - ESP_FAIL Parameter error