Function esp_idf_sys::usb_serial_jtag_write_bytes

source ·
pub unsafe extern "C" fn usb_serial_jtag_write_bytes(
    src: *const c_void,
    size: usize,
    ticks_to_wait: TickType_t,
) -> c_int
Expand description

@brief Send data to the USB-UART port from a given buffer and length,

Please ensure the tx_buffer_size is larger than 0, if the ‘tx_buffer_size’ > 0, this function will return after copying all the data to tx ring buffer, USB_SERIAL_JTAG ISR will then move data from the ring buffer to TX FIFO gradually.

@param src data buffer address @param size data length to send @param ticks_to_wait Maximum timeout in RTOS ticks

@return - The number of bytes pushed to the TX FIFO