Lines Matching refs:endpoint
74 #define _CYHAL_USB_DEV_IS_EP_NUM_VALID(endpoint) CY_USBFS_DEV_DRV_IS_EP_VALID(endpoint) argument
629 … cyhal_usb_dev_ep_t endpoint, uint32_t max_packet, cyhal_usb_dev_ep_type_t type) in cyhal_usb_dev_endpoint_add() argument
639 ep_config.endpointAddr = (uint8_t) endpoint; in cyhal_usb_dev_endpoint_add()
647 cy_rslt_t cyhal_usb_dev_endpoint_remove(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_remove() argument
649 …return (CY_USBFS_DEV_DRV_SUCCESS == Cy_USBFS_Dev_Drv_RemoveEndpoint(obj->base, endpoint, &(obj->co… in cyhal_usb_dev_endpoint_remove()
653 cy_rslt_t cyhal_usb_dev_endpoint_stall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_stall() argument
655 …S == Cy_USBFS_Dev_Drv_StallEndpoint(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_stall()
659 cy_rslt_t cyhal_usb_dev_endpoint_unstall(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_unstall() argument
661 …== Cy_USBFS_Dev_Drv_UnStallEndpoint(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_unstall()
665 bool cyhal_usb_dev_endpoint_is_stalled(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_is_stalled() argument
667 …= Cy_USBFS_Dev_Drv_GetEndpointState(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_is_stalled()
670 cy_rslt_t cyhal_usb_dev_endpoint_read(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint, uint8_t *d… in cyhal_usb_dev_endpoint_read() argument
673 uint32_t ep_num = CYHAL_USB_DEV_GET_EP_NUM(endpoint); in cyhal_usb_dev_endpoint_read()
681 obj->rd_data[CYHAL_USB_DEV_GET_EP_IDX(endpoint)] = data; in cyhal_usb_dev_endpoint_read()
682 obj->rd_size[CYHAL_USB_DEV_GET_EP_IDX(endpoint)] = size; in cyhal_usb_dev_endpoint_read()
692 cy_rslt_t cyhal_usb_dev_endpoint_read_result(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint, uin… in cyhal_usb_dev_endpoint_read_result() argument
695 uint32_t ep_num = CYHAL_USB_DEV_GET_EP_NUM(endpoint); in cyhal_usb_dev_endpoint_read_result()
702 … obj->rd_data[CYHAL_USB_DEV_GET_EP_IDX(endpoint)], in cyhal_usb_dev_endpoint_read_result()
703 … obj->rd_size[CYHAL_USB_DEV_GET_EP_IDX(endpoint)], in cyhal_usb_dev_endpoint_read_result()
711 cy_rslt_t cyhal_usb_dev_endpoint_write(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint, uint8_t c… in cyhal_usb_dev_endpoint_write() argument
714 uint32_t ep_num = CYHAL_USB_DEV_GET_EP_NUM(endpoint); in cyhal_usb_dev_endpoint_write()
730 cy_rslt_t cyhal_usb_dev_endpoint_abort(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint) in cyhal_usb_dev_endpoint_abort() argument
732 …V_SUCCESS == Cy_USBFS_Dev_Drv_Abort(obj->base, CYHAL_USB_DEV_GET_EP_NUM(endpoint), &(obj->context)… in cyhal_usb_dev_endpoint_abort()
779 void cyhal_usb_dev_register_endpoint_callback(cyhal_usb_dev_t *obj, cyhal_usb_dev_ep_t endpoint, cy… in cyhal_usb_dev_register_endpoint_callback() argument
781 uint32_t endpoint_num = CYHAL_USB_DEV_GET_EP_NUM(endpoint); in cyhal_usb_dev_register_endpoint_callback()