Function esp_idf_hal::sys::uart_tx_chars
source ยท pub unsafe extern "C" fn uart_tx_chars(
uart_num: i32,
buffer: *const i8,
len: u32,
) -> i32
Expand description
@brief Send data to the UART port from a given buffer and length.
This function will not wait for enough space in TX FIFO. It will just fill the available TX FIFO and return when the FIFO is full. @note This function should only be used when UART TX buffer is not enabled.
@param uart_num UART port number, the max port number is (UART_NUM_MAX -1). @param buffer data buffer address @param len data length to send
@return - (-1) Parameter error - OTHERS (>=0) The number of bytes pushed to the TX FIFO