Ejemplo n.º 1
0
Archivo: usb.go Proyecto: hanwen/usb
// Calculate the maximum packet size which a specific endpoint is capable is sending or receiving in the duration of 1 microframe.
func (d *Device) GetMaxIsoPacketSize(endpoint byte) int {
	return int(C.libusb_get_max_iso_packet_size(d.me(), C.uchar(endpoint)))
}
Ejemplo n.º 2
0
Archivo: usb.go Proyecto: thequux/gousb
func (dev *Device) GetMaxIsoPacketSize(endpoint int) (sz int, err *UsbError) {
	sz, err = decodeUsbError(C.libusb_get_max_iso_packet_size(dev.device, C.uchar(endpoint)))
	return
}