use ConfigDesc, InterfaceDesc and EndpointDesc.

This commit is contained in:
Sebastian Zagrodzki
2017-05-06 02:43:16 +02:00
parent e5961a7cc4
commit 4991f9c89b
10 changed files with 35 additions and 35 deletions

View File

@@ -111,7 +111,7 @@ func (t *usbTransfer) data() []byte {
// newUSBTransfer allocates a new transfer structure for communication with a
// given device/endpoint, with buf as the underlying transfer buffer.
func newUSBTransfer(dev *libusbDevHandle, ei *EndpointInfo, buf []byte, timeout time.Duration) (*usbTransfer, error) {
func newUSBTransfer(dev *libusbDevHandle, ei *EndpointDesc, buf []byte, timeout time.Duration) (*usbTransfer, error) {
var isoPackets, isoPktSize int
if ei.TransferType == TransferTypeIsochronous {
isoPktSize = ei.MaxPacketSize