mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
refactor(usb_host): Fixed function return values in usb_host stack:
- updated doxygen for the whole usb_host stack
- doxygen for test_apps is not updated
- fixed error codes propagation problems in the usb_host stack
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -78,16 +78,18 @@ typedef bool (*usb_proc_req_cb_t)(usb_proc_req_source_t source, bool in_isr, voi
|
||||
* - The constant fields of the URB are also set
|
||||
* - The data_buffer field of the URB is set to point to start of the allocated data buffer.
|
||||
*
|
||||
* @param data_buffer_size Size of the URB's data buffer
|
||||
* @param num_isoc_packets Number of isochronous packet descriptors
|
||||
* @return urb_t* URB object
|
||||
* @param[in] data_buffer_size Size of the URB's data buffer
|
||||
* @param[in] num_isoc_packets Number of isochronous packet descriptors
|
||||
*
|
||||
* @return
|
||||
* - urb_t* URB object
|
||||
*/
|
||||
urb_t *urb_alloc(size_t data_buffer_size, int num_isoc_packets);
|
||||
|
||||
/**
|
||||
* @brief Free a URB
|
||||
*
|
||||
* @param urb URB object
|
||||
* @param[in] urb URB object
|
||||
*/
|
||||
void urb_free(urb_t *urb);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user