#define TEST_ID_PRODUCT 0x104
#define TEST_DATA "Quick brown fox jumps over a lazy dog"
#define DATA_SIZE 9
-static unsigned char transfer_buffer[sizeof(TEST_DATA)];
+
//& set: Usbhost
/** @addtogroup itc-usbhost
int nRet;
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle;
- int numInterface = -1;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);
PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet));
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle = NULL;
usb_host_interface_h hInterfaceHandle = NULL;
- int interfaceNumber = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
usb_host_context_h CtxHandle = NULL;
//& purpose: Set usb host interface altsetting
//& type: auto
/**
-* @testcase ITc_usb_host_interface_get_endpoint_p
+* @testcase ITc_usb_host_interface_set_altsetting_p
* @since_tizen 5.0
* @author SRID(manoj.g2)
* @reviewer SRID(shobhit.v)
usb_host_config_h hConfigHandle = NULL;
usb_host_interface_h hInterfaceHandle = NULL;
int interfaceNumber = 0;
- usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);
PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet));
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle = NULL;
usb_host_interface_h hInterfaceHandle = NULL;
- int numOdEndPoints = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
usb_host_transfer_type_e eTransferType = -1;
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle = NULL;
usb_host_interface_h hInterfaceHandle = NULL;
- int numOdEndPoints = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
usb_host_usage_type_e eUsageType = -1;
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle = NULL;
usb_host_interface_h hInterfaceHandle = NULL;
- int numOdEndPoints = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
usb_host_iso_sync_type_e eSynchType = -1;
usb_host_interface_h hInterfaceHandle = NULL;
int maxPacketSize = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
- usb_host_endpoint_direction_e eEndPointDir = -1;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);
PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet));
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hConfigHandle;
usb_host_interface_h hInterfaceHandle = NULL;
- int numOdEndPoints = 0;
usb_host_endpoint_h usbHostInterfaceEndPoint = NULL;
int endpointInterval = 0;
usb_host_config_h hHostConfig = NULL;
usb_host_endpoint_h hHostEndPoint = NULL;
usb_host_transfer_type_e hHosttype;
- int status;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);
PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet));
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hHostConfig = NULL;
usb_host_endpoint_h hHostEndPoint = NULL;
- usb_host_transfer_type_e hHosttype;
- int status;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);
PRINT_RESULT(USB_HOST_ERROR_NONE, nRet, "usb_host_device_open_with_vid_pid", UsbHostGetError(nRet));
usb_host_device_h hHostDevice = NULL;
usb_host_config_h hHostConfig = NULL;
usb_host_endpoint_h hHostEndPoint = NULL;
- usb_host_transfer_type_e hHosttype;
unsigned int num;
nRet = usb_host_device_open_with_vid_pid(g_CtxHandle, TEST_ID_VENDOR, TEST_ID_PRODUCT, &hHostDevice);