spywrap

package
v0.0.0-...-14102c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AirspySuccess                 = 0
	AirspyTrue                    = 1
	AirspyErrorInvalidParam       = -2
	AirspyErrorNotFound           = -5
	AirspyErrorBusy               = -6
	AirspyErrorNoMem              = -11
	AirspyErrorLibusb             = -1000
	AirspyErrorThread             = -1001
	AirspyErrorStreamingThreadErr = -1002
	AirspyErrorStreamingStopped   = -1003
	AirspyErrorOther              = -9999
)
View Source
const (
	AirspyBoardIdProtoAirspy = 0
	AirspyBoardIdInvalid     = 0xFF
)
View Source
const (
	AirspySampleFloat32Iq   = 0 /* 2 * 32bit float per sample */
	AirspySampleFloat32Real = 1 /* 1 * 32bit float per sample */
	AirspySampleInt16Iq     = 2 /* 2 * 16bit int per sample */
	AirspySampleInt16Real   = 3 /* 1 * 16bit int per sample */
	AirspySampleUint16Real  = 4 /* 1 * 16bit unsigned int per sample */
	AirspySampleRaw         = 5 /* Raw packed samples from the device */
	AirspySampleEnd         = 6 /* Number of supported sample types */
)
View Source
const AIRSPY_VERSION string = "1.0.9"
View Source
const AIRSPY_VER_MAJOR int = 1
View Source
const AIRSPY_VER_MINOR int = 0
View Source
const AIRSPY_VER_REVISION int = 9

Variables

View Source
var MAX_CONFIG_PAGE_SIZE int = _swig_getMAX_CONFIG_PAGE_SIZE()
View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}

Functions

func AirspyStart

func AirspyStart(arg1 Struct_SS_airspy_device, arg2 uintptr) (_swig_ret int)

func Airspy_board_id_name

func Airspy_board_id_name(arg1 Enum_SS_airspy_board_id) (_swig_ret string)

func Airspy_board_id_read

func Airspy_board_id_read(arg1 Struct_SS_airspy_device, arg2 []byte) (_swig_ret int)

func Airspy_board_partid_serialno_read

func Airspy_board_partid_serialno_read(arg1 Struct_SS_airspy_device, arg2 Airspy_read_partid_serialno_t) (_swig_ret int)

func Airspy_close

func Airspy_close(arg1 Struct_SS_airspy_device) (_swig_ret int)

func Airspy_error_name

func Airspy_error_name(arg1 Enum_SS_airspy_error) (_swig_ret string)

func Airspy_exit

func Airspy_exit() (_swig_ret int)

func Airspy_get_samplerates

func Airspy_get_samplerates(arg1 Struct_SS_airspy_device, arg2 []uint32, arg3 uint) (_swig_ret int)

func Airspy_gpio_read

func Airspy_gpio_read(arg1 Struct_SS_airspy_device, arg2 Airspy_gpio_port_t, arg3 Airspy_gpio_pin_t, arg4 []byte) (_swig_ret int)

func Airspy_gpio_write

func Airspy_gpio_write(arg1 Struct_SS_airspy_device, arg2 Airspy_gpio_port_t, arg3 Airspy_gpio_pin_t, arg4 byte) (_swig_ret int)

func Airspy_gpiodir_read

func Airspy_gpiodir_read(arg1 Struct_SS_airspy_device, arg2 Airspy_gpio_port_t, arg3 Airspy_gpio_pin_t, arg4 []byte) (_swig_ret int)

func Airspy_gpiodir_write

func Airspy_gpiodir_write(arg1 Struct_SS_airspy_device, arg2 Airspy_gpio_port_t, arg3 Airspy_gpio_pin_t, arg4 byte) (_swig_ret int)

func Airspy_init

func Airspy_init() (_swig_ret int)

func Airspy_is_streaming

func Airspy_is_streaming(arg1 Struct_SS_airspy_device) (_swig_ret int)

func Airspy_lib_version

func Airspy_lib_version(arg1 Airspy_lib_version_t)

func Airspy_open

func Airspy_open(arg1 Struct_SS_airspy_device) (_swig_ret int)

func Airspy_open_sn

func Airspy_open_sn(arg1 Struct_SS_airspy_device, arg2 uint64) (_swig_ret int)

func Airspy_r820t_read

func Airspy_r820t_read(arg1 Struct_SS_airspy_device, arg2 byte, arg3 []byte) (_swig_ret int)

func Airspy_r820t_write

func Airspy_r820t_write(arg1 Struct_SS_airspy_device, arg2 byte, arg3 byte) (_swig_ret int)

func Airspy_set_conversion_filter_float32

func Airspy_set_conversion_filter_float32(arg1 Struct_SS_airspy_device, arg2 *float32, arg3 uint) (_swig_ret int)

func Airspy_set_conversion_filter_int16

func Airspy_set_conversion_filter_int16(arg1 Struct_SS_airspy_device, arg2 *int16, arg3 uint) (_swig_ret int)

func Airspy_set_freq

func Airspy_set_freq(arg1 Struct_SS_airspy_device, arg2 uint) (_swig_ret int)

func Airspy_set_linearity_gain

func Airspy_set_linearity_gain(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_lna_agc

func Airspy_set_lna_agc(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_lna_gain

func Airspy_set_lna_gain(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_mixer_agc

func Airspy_set_mixer_agc(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_mixer_gain

func Airspy_set_mixer_gain(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_packing

func Airspy_set_packing(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_rf_bias

func Airspy_set_rf_bias(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_sample_type

func Airspy_set_sample_type(arg1 Struct_SS_airspy_device, arg2 Enum_SS_airspy_sample_type) (_swig_ret int)

func Airspy_set_samplerate

func Airspy_set_samplerate(arg1 Struct_SS_airspy_device, arg2 uint) (_swig_ret int)

func Airspy_set_sensitivity_gain

func Airspy_set_sensitivity_gain(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_set_vga_gain

func Airspy_set_vga_gain(arg1 Struct_SS_airspy_device, arg2 byte) (_swig_ret int)

func Airspy_si5351c_read

func Airspy_si5351c_read(arg1 Struct_SS_airspy_device, arg2 byte, arg3 []byte) (_swig_ret int)

func Airspy_si5351c_write

func Airspy_si5351c_write(arg1 Struct_SS_airspy_device, arg2 byte, arg3 byte) (_swig_ret int)

func Airspy_spiflash_erase

func Airspy_spiflash_erase(arg1 Struct_SS_airspy_device) (_swig_ret int)

func Airspy_spiflash_erase_sector

func Airspy_spiflash_erase_sector(arg1 Struct_SS_airspy_device, arg2 uint16) (_swig_ret int)

func Airspy_spiflash_read

func Airspy_spiflash_read(arg1 Struct_SS_airspy_device, arg2 uint, arg3 uint16, arg4 *byte) (_swig_ret int)

func Airspy_spiflash_write

func Airspy_spiflash_write(arg1 Struct_SS_airspy_device, arg2 uint, arg3 uint16, arg4 *byte) (_swig_ret int)

func Airspy_start_rx

func Airspy_start_rx(arg1 Struct_SS_airspy_device, arg2 *_swig_fnptr, arg3 uintptr) (_swig_ret int)

func Airspy_stop_rx

func Airspy_stop_rx(arg1 Struct_SS_airspy_device) (_swig_ret int)

func Airspy_version_string_read

func Airspy_version_string_read(arg1 Struct_SS_airspy_device, arg2 []byte, arg3 byte) (_swig_ret int)

func CbProxy

func CbProxy(arg1 uintptr, arg2 Airspy_transfer_t) (_swig_ret int)

func CharStringToString

func CharStringToString(data []byte) string

func DeleteAirspy_lib_version_t

func DeleteAirspy_lib_version_t(arg1 Airspy_lib_version_t)

func DeleteAirspy_open_result_t

func DeleteAirspy_open_result_t(arg1 Airspy_open_result_t)

func DeleteAirspy_read_partid_serialno_t

func DeleteAirspy_read_partid_serialno_t(arg1 Airspy_read_partid_serialno_t)

func DeleteAirspy_transfer_t

func DeleteAirspy_transfer_t(arg1 Airspy_transfer_t)

func FreeOpenResult

func FreeOpenResult(arg1 Airspy_open_result_t)

func GetAirspyError

func GetAirspyError(err int) string

func PartNumber

func PartNumber(arg1 *uint) (_swig_ret uint64)

func SerialNumber

func SerialNumber(arg1 *uint) (_swig_ret uint64)

func Swig_free

func Swig_free(arg1 uintptr)

func Swig_malloc

func Swig_malloc(arg1 int) (_swig_ret uintptr)

Types

type Airspy_gpio_pin_t

type Airspy_gpio_pin_t interface {
	Swigcptr() uintptr
}

type Airspy_gpio_port_t

type Airspy_gpio_port_t interface {
	Swigcptr() uintptr
}

type Airspy_lib_version_t

type Airspy_lib_version_t interface {
	Swigcptr() uintptr
	SwigIsAirspy_lib_version_t()
	SetMajor_version(arg2 uint)
	GetMajor_version() (_swig_ret uint)
	SetMinor_version(arg2 uint)
	GetMinor_version() (_swig_ret uint)
	SetRevision(arg2 uint)
	GetRevision() (_swig_ret uint)
}

func NewAirspy_lib_version_t

func NewAirspy_lib_version_t() (_swig_ret Airspy_lib_version_t)

type Airspy_open_result_t

type Airspy_open_result_t interface {
	Swigcptr() uintptr
	SwigIsAirspy_open_result_t()
	SetDevice(arg2 Struct_SS_airspy_device)
	GetDevice() (_swig_ret Struct_SS_airspy_device)
	SetResult(arg2 int)
	GetResult() (_swig_ret int)
}

func NewAirspy_open_result_t

func NewAirspy_open_result_t() (_swig_ret Airspy_open_result_t)

func OpenDevice

func OpenDevice() (_swig_ret Airspy_open_result_t)

func OpenDeviceBySerial

func OpenDeviceBySerial(arg1 uint64) (_swig_ret Airspy_open_result_t)

type Airspy_read_partid_serialno_t

type Airspy_read_partid_serialno_t interface {
	Swigcptr() uintptr
	SwigIsAirspy_read_partid_serialno_t()
	SetPart_id(arg2 *uint)
	GetPart_id() (_swig_ret *uint)
	SetSerial_no(arg2 *uint)
	GetSerial_no() (_swig_ret *uint)
}

func NewAirspy_read_partid_serialno_t

func NewAirspy_read_partid_serialno_t() (_swig_ret Airspy_read_partid_serialno_t)

type Airspy_transfer_t

type Airspy_transfer_t interface {
	Swigcptr() uintptr
	SwigIsAirspy_transfer_t()
	SetDevice(arg2 Struct_SS_airspy_device)
	GetDevice() (_swig_ret Struct_SS_airspy_device)
	SetCtx(arg2 uintptr)
	GetCtx() (_swig_ret uintptr)
	SetSamples(arg2 uintptr)
	GetSamples() (_swig_ret uintptr)
	SetSample_count(arg2 int)
	GetSample_count() (_swig_ret int)
	SetDropped_samples(arg2 uint64)
	GetDropped_samples() (_swig_ret uint64)
	SetSample_type(arg2 Enum_SS_airspy_sample_type)
	GetSample_type() (_swig_ret Enum_SS_airspy_sample_type)
}

func NewAirspy_transfer_t

func NewAirspy_transfer_t() (_swig_ret Airspy_transfer_t)

type Callback

type Callback struct {
	Func func(interface{}, Airspy_transfer_t) int
	Data interface{}
}

type Enum_SS_airspy_board_id

type Enum_SS_airspy_board_id int
var AIRSPY_BOARD_ID_INVALID Enum_SS_airspy_board_id = _swig_getAIRSPY_BOARD_ID_INVALID()
var AIRSPY_BOARD_ID_PROTO_AIRSPY Enum_SS_airspy_board_id = _swig_getAIRSPY_BOARD_ID_PROTO_AIRSPY()

type Enum_SS_airspy_error

type Enum_SS_airspy_error int
var AIRSPY_ERROR_BUSY Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_BUSY()
var AIRSPY_ERROR_INVALID_PARAM Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_INVALID_PARAM()
var AIRSPY_ERROR_LIBUSB Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_LIBUSB()
var AIRSPY_ERROR_NOT_FOUND Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_NOT_FOUND()
var AIRSPY_ERROR_NO_MEM Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_NO_MEM()
var AIRSPY_ERROR_OTHER Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_OTHER()
var AIRSPY_ERROR_STREAMING_STOPPED Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_STREAMING_STOPPED()
var AIRSPY_ERROR_STREAMING_THREAD_ERR Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_STREAMING_THREAD_ERR()
var AIRSPY_ERROR_THREAD Enum_SS_airspy_error = _swig_getAIRSPY_ERROR_THREAD()
var AIRSPY_SUCCESS Enum_SS_airspy_error = _swig_getAIRSPY_SUCCESS()
var AIRSPY_TRUE Enum_SS_airspy_error = _swig_getAIRSPY_TRUE()

type Enum_SS_airspy_sample_type

type Enum_SS_airspy_sample_type int
var AIRSPY_SAMPLE_END Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_END()
var AIRSPY_SAMPLE_FLOAT32_IQ Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_FLOAT32_IQ()
var AIRSPY_SAMPLE_FLOAT32_REAL Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_FLOAT32_REAL()
var AIRSPY_SAMPLE_INT16_IQ Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_INT16_IQ()
var AIRSPY_SAMPLE_INT16_REAL Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_INT16_REAL()
var AIRSPY_SAMPLE_RAW Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_RAW()
var AIRSPY_SAMPLE_UINT16_REAL Enum_SS_airspy_sample_type = _swig_getAIRSPY_SAMPLE_UINT16_REAL()

type Struct_SS_airspy_device

type Struct_SS_airspy_device interface {
	Swigcptr() uintptr
}

type SwigcptrAirspy_gpio_pin_t

type SwigcptrAirspy_gpio_pin_t uintptr

func (SwigcptrAirspy_gpio_pin_t) Swigcptr

func (p SwigcptrAirspy_gpio_pin_t) Swigcptr() uintptr

type SwigcptrAirspy_gpio_port_t

type SwigcptrAirspy_gpio_port_t uintptr

func (SwigcptrAirspy_gpio_port_t) Swigcptr

func (p SwigcptrAirspy_gpio_port_t) Swigcptr() uintptr

type SwigcptrAirspy_lib_version_t

type SwigcptrAirspy_lib_version_t uintptr

func (SwigcptrAirspy_lib_version_t) GetMajor_version

func (arg1 SwigcptrAirspy_lib_version_t) GetMajor_version() (_swig_ret uint)

func (SwigcptrAirspy_lib_version_t) GetMinor_version

func (arg1 SwigcptrAirspy_lib_version_t) GetMinor_version() (_swig_ret uint)

func (SwigcptrAirspy_lib_version_t) GetRevision

func (arg1 SwigcptrAirspy_lib_version_t) GetRevision() (_swig_ret uint)

func (SwigcptrAirspy_lib_version_t) SetMajor_version

func (arg1 SwigcptrAirspy_lib_version_t) SetMajor_version(arg2 uint)

func (SwigcptrAirspy_lib_version_t) SetMinor_version

func (arg1 SwigcptrAirspy_lib_version_t) SetMinor_version(arg2 uint)

func (SwigcptrAirspy_lib_version_t) SetRevision

func (arg1 SwigcptrAirspy_lib_version_t) SetRevision(arg2 uint)

func (SwigcptrAirspy_lib_version_t) SwigIsAirspy_lib_version_t

func (p SwigcptrAirspy_lib_version_t) SwigIsAirspy_lib_version_t()

func (SwigcptrAirspy_lib_version_t) Swigcptr

type SwigcptrAirspy_open_result_t

type SwigcptrAirspy_open_result_t uintptr

func (SwigcptrAirspy_open_result_t) GetDevice

func (arg1 SwigcptrAirspy_open_result_t) GetDevice() (_swig_ret Struct_SS_airspy_device)

func (SwigcptrAirspy_open_result_t) GetResult

func (arg1 SwigcptrAirspy_open_result_t) GetResult() (_swig_ret int)

func (SwigcptrAirspy_open_result_t) SetDevice

func (SwigcptrAirspy_open_result_t) SetResult

func (arg1 SwigcptrAirspy_open_result_t) SetResult(arg2 int)

func (SwigcptrAirspy_open_result_t) SwigIsAirspy_open_result_t

func (p SwigcptrAirspy_open_result_t) SwigIsAirspy_open_result_t()

func (SwigcptrAirspy_open_result_t) Swigcptr

type SwigcptrAirspy_read_partid_serialno_t

type SwigcptrAirspy_read_partid_serialno_t uintptr

func (SwigcptrAirspy_read_partid_serialno_t) GetPart_id

func (arg1 SwigcptrAirspy_read_partid_serialno_t) GetPart_id() (_swig_ret *uint)

func (SwigcptrAirspy_read_partid_serialno_t) GetSerial_no

func (arg1 SwigcptrAirspy_read_partid_serialno_t) GetSerial_no() (_swig_ret *uint)

func (SwigcptrAirspy_read_partid_serialno_t) SetPart_id

func (arg1 SwigcptrAirspy_read_partid_serialno_t) SetPart_id(arg2 *uint)

func (SwigcptrAirspy_read_partid_serialno_t) SetSerial_no

func (arg1 SwigcptrAirspy_read_partid_serialno_t) SetSerial_no(arg2 *uint)

func (SwigcptrAirspy_read_partid_serialno_t) SwigIsAirspy_read_partid_serialno_t

func (p SwigcptrAirspy_read_partid_serialno_t) SwigIsAirspy_read_partid_serialno_t()

func (SwigcptrAirspy_read_partid_serialno_t) Swigcptr

type SwigcptrAirspy_transfer_t

type SwigcptrAirspy_transfer_t uintptr

func (SwigcptrAirspy_transfer_t) GetCtx

func (arg1 SwigcptrAirspy_transfer_t) GetCtx() (_swig_ret uintptr)

func (SwigcptrAirspy_transfer_t) GetDevice

func (arg1 SwigcptrAirspy_transfer_t) GetDevice() (_swig_ret Struct_SS_airspy_device)

func (SwigcptrAirspy_transfer_t) GetDropped_samples

func (arg1 SwigcptrAirspy_transfer_t) GetDropped_samples() (_swig_ret uint64)

func (SwigcptrAirspy_transfer_t) GetSample_count

func (arg1 SwigcptrAirspy_transfer_t) GetSample_count() (_swig_ret int)

func (SwigcptrAirspy_transfer_t) GetSample_type

func (arg1 SwigcptrAirspy_transfer_t) GetSample_type() (_swig_ret Enum_SS_airspy_sample_type)

func (SwigcptrAirspy_transfer_t) GetSamples

func (arg1 SwigcptrAirspy_transfer_t) GetSamples() (_swig_ret uintptr)

func (SwigcptrAirspy_transfer_t) SetCtx

func (arg1 SwigcptrAirspy_transfer_t) SetCtx(arg2 uintptr)

func (SwigcptrAirspy_transfer_t) SetDevice

func (SwigcptrAirspy_transfer_t) SetDropped_samples

func (arg1 SwigcptrAirspy_transfer_t) SetDropped_samples(arg2 uint64)

func (SwigcptrAirspy_transfer_t) SetSample_count

func (arg1 SwigcptrAirspy_transfer_t) SetSample_count(arg2 int)

func (SwigcptrAirspy_transfer_t) SetSample_type

func (arg1 SwigcptrAirspy_transfer_t) SetSample_type(arg2 Enum_SS_airspy_sample_type)

func (SwigcptrAirspy_transfer_t) SetSamples

func (arg1 SwigcptrAirspy_transfer_t) SetSamples(arg2 uintptr)

func (SwigcptrAirspy_transfer_t) SwigIsAirspy_transfer_t

func (p SwigcptrAirspy_transfer_t) SwigIsAirspy_transfer_t()

func (SwigcptrAirspy_transfer_t) Swigcptr

func (p SwigcptrAirspy_transfer_t) Swigcptr() uintptr

type SwigcptrStruct_SS_airspy_device

type SwigcptrStruct_SS_airspy_device uintptr

func (SwigcptrStruct_SS_airspy_device) Swigcptr

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL