// transferControl returns the data and ackowledgement transfer descriptors for
// the control endpoint (i.e., endpoint 0).
//go:inline
transferControl returns the data and ackowledgement transfer descriptors for
the control endpoint .
go:inline
// transferControl returns the data and ackowledgement transfer descriptors for // the control endpoint ( i . e . endpoint 0 ) . // go : inline
func (d *dhw) transferControl() (dat, ack *dhwTransfer) {
	switch d.cc.id {
	case classDeviceCDCACM:
		return descCDCACM[d.cc.config-1].cd, descCDCACM[d.cc.config-1].ad
	case classDeviceHID:
		return descHID[d.cc.config-1].cd, descHID[d.cc.config-1].ad
	default:
		return nil, nil
	}
}
func ( d * dhw ) transferControl ( ) ( dat , ack * dhwTransfer ) { switch d . cc . id { case classDeviceCDCACM : return descCDCACM [ d . cc . config - 1 ] . cd , descCDCACM [ d . cc . config - 1 ] . ad case classDeviceHID : return descHID [ d . cc . config - 1 ] . cd , descHID [ d . cc . config - 1 ] . ad default : return nil , nil } }
transferControl returns the data and ackowledgement transfer descriptors for
the control endpoint .
transferControl returns the data and ackowledgement transfer descriptors for the control endpoint .
// control endpoint is device class-specific