コード例 #1
0
ファイル: usb.go プロジェクト: 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)))
}
コード例 #2
0
ファイル: usb.go プロジェクト: 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
}