Function esp_idf_svc::sys::uart_get_buffered_data_len

source ยท
pub unsafe extern "C" fn uart_get_buffered_data_len(
    uart_num: u32,
    size: *mut usize,
) -> i32
Expand description

@brief UART get RX ring buffer cached data length

@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param size Pointer of size_t to accept cached data length

@return - ESP_OK Success - ESP_FAIL Parameter error