Esempio n. 1
0
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);
}
Esempio n. 2
0
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);
}
Esempio n. 3
0
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);
}
Esempio n. 4
0
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);
}