// endpointQueueHead returns the queue head for the given endpoint address,
// encoded as direction D and endpoint number N with the 8-bit mask DxxxNNNN.
//go:inline
endpointQueueHead returns the queue head for the given endpoint address,
encoded as direction D and endpoint number N with the 8-bit mask DxxxNNNN.
go:inline
// endpointQueueHead returns the queue head for the given endpoint address // encoded as direction D and endpoint number N with the 8 - bit mask DxxxNNNN . // go : inline
func (d *dhw) endpointQueueHead(endpoint uint8) *dhwEndpoint {
	switch d.cc.id {
	case classDeviceCDCACM:
		return &descCDCACM[d.cc.config-1].qh[endpointIndex(endpoint)]
	case classDeviceHID:
		return &descHID[d.cc.config-1].qh[endpointIndex(endpoint)]
	default:
		return nil
	}
}
func ( d * dhw ) endpointQueueHead ( endpoint uint8 ) * dhwEndpoint { switch d . cc . id { case classDeviceCDCACM : return & descCDCACM [ d . cc . config - 1 ] . qh [ endpointIndex ( endpoint ) ] case classDeviceHID : return & descHID [ d . cc . config - 1 ] . qh [ endpointIndex ( endpoint ) ] default : return nil } }
endpointQueueHead returns the queue head for the given endpoint address,
encoded as direction D and endpoint number N with the 8-bit mask DxxxNNNN.
endpointQueueHead returns the queue head for the given endpoint address encoded as direction D and endpoint number N with the 8 - bit mask DxxxNNNN .
// endpoint queue head is device class-specific