adam_sds Community Member

  • Member since Feb 17th 2023
Last Activity

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • adam_sds -

    Replied to the thread USBD_BULK_GetNumBytesInBuffer() always returning 0.

    Post
    Update, so long as I only call the USBD_BULK_Receive( hInst, NULL, 0, -1 ) once in the loop (till I later receive something) then USBD_BULK_GetNumBytesInBuffer() will actually return the number of bytes in the OUT buffer that are waiting to be read, then…
  • adam_sds -

    Replied to the thread USBD_BULK_GetNumBytesInBuffer() always returning 0.

    Post
    Thank you Rainer for the info. I have tried the following an none give me an indication that there is a byte or more available to read: USBD_BULK_Receive( hInst, NULL, 0, -1 ); USBD_BULK_Receive( hInst, NULL, 1, -1 ); USBD_BULK_Receive( hInst, &c, 0, -1…
  • adam_sds -

    Posted the thread USBD_BULK_GetNumBytesInBuffer() always returning 0.

    Thread
    My project periodically will have the target checking for potential data coming from the host without making a blocking call, though USBD_BULK_ReadAsync() or USBD_BULK_ReadOverlapped() could be used I first tested the API by using the function…