move all libusb wrappers to libusb.go.

This commit is contained in:
Sebastian Zagrodzki
2017-02-23 10:25:02 +01:00
parent 6afb417224
commit cc135fe616
9 changed files with 88 additions and 320 deletions

View File

@@ -34,7 +34,7 @@ type transferIntf interface {
}
type endpoint struct {
h *deviceHandle
h *libusbDevHandle
InterfaceSetup
EndpointInfo
@@ -92,7 +92,7 @@ func (e *endpoint) transfer(buf []byte, timeout time.Duration) (int, error) {
func newEndpoint(d *Device) *endpoint {
ep := &endpoint{
h: (*deviceHandle)(d.handle),
h: d.handle,
readTimeout: d.ReadTimeout,
writeTimeout: d.WriteTimeout,
}