// endpointTransmit schedules a transmit (Tx, IN) transfer on the given
// endpoint.
endpointTransmit schedules a transmit (Tx, IN) transfer on the given
endpoint.
// endpointTransmit schedules a transmit ( Tx IN ) transfer on the given // endpoint .
func (d *dhw) endpointTransmit(endpoint uint8, 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))
	em := (uint32(1) << endpoint) << descEndptConfigAttrTxPos
	d.transferSchedule(ep, em, transfer)
}
func ( d * dhw ) endpointTransmit ( endpoint uint8 , 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 ) ) em := ( uint32 ( 1 ) << endpoint ) << descEndptConfigAttrTxPos d . transferSchedule ( ep , em , transfer ) }
endpointTransmit schedules a transmit (Tx, IN) transfer on the given
endpoint.
endpointTransmit schedules a transmit ( Tx IN ) transfer on the given endpoint .
// Configure based on our device class configuration // CDC-ACM (single) // HID // Unhandled device class