// endpointConfigureTx configures the given bulk data transmit (Tx, IN) endpoint
// for transfer.
endpointConfigureTx configures the given bulk data transmit (Tx, IN) endpoint
for transfer.
// endpointConfigureTx configures the given bulk data transmit ( Tx IN ) endpoint // for transfer .
func (d *dhw) endpointConfigureTx(
	endpoint uint8, packetSize uint16, zlp bool, callback func(transfer *dhwTransfer)) {
	switch d.cc.id {
	case classDeviceCDCACM:
		if endpoint < descCDCACMEndpointStatus ||
			endpoint > descCDCACMEndpointCount {
			return
		}
	case classDeviceHID:
		if endpoint < descHIDEndpointSerialRx ||
			endpoint > descHIDEndpointCount {
			return
		}
	default:
	}
	ep := d.endpointQueueHead(txEndpoint(endpoint))
	d.endpointConfigure(ep, packetSize, zlp, callback)
	if nil != callback {
		d.endpointMask |= (uint32(1) << endpoint) << descEndptConfigAttrTxPos
	}
}
func ( d * dhw ) endpointConfigureTx ( endpoint uint8 , packetSize uint16 , zlp bool , callback func ( transfer * dhwTransfer ) ) { switch d . cc . id { case classDeviceCDCACM : if endpoint < descCDCACMEndpointStatus || endpoint > descCDCACMEndpointCount { return } case classDeviceHID : if endpoint < descHIDEndpointSerialRx || endpoint > descHIDEndpointCount { return } default : } ep := d . endpointQueueHead ( txEndpoint ( endpoint ) ) d . endpointConfigure ( ep , packetSize , zlp , callback ) if nil != callback { d . endpointMask |= ( uint32 ( 1 ) << endpoint ) << descEndptConfigAttrTxPos } }
endpointConfigureTx configures the given bulk data transmit (Tx, IN) endpoint
for transfer.
endpointConfigureTx configures the given bulk data transmit ( Tx IN ) endpoint for transfer .
// Configure based on our device class configuration // CDC-ACM (single) // HID // Unhandled device class