/* Sends a control line command on the port.  */
static bool uhi_cdc_set_ctrl_line(uint8_t port, le16_t wValue)
/* Sends a control line command on the port.  */
static bool uhi_cdc_set_ctrl_line(uint8_t port, le16_t wValue)
{
	uhi_cdc_port_t *ptr_port;
	usb_setup_req_t req;
	ptr_port = uhi_cdc_get_port(port);
	if (ptr_port == NULL) {
		return false;
	}
	req.bmRequestType = USB_REQ_RECIP_INTERFACE | USB_REQ_TYPE_CLASS | USB_REQ_DIR_OUT;
	req.bRequest = USB_REQ_CDC_SET_CONTROL_LINE_STATE;
	req.wValue = wValue;
	req.wIndex = ptr_port->iface_comm;
	req.wLength = 0;
	if (!uhd_setup_request(uhi_cdc_dev.dev->address,
			&req,
			NULL,
			0,
			NULL, NULL)) {
		return false;
	}
	return true;
}