#include <usb.h>#include <errno.h>#include <memory.h>#include <sys/ioctl.h>#include "ZestSC1.h"#include "Local.h"/******************************************************************************* Perform bulk transfer ** Just forward to usb_bulk_read, original linux version doesn't work on Mac. *******************************************************************************/ZESTSC1_STATUSZestSC1_Transfer(ZESTSC1_HANDLEHandle,intEP,void*Buffer,intLength){ZESTSC1_CHECK_HANDLE("ZestSC1ReadData",Handle);if(usb_bulk_read(Struct->DeviceHandle,EP,Buffer,Length,Struct->TimeOut)<=0){ZESTSC1_ERROR("ZestSC1_Transfer",ZESTSC1_INTERNAL_ERROR);}returnZESTSC1_SUCCESS;}