# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_fcd_swig')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_fcd_swig')
    _fcd_swig = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_fcd_swig', [dirname(__file__)])
        except ImportError:
            import _fcd_swig
            return _fcd_swig
        try:
            _mod = imp.load_module('_fcd_swig', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _fcd_swig = swig_import_helper()
    del swig_import_helper
else:
    import _fcd_swig
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        object.__setattr__(self, name, value)
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)


def _swig_setattr_nondynamic_method(set):
    def set_attr(self, name, value):
        if (name == "thisown"):
            return self.this.own(value)
        if hasattr(self, name) or (name == "this"):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr



def high_res_timer_now():
    """high_res_timer_now() -> gr::high_res_timer_type"""
    return _fcd_swig.high_res_timer_now()

def high_res_timer_now_perfmon():
    """high_res_timer_now_perfmon() -> gr::high_res_timer_type"""
    return _fcd_swig.high_res_timer_now_perfmon()

def high_res_timer_tps():
    """high_res_timer_tps() -> gr::high_res_timer_type"""
    return _fcd_swig.high_res_timer_tps()

def high_res_timer_epoch():
    """high_res_timer_epoch() -> gr::high_res_timer_type"""
    return _fcd_swig.high_res_timer_epoch()
class source_c(object):
    """Proxy of C++ gr::fcd::source_c class."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr

    def make(*args, **kwargs):
        """make(std::string const device_name) -> source_c_sptr"""
        return _fcd_swig.source_c_make(*args, **kwargs)

    make = staticmethod(make)

    def set_freq(self, *args):
        """
        set_freq(source_c self, int freq)
        set_freq(source_c self, float freq)
        """
        return _fcd_swig.source_c_set_freq(self, *args)


    def set_freq_khz(self, freq):
        """set_freq_khz(source_c self, int freq)"""
        return _fcd_swig.source_c_set_freq_khz(self, freq)


    def set_lna_gain(self, gain):
        """set_lna_gain(source_c self, float gain)"""
        return _fcd_swig.source_c_set_lna_gain(self, gain)


    def set_mixer_gain(self, gain):
        """set_mixer_gain(source_c self, float gain)"""
        return _fcd_swig.source_c_set_mixer_gain(self, gain)


    def set_freq_corr(self, ppm):
        """set_freq_corr(source_c self, int ppm)"""
        return _fcd_swig.source_c_set_freq_corr(self, ppm)


    def set_dc_corr(self, _dci, _dcq):
        """set_dc_corr(source_c self, double _dci, double _dcq)"""
        return _fcd_swig.source_c_set_dc_corr(self, _dci, _dcq)


    def set_iq_corr(self, _gain, _phase):
        """set_iq_corr(source_c self, double _gain, double _phase)"""
        return _fcd_swig.source_c_set_iq_corr(self, _gain, _phase)

    __swig_destroy__ = _fcd_swig.delete_source_c
    __del__ = lambda self: None
source_c_swigregister = _fcd_swig.source_c_swigregister
source_c_swigregister(source_c)

def source_c_make(*args, **kwargs):
    """source_c_make(std::string const device_name) -> source_c_sptr"""
    return _fcd_swig.source_c_make(*args, **kwargs)

class source_c_sptr(object):
    """Proxy of C++ boost::shared_ptr<(gr::fcd::source_c)> class."""

    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr

    def __init__(self, *args):
        """
        __init__(boost::shared_ptr<(gr::fcd::source_c)> self) -> source_c_sptr
        __init__(boost::shared_ptr<(gr::fcd::source_c)> self, source_c p) -> source_c_sptr
        """
        this = _fcd_swig.new_source_c_sptr(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def __deref__(self):
        """__deref__(source_c_sptr self) -> source_c"""
        return _fcd_swig.source_c_sptr___deref__(self)

    __swig_destroy__ = _fcd_swig.delete_source_c_sptr
    __del__ = lambda self: None

    def make(self, *args, **kwargs):
        """make(source_c_sptr self, std::string const device_name) -> source_c_sptr"""
        return _fcd_swig.source_c_sptr_make(self, *args, **kwargs)


    def set_freq(self, *args):
        """
        set_freq(source_c_sptr self, int freq)
        set_freq(source_c_sptr self, float freq)
        """
        return _fcd_swig.source_c_sptr_set_freq(self, *args)


    def set_freq_khz(self, freq):
        """set_freq_khz(source_c_sptr self, int freq)"""
        return _fcd_swig.source_c_sptr_set_freq_khz(self, freq)


    def set_lna_gain(self, gain):
        """set_lna_gain(source_c_sptr self, float gain)"""
        return _fcd_swig.source_c_sptr_set_lna_gain(self, gain)


    def set_mixer_gain(self, gain):
        """set_mixer_gain(source_c_sptr self, float gain)"""
        return _fcd_swig.source_c_sptr_set_mixer_gain(self, gain)


    def set_freq_corr(self, ppm):
        """set_freq_corr(source_c_sptr self, int ppm)"""
        return _fcd_swig.source_c_sptr_set_freq_corr(self, ppm)


    def set_dc_corr(self, _dci, _dcq):
        """set_dc_corr(source_c_sptr self, double _dci, double _dcq)"""
        return _fcd_swig.source_c_sptr_set_dc_corr(self, _dci, _dcq)


    def set_iq_corr(self, _gain, _phase):
        """set_iq_corr(source_c_sptr self, double _gain, double _phase)"""
        return _fcd_swig.source_c_sptr_set_iq_corr(self, _gain, _phase)


    def primitive_connect(self, *args):
        """
        primitive_connect(source_c_sptr self, basic_block_sptr block)
        primitive_connect(source_c_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _fcd_swig.source_c_sptr_primitive_connect(self, *args)


    def primitive_msg_connect(self, *args):
        """
        primitive_msg_connect(source_c_sptr self, basic_block_sptr src, swig_int_ptr srcport, basic_block_sptr dst, swig_int_ptr dstport)
        primitive_msg_connect(source_c_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _fcd_swig.source_c_sptr_primitive_msg_connect(self, *args)


    def primitive_msg_disconnect(self, *args):
        """
        primitive_msg_disconnect(source_c_sptr self, basic_block_sptr src, swig_int_ptr srcport, basic_block_sptr dst, swig_int_ptr dstport)
        primitive_msg_disconnect(source_c_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _fcd_swig.source_c_sptr_primitive_msg_disconnect(self, *args)


    def primitive_disconnect(self, *args):
        """
        primitive_disconnect(source_c_sptr self, basic_block_sptr block)
        primitive_disconnect(source_c_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _fcd_swig.source_c_sptr_primitive_disconnect(self, *args)


    def disconnect_all(self):
        """disconnect_all(source_c_sptr self)"""
        return _fcd_swig.source_c_sptr_disconnect_all(self)


    def lock(self):
        """lock(source_c_sptr self)"""
        return _fcd_swig.source_c_sptr_lock(self)


    def unlock(self):
        """unlock(source_c_sptr self)"""
        return _fcd_swig.source_c_sptr_unlock(self)


    def primitive_message_port_register_hier_in(self, port_id):
        """primitive_message_port_register_hier_in(source_c_sptr self, swig_int_ptr port_id)"""
        return _fcd_swig.source_c_sptr_primitive_message_port_register_hier_in(self, port_id)


    def primitive_message_port_register_hier_out(self, port_id):
        """primitive_message_port_register_hier_out(source_c_sptr self, swig_int_ptr port_id)"""
        return _fcd_swig.source_c_sptr_primitive_message_port_register_hier_out(self, port_id)


    def set_processor_affinity(self, mask):
        """set_processor_affinity(source_c_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _fcd_swig.source_c_sptr_set_processor_affinity(self, mask)


    def unset_processor_affinity(self):
        """unset_processor_affinity(source_c_sptr self)"""
        return _fcd_swig.source_c_sptr_unset_processor_affinity(self)


    def processor_affinity(self):
        """processor_affinity(source_c_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _fcd_swig.source_c_sptr_processor_affinity(self)


    def max_output_buffer(self, i):
        """max_output_buffer(source_c_sptr self, int i) -> size_t"""
        return _fcd_swig.source_c_sptr_max_output_buffer(self, i)


    def set_max_output_buffer(self, *args):
        """
        set_max_output_buffer(source_c_sptr self, size_t max_output_buffer)
        set_max_output_buffer(source_c_sptr self, int port, size_t max_output_buffer)
        """
        return _fcd_swig.source_c_sptr_set_max_output_buffer(self, *args)


    def min_output_buffer(self, i):
        """min_output_buffer(source_c_sptr self, int i) -> size_t"""
        return _fcd_swig.source_c_sptr_min_output_buffer(self, i)


    def set_min_output_buffer(self, *args):
        """
        set_min_output_buffer(source_c_sptr self, size_t min_output_buffer)
        set_min_output_buffer(source_c_sptr self, int port, size_t min_output_buffer)
        """
        return _fcd_swig.source_c_sptr_set_min_output_buffer(self, *args)


    def to_hier_block2(self):
        """to_hier_block2(source_c_sptr self) -> hier_block2_sptr"""
        return _fcd_swig.source_c_sptr_to_hier_block2(self)


    def name(self):
        """name(source_c_sptr self) -> std::string"""
        return _fcd_swig.source_c_sptr_name(self)


    def symbol_name(self):
        """symbol_name(source_c_sptr self) -> std::string"""
        return _fcd_swig.source_c_sptr_symbol_name(self)


    def input_signature(self):
        """input_signature(source_c_sptr self) -> io_signature_sptr"""
        return _fcd_swig.source_c_sptr_input_signature(self)


    def output_signature(self):
        """output_signature(source_c_sptr self) -> io_signature_sptr"""
        return _fcd_swig.source_c_sptr_output_signature(self)


    def unique_id(self):
        """unique_id(source_c_sptr self) -> long"""
        return _fcd_swig.source_c_sptr_unique_id(self)


    def to_basic_block(self):
        """to_basic_block(source_c_sptr self) -> basic_block_sptr"""
        return _fcd_swig.source_c_sptr_to_basic_block(self)


    def check_topology(self, ninputs, noutputs):
        """check_topology(source_c_sptr self, int ninputs, int noutputs) -> bool"""
        return _fcd_swig.source_c_sptr_check_topology(self, ninputs, noutputs)


    def alias(self):
        """alias(source_c_sptr self) -> std::string"""
        return _fcd_swig.source_c_sptr_alias(self)


    def set_block_alias(self, name):
        """set_block_alias(source_c_sptr self, std::string name)"""
        return _fcd_swig.source_c_sptr_set_block_alias(self, name)


    def _post(self, which_port, msg):
        """_post(source_c_sptr self, swig_int_ptr which_port, swig_int_ptr msg)"""
        return _fcd_swig.source_c_sptr__post(self, which_port, msg)


    def message_ports_in(self):
        """message_ports_in(source_c_sptr self) -> swig_int_ptr"""
        return _fcd_swig.source_c_sptr_message_ports_in(self)


    def message_ports_out(self):
        """message_ports_out(source_c_sptr self) -> swig_int_ptr"""
        return _fcd_swig.source_c_sptr_message_ports_out(self)


    def message_subscribers(self, which_port):
        """message_subscribers(source_c_sptr self, swig_int_ptr which_port) -> swig_int_ptr"""
        return _fcd_swig.source_c_sptr_message_subscribers(self, which_port)

source_c_sptr_swigregister = _fcd_swig.source_c_sptr_swigregister
source_c_sptr_swigregister(source_c_sptr)


source_c_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
source_c = source_c.make;



