unsigned long LJUSB_StreamTO(HANDLE hDevice, BYTE *pBuff, unsigned long count, unsigned int timeout) { #if LJ_DEBUG fprintf(stderr, "LJUSB_Stream: calling LJUSB_StreamTO.\n"); #endif return LJUSB_SetupTransfer(hDevice, pBuff, count, timeout, LJUSB_STREAM); }
unsigned long LJUSB_ReadTO(HANDLE hDevice, BYTE *pBuff, unsigned long count, unsigned int timeout) { if (LJ_DEBUG) { fprintf(stderr, "LJUSB_Stream: calling LJUSB_ReadTO.\n"); } return LJUSB_SetupTransfer(hDevice, pBuff, count, timeout, LJUSB_READ); }
unsigned long LJUSB_Stream(HANDLE hDevice, BYTE *pBuff, unsigned long count) { #if LJ_DEBUG fprintf(stderr, "LJUSB_Stream: calling LJUSB_Stream.\n"); #endif return LJUSB_SetupTransfer(hDevice, pBuff, count, LJ_LIBUSB_TIMEOUT_DEFAULT, LJUSB_STREAM); }
unsigned long LJUSB_Read(HANDLE hDevice, BYTE *pBuff, unsigned long count) { if (LJ_DEBUG) { fprintf(stderr, "LJUSB_Read: calling LJUSB_Read.\n"); } return LJUSB_SetupTransfer(hDevice, pBuff, count, LJ_LIBUSB_TIMEOUT_DEFAULT, LJUSB_READ); }