Example #1
0
// GetDeviceName gets the name of the USB dongle device via index,
// e.g. from an index returned from calling GainValues.
//
// const char* rtlsdr_get_device_name(uint32_t index);
func GetDeviceName(index int) (name string) {
	return C.GoString(C.rtlsdr_get_device_name(C.uint32_t(index)))
}
Example #2
0
// GetDeviceName returns the name of the device
func GetDeviceName(index int) string {
	cidx := C.uint32_t(index)
	devname := C.rtlsdr_get_device_name(cidx)
	return C.GoString(devname)
}