Search results 1-2 of 2.
This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.
Your browser has JavaScript disabled. If you would like to use all features of this site, it is mandatory to enable JavaScript.
SEGGER - Rainer - Feb 22nd 2023, 9:06am - emUSB related
Simply call USBD_BULK_Receive( hInst, &c, 1, -1 ); It returns 1, if you got a byte, It returns 0 if there is no data.
SEGGER - Rainer - Feb 21st 2023, 9:03am - emUSB related
The function USBD_BULK_GetNumBytesInBuffer() never triggers a read, it only check for bytes in the buffer. If you never call any read function, then the buffer will be always empty. Please use USBD_BULK_Receive(..., Timeout = -1) instead.