Lines Matching full:endpoint
110 /* Check if an endpoint is configured */
116 /* Check if an endpoint is enabled */
122 /* Reset and endpoint */
130 /* Enable endpoint interrupts, depending of the type and direction */
134 /* Control endpoint: enable SETUP and OUT */ in usb_dc_ep_enable_interrupts()
148 /* Reset the endpoint FIFO pointer to the beginning of the endpoint memory */
157 /* Fetch a byte from the endpoint FIFO */
163 /* Put a byte from the endpoint FIFO */
169 /* Handle interrupts on a control endpoint */
204 /* Handle interrupts on a non-control endpoint */
268 /* Free all endpoint memory */ in usb_dc_isr()
298 /* EP0 endpoint interrupt */ in usb_dc_isr()
423 /* Check endpoint capabilities */
429 LOG_ERR("endpoint index/address out of range"); in usb_dc_ep_check_cap()
435 LOG_ERR("pre-selected as control endpoint"); in usb_dc_ep_check_cap()
440 LOG_INF("pre-selected as IN endpoint"); in usb_dc_ep_check_cap()
445 LOG_INF("pre-selected as OUT endpoint"); in usb_dc_ep_check_cap()
452 LOG_ERR("invalid endpoint size"); in usb_dc_ep_check_cap()
459 /* Configure endpoint */
478 LOG_WRN("endpoint already configured & enabled 0x%x", ep_idx); in usb_dc_ep_configure()
485 /* Reset the endpoint */ in usb_dc_ep_configure()
487 /* Initialize the endpoint FIFO */ in usb_dc_ep_configure()
490 /* Map the endpoint type */ in usb_dc_ep_configure()
508 /* Map the endpoint direction */ in usb_dc_ep_configure()
517 * Map the endpoint size to the buffer size. Only power of 2 buffer in usb_dc_ep_configure()
531 /* Configure the endpoint */ in usb_dc_ep_configure()
564 /* Check that the endpoint is correctly configured */ in usb_dc_ep_configure()
566 LOG_ERR("endpoint configuration failed"); in usb_dc_ep_configure()
573 /* Set stall condition for the selected endpoint */
579 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_set_stall()
589 /* Clear stall condition for the selected endpoint */
595 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_clear_stall()
605 /* Check if the selected endpoint is stalled */
611 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_is_stalled()
626 /* Halt the selected endpoint */
632 /* Enable the selected endpoint */
638 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_enable()
643 LOG_ERR("endpoint not configured"); in usb_dc_ep_enable()
647 /* Enable endpoint */ in usb_dc_ep_enable()
650 /* Enable endpoint interrupts */ in usb_dc_ep_enable()
653 /* Enable SETUP, IN or OUT endpoint interrupts */ in usb_dc_ep_enable()
661 /* Disable the selected endpoint */
667 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_disable()
671 /* Disable endpoint interrupt */ in usb_dc_ep_disable()
674 /* Disable endpoint and SETUP, IN or OUT interrupts */ in usb_dc_ep_disable()
682 /* Flush the selected endpoint */
688 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_flush()
693 LOG_ERR("endpoint not enabled"); in usb_dc_ep_flush()
710 /* Reset the endpoint */ in usb_dc_ep_flush()
720 /* Write data to the specified endpoint */
727 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_write()
732 LOG_ERR("endpoint not enabled"); in usb_dc_ep_write()
737 LOG_ERR("wrong endpoint direction"); in usb_dc_ep_write()
743 LOG_WRN("endpoint is stalled"); in usb_dc_ep_write()
756 * Control endpoint: clear the interrupt flag to send the data, in usb_dc_ep_write()
764 * Other endpoint types: clear the FIFO control flag to send in usb_dc_ep_write()
778 /* Read data from the specified endpoint */
806 /* Set callback function for the specified endpoint */
812 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_set_callback()
826 /* Read data from the specified endpoint */
835 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_read_wait()
840 LOG_ERR("endpoint not enabled"); in usb_dc_ep_read_wait()
845 LOG_ERR("wrong endpoint direction"); in usb_dc_ep_read_wait()
851 LOG_WRN("endpoint is stalled"); in usb_dc_ep_read_wait()
885 /* Continue reading data from the endpoint */
891 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_read_continue()
896 LOG_ERR("endpoint not enabled"); in usb_dc_ep_read_continue()
901 LOG_ERR("wrong endpoint direction"); in usb_dc_ep_read_continue()
907 * Control endpoint: clear the interrupt flag to send the data. in usb_dc_ep_read_continue()
915 * Other endpoint types: clear the FIFO control flag to in usb_dc_ep_read_continue()
925 /* Endpoint max packet size (mps) */
931 LOG_ERR("wrong endpoint index/address"); in usb_dc_ep_mps()