MOS_ENDPT_RX
err = usbd_open_pipe(sc->mos_iface, sc->mos_ed[MOS_ENDPT_RX],
USBD_EXCLUSIVE_USE, &sc->mos_ep[MOS_ENDPT_RX]);
usbd_setup_xfer(c->mos_xfer, sc->mos_ep[MOS_ENDPT_RX],
if (sc->mos_ep[MOS_ENDPT_RX] != NULL) {
err = usbd_close_pipe(sc->mos_ep[MOS_ENDPT_RX]);
sc->mos_ep[MOS_ENDPT_RX] = NULL;
sc->mos_ed[MOS_ENDPT_RX] = ed->bEndpointAddress;
if (sc->mos_ep[MOS_ENDPT_RX] != NULL)
usbd_abort_pipe(sc->mos_ep[MOS_ENDPT_RX]);
sc->mos_ep[MOS_ENDPT_RX] != NULL ||
usbd_clear_endpoint_stall_async(sc->mos_ep[MOS_ENDPT_RX]);
usbd_setup_xfer(xfer, sc->mos_ep[MOS_ENDPT_RX],