Lines Matching +full:interrupt +full:- +full:endpoint

1 /* usb_dc.h - USB device controller driver interface */
6 * SPDX-License-Identifier: Apache-2.0
63 * @brief USB Endpoint Callback Status Codes
65 * Status Codes reported by the registered endpoint callback.
77 * @brief USB Endpoint Transfer Type
80 /** Control type endpoint */
82 /** Isochronous type endpoint */
84 /** Bulk type endpoint */
86 /** Interrupt type endpoint */
91 * @brief USB Endpoint Synchronization Type
107 * @brief USB Endpoint Configuration.
109 * Structure containing the USB endpoint configuration.
114 * IN EP = 0x80 | \<endpoint number\>
115 * OUT EP = 0x00 | \<endpoint number\>
118 /** Endpoint max packet size */
120 /** Endpoint Transfer Type.
121 * May be Bulk, Interrupt, Control or Isochronous
127 * Callback function signature for the USB Endpoint status
190 * @brief check endpoint capabilities
192 * Function to check capabilities of an endpoint. usb_dc_ep_cfg_data structure
193 * provides the endpoint configuration parameters: endpoint address,
194 * endpoint maximum packet size and endpoint type.
195 * The driver should check endpoint capabilities and return 0 if the
196 * endpoint configuration is possible.
198 * @param[in] cfg Endpoint config
205 * @brief Configure endpoint
207 * Function to configure an endpoint. usb_dc_ep_cfg_data structure provides
208 * the endpoint configuration parameters: endpoint address, endpoint maximum
209 * packet size and endpoint type.
211 * @param[in] cfg Endpoint config
218 * @brief Set stall condition for the selected endpoint
220 * @param[in] ep Endpoint address corresponding to the one
228 * @brief Clear stall condition for the selected endpoint
230 * @param[in] ep Endpoint address corresponding to the one
238 * @brief Check if the selected endpoint is stalled
240 * @param[in] ep Endpoint address corresponding to the one
242 * @param[out] stalled Endpoint stall status
249 * @brief Halt the selected endpoint
251 * @param[in] ep Endpoint address corresponding to the one
259 * @brief Enable the selected endpoint
261 * Function to enable the selected endpoint. Upon success interrupts are
262 * enabled for the corresponding endpoint and the endpoint is ready for
265 * @param[in] ep Endpoint address corresponding to the one
273 * @brief Disable the selected endpoint
275 * Function to disable the selected endpoint. Upon success interrupts are
276 * disabled for the corresponding endpoint and the endpoint is no longer able
279 * @param[in] ep Endpoint address corresponding to the one
287 * @brief Flush the selected endpoint
289 * This function flushes the FIFOs for the selected endpoint.
291 * @param[in] ep Endpoint address corresponding to the one
299 * @brief Write data to the specified endpoint
301 * This function is called to write data to the specified endpoint. The
305 * @param[in] ep Endpoint address corresponding to the one
320 * @brief Read data from the specified endpoint
322 * This function is called by the endpoint handler function, after an OUT
323 * interrupt has been received for that EP. The application must only call this
325 * the ENDPOINT NAK, if all data in the endpoint FIFO has been read,
328 * @param[in] ep Endpoint address corresponding to the one
342 * @brief Set callback function for the specified endpoint
345 * available to application or transmit done on the selected endpoint,
349 * @param[in] ep Endpoint address corresponding to the one
358 * @brief Read data from the specified endpoint
361 * clear the endpoint NAKs so that the consumer is not bogged down by further
365 * @param[in] ep Endpoint address corresponding to the one
379 * @brief Continue reading data from the endpoint
381 * Clear the endpoint NAK and enable the endpoint to accept more data
386 * @param[in] ep Endpoint address corresponding to the one
394 * @brief Get endpoint max packet size
396 * @param[in] ep Endpoint address corresponding to the one
399 * @return Endpoint max packet size (mps)