Exemplo n.º 1
0
// CancelAsync cancels all pending asynchronous operations on the device
func (dev *Radio) CancelAsync() error {
	retval := C.rtlsdr_cancel_async(dev.devptr)

	if retval != 0 {
		return fmt.Errorf("rtlsdr_cancel_async returned error value: %d", retval)
	}

	log.Print("Async operations canceled")
	return nil
}
Exemplo n.º 2
0
// Cancel all pending asynchronous operations on the device.
//
// int rtlsdr_cancel_async(rtlsdr_dev_t *dev);
// rtlsdr_cancel_async returns 0 on success
func (c *Context) CancelAsync() (err int) {
	return int(C.rtlsdr_cancel_async((*C.rtlsdr_dev_t)(c.dev)))
}
Exemplo n.º 3
0
// CancelAsync cancels all pending asynchronous operations.
func (dev *Context) CancelAsync() error {
	i := int(C.rtlsdr_cancel_async((*C.rtlsdr_dev_t)(dev)))
	return libError(i)
}