// endpointConfigure configures the given bulk data endpoint for transfer.
endpointConfigure configures the given bulk data endpoint for transfer.
// endpointConfigure configures the given bulk data endpoint for transfer .
func (d *dhw) endpointConfigure(
	ep *dhwEndpoint, packetSize uint16, zlp bool, callback func(transfer *dhwTransfer)) {
	ep.config = uint32(packetSize) << 16
	if !zlp {
		ep.config |= 1 << 29
	}
	ep.current = nil
	ep.transfer.next = dhwTransferEOL
	ep.transfer.token = 0
	for i := range ep.transfer.pointer {
		ep.transfer.pointer[i] = 0
	}
	ep.transfer.param = 0
	ep.setup.bmRequestType = 0
	ep.setup.bRequest = 0
	ep.setup.wValue = 0
	ep.setup.wIndex = 0
	ep.setup.wLength = 0
	ep.first = nil
	ep.last = nil
	ep.callback = callback
}
func ( d * dhw ) endpointConfigure ( ep * dhwEndpoint , packetSize uint16 , zlp bool , callback func ( transfer * dhwTransfer ) ) { ep . config = uint32 ( packetSize ) << 16 if ! zlp { ep . config |= 1 << 29 } ep . current = nil ep . transfer . next = dhwTransferEOL ep . transfer . token = 0 for i := range ep . transfer . pointer { ep . transfer . pointer [ i ] = 0 } ep . transfer . param = 0 ep . setup . bmRequestType = 0 ep . setup . bRequest = 0 ep . setup . wValue = 0 ep . setup . wIndex = 0 ep . setup . wLength = 0 ep . first = nil ep . last = nil ep . callback = callback }
endpointConfigure configures the given bulk data endpoint for transfer.
endpointConfigure configures the given bulk data endpoint for transfer .