mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
refactor(hcd_dwc): Added mps request from hcd_dwc
This commit is contained in:
committed by
Darian Leung
parent
455674ae8c
commit
32a7719177
@ -1798,6 +1798,16 @@ err:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int hcd_pipe_get_mps(hcd_pipe_handle_t pipe_hdl)
|
||||||
|
{
|
||||||
|
pipe_t *pipe = (pipe_t *)pipe_hdl;
|
||||||
|
int mps;
|
||||||
|
HCD_ENTER_CRITICAL();
|
||||||
|
mps = pipe->ep_char.mps;
|
||||||
|
HCD_EXIT_CRITICAL();
|
||||||
|
return mps;
|
||||||
|
}
|
||||||
|
|
||||||
esp_err_t hcd_pipe_free(hcd_pipe_handle_t pipe_hdl)
|
esp_err_t hcd_pipe_free(hcd_pipe_handle_t pipe_hdl)
|
||||||
{
|
{
|
||||||
pipe_t *pipe = (pipe_t *)pipe_hdl;
|
pipe_t *pipe = (pipe_t *)pipe_hdl;
|
||||||
|
@ -361,6 +361,15 @@ esp_err_t hcd_port_set_fifo_bias(hcd_port_handle_t port_hdl, hcd_port_fifo_bias_
|
|||||||
*/
|
*/
|
||||||
esp_err_t hcd_pipe_alloc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pipe_config, hcd_pipe_handle_t *pipe_hdl);
|
esp_err_t hcd_pipe_alloc(hcd_port_handle_t port_hdl, const hcd_pipe_config_t *pipe_config, hcd_pipe_handle_t *pipe_hdl);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get maximum packet size (mps) of HCD pipe
|
||||||
|
*
|
||||||
|
* @param[in] port_hdl Pipe handle
|
||||||
|
*
|
||||||
|
* @retval HCD pipe mps
|
||||||
|
*/
|
||||||
|
int hcd_pipe_get_mps(hcd_pipe_handle_t pipe_hdl);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Free a pipe
|
* @brief Free a pipe
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user