Example #1
0
File: usb.go Project: thequux/gousb
func (ep *EndpointHandle) ClearHalt() *UsbError {
	err := returnUsbError(C.libusb_clear_halt(ep.handle.handle, C.uchar(ep.ep)))
	return err
}
Example #2
0
File: usb.go Project: hanwen/usb
// Clear an halt/stall for a endpoint.
func (h *DeviceHandle) ClearHalt(endpoint byte) error {
	return toErr(C.libusb_clear_halt(h.me(), C.uchar(endpoint)))
}
Example #3
0
File: usb.go Project: thequux/gousb
func (h *DeviceHandle) ClearHalt(endpoint int) *UsbError {
	return returnUsbError(C.libusb_clear_halt(h.handle, C.uchar(endpoint)))
}