Home
last modified time | relevance | path

Searched refs:ep_cfg (Results 1 – 1 of 1) sorted by relevance

/components/drivers/usb/cherryusb/port/nrf5x/
A Dusb_dc_nrf5x.c194 int usbd_ep_open(uint8_t busid, const struct usb_endpoint_descriptor *ep_cfg) in usbd_ep_open() argument
197 uint8_t epid = USB_EP_GET_IDX(ep_cfg->bEndpointAddress); in usbd_ep_open()
199 uint16_t mps = ep_cfg->wMaxPacketSize; in usbd_ep_open()
200 if (USB_EP_DIR_IS_IN(ep_cfg->bEndpointAddress)) in usbd_ep_open()
204 usb_dc_cfg.ep_in[epid].eptype = ep_cfg->bmAttributes; in usbd_ep_open()
207 if (ep_cfg->bmAttributes != USB_ENDPOINT_TYPE_ISOCHRONOUS) in usbd_ep_open()
232 else if (USB_EP_DIR_IS_OUT(ep_cfg->bEndpointAddress)) in usbd_ep_open()
236 usb_dc_cfg.ep_out[epid].eptype = ep_cfg->bmAttributes; in usbd_ep_open()
239 if (ep_cfg->bmAttributes != USB_ENDPOINT_TYPE_ISOCHRONOUS) in usbd_ep_open()
268 …NRF_USBD->EPSTALL = (USBD_EPSTALL_STALL_UnStall << USBD_EPSTALL_STALL_Pos) | (ep_cfg->bEndpointAdd… in usbd_ep_open()
[all …]

Completed in 6 milliseconds