# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.1.1
#
# 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
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _iio_pluto_sink_swig
else:
    import _iio_pluto_sink_swig

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)



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

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

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

def high_res_timer_epoch() -> "gr::high_res_timer_type":
    r"""high_res_timer_epoch() -> gr::high_res_timer_type"""
    return _iio_pluto_sink_swig.high_res_timer_epoch()
class pluto_sink(object):
    r"""Proxy of C++ gr::iio::pluto_sink class."""

    thisown = 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

    @staticmethod
    def make(*args, **kwargs) -> "gr::iio::pluto_sink::sptr":
        r"""make(std::string const & uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, unsigned long buffer_size, bool cyclic, double attenuation, char const * filter="", bool auto_filter=True) -> pluto_sink_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_make(*args, **kwargs)

    def set_params(self, *args, **kwargs) -> "void":
        r"""set_params(pluto_sink self, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, double attenuation, char const * filter="", bool auto_filter=True)"""
        return _iio_pluto_sink_swig.pluto_sink_set_params(self, *args, **kwargs)
    __swig_destroy__ = _iio_pluto_sink_swig.delete_pluto_sink

# Register pluto_sink in _iio_pluto_sink_swig:
_iio_pluto_sink_swig.pluto_sink_swigregister(pluto_sink)
class pluto_sink_sptr(object):
    r"""Proxy of C++ boost::shared_ptr< gr::iio::pluto_sink > class."""

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

    def __init__(self, *args):
        r"""
        __init__(pluto_sink_sptr self) -> pluto_sink_sptr
        __init__(pluto_sink_sptr self, pluto_sink p) -> pluto_sink_sptr
        """
        _iio_pluto_sink_swig.pluto_sink_sptr_swiginit(self, _iio_pluto_sink_swig.new_pluto_sink_sptr(*args))

    def __deref__(self) -> "gr::iio::pluto_sink *":
        r"""__deref__(pluto_sink_sptr self) -> pluto_sink"""
        return _iio_pluto_sink_swig.pluto_sink_sptr___deref__(self)
    __swig_destroy__ = _iio_pluto_sink_swig.delete_pluto_sink_sptr

    def make(self, *args, **kwargs) -> "gr::iio::pluto_sink::sptr":
        r"""make(pluto_sink_sptr self, std::string const & uri, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, unsigned long buffer_size, bool cyclic, double attenuation, char const * filter="", bool auto_filter=True) -> pluto_sink_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_make(self, *args, **kwargs)

    def set_params(self, *args, **kwargs) -> "void":
        r"""set_params(pluto_sink_sptr self, unsigned long long frequency, unsigned long samplerate, unsigned long bandwidth, double attenuation, char const * filter="", bool auto_filter=True)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_params(self, *args, **kwargs)

    def primitive_connect(self, *args) -> "void":
        r"""
        primitive_connect(pluto_sink_sptr self, basic_block_sptr block)
        primitive_connect(pluto_sink_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_connect(self, *args)

    def primitive_msg_connect(self, *args) -> "void":
        r"""
        primitive_msg_connect(pluto_sink_sptr self, basic_block_sptr src, swig_pmt_ptr srcport, basic_block_sptr dst, swig_pmt_ptr dstport)
        primitive_msg_connect(pluto_sink_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_msg_connect(self, *args)

    def primitive_msg_disconnect(self, *args) -> "void":
        r"""
        primitive_msg_disconnect(pluto_sink_sptr self, basic_block_sptr src, swig_pmt_ptr srcport, basic_block_sptr dst, swig_pmt_ptr dstport)
        primitive_msg_disconnect(pluto_sink_sptr self, basic_block_sptr src, std::string srcport, basic_block_sptr dst, std::string dstport)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_msg_disconnect(self, *args)

    def primitive_disconnect(self, *args) -> "void":
        r"""
        primitive_disconnect(pluto_sink_sptr self, basic_block_sptr block)
        primitive_disconnect(pluto_sink_sptr self, basic_block_sptr src, int src_port, basic_block_sptr dst, int dst_port)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_disconnect(self, *args)

    def disconnect_all(self) -> "void":
        r"""disconnect_all(pluto_sink_sptr self)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_disconnect_all(self)

    def lock(self) -> "void":
        r"""lock(pluto_sink_sptr self)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_lock(self)

    def unlock(self) -> "void":
        r"""unlock(pluto_sink_sptr self)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_unlock(self)

    def primitive_message_port_register_hier_in(self, port_id: "swig_pmt_ptr") -> "void":
        r"""primitive_message_port_register_hier_in(pluto_sink_sptr self, swig_pmt_ptr port_id)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_message_port_register_hier_in(self, port_id)

    def primitive_message_port_register_hier_out(self, port_id: "swig_pmt_ptr") -> "void":
        r"""primitive_message_port_register_hier_out(pluto_sink_sptr self, swig_pmt_ptr port_id)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_primitive_message_port_register_hier_out(self, port_id)

    def set_processor_affinity(self, mask: "std::vector< int,std::allocator< int > > const &") -> "void":
        r"""set_processor_affinity(pluto_sink_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_processor_affinity(self, mask)

    def unset_processor_affinity(self) -> "void":
        r"""unset_processor_affinity(pluto_sink_sptr self)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_unset_processor_affinity(self)

    def processor_affinity(self) -> "std::vector< int,std::allocator< int > >":
        r"""processor_affinity(pluto_sink_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_processor_affinity(self)

    def set_log_level(self, level: "std::string") -> "void":
        r"""set_log_level(pluto_sink_sptr self, std::string level)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_log_level(self, level)

    def log_level(self) -> "std::string":
        r"""log_level(pluto_sink_sptr self) -> std::string"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_log_level(self)

    def max_output_buffer(self, i: "int") -> "size_t":
        r"""max_output_buffer(pluto_sink_sptr self, int i) -> size_t"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_max_output_buffer(self, i)

    def set_max_output_buffer(self, *args) -> "void":
        r"""
        set_max_output_buffer(pluto_sink_sptr self, size_t max_output_buffer)
        set_max_output_buffer(pluto_sink_sptr self, int port, size_t max_output_buffer)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_max_output_buffer(self, *args)

    def min_output_buffer(self, i: "int") -> "size_t":
        r"""min_output_buffer(pluto_sink_sptr self, int i) -> size_t"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_min_output_buffer(self, i)

    def set_min_output_buffer(self, *args) -> "void":
        r"""
        set_min_output_buffer(pluto_sink_sptr self, size_t min_output_buffer)
        set_min_output_buffer(pluto_sink_sptr self, int port, size_t min_output_buffer)
        """
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_min_output_buffer(self, *args)

    def to_hier_block2(self) -> "gr::hier_block2_sptr":
        r"""to_hier_block2(pluto_sink_sptr self) -> hier_block2_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_to_hier_block2(self)

    def name(self) -> "std::string":
        r"""name(pluto_sink_sptr self) -> std::string"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_name(self)

    def symbol_name(self) -> "std::string":
        r"""symbol_name(pluto_sink_sptr self) -> std::string"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_symbol_name(self)

    def input_signature(self) -> "gr::io_signature::sptr":
        r"""input_signature(pluto_sink_sptr self) -> io_signature_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_input_signature(self)

    def output_signature(self) -> "gr::io_signature::sptr":
        r"""output_signature(pluto_sink_sptr self) -> io_signature_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_output_signature(self)

    def unique_id(self) -> "long":
        r"""unique_id(pluto_sink_sptr self) -> long"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_unique_id(self)

    def to_basic_block(self) -> "gr::basic_block_sptr":
        r"""to_basic_block(pluto_sink_sptr self) -> basic_block_sptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_to_basic_block(self)

    def check_topology(self, ninputs: "int", noutputs: "int") -> "bool":
        r"""check_topology(pluto_sink_sptr self, int ninputs, int noutputs) -> bool"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_check_topology(self, ninputs, noutputs)

    def alias(self) -> "std::string":
        r"""alias(pluto_sink_sptr self) -> std::string"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_alias(self)

    def set_block_alias(self, name: "std::string") -> "void":
        r"""set_block_alias(pluto_sink_sptr self, std::string name)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_set_block_alias(self, name)

    def _post(self, which_port: "swig_pmt_ptr", msg: "swig_pmt_ptr") -> "void":
        r"""_post(pluto_sink_sptr self, swig_pmt_ptr which_port, swig_pmt_ptr msg)"""
        return _iio_pluto_sink_swig.pluto_sink_sptr__post(self, which_port, msg)

    def message_ports_in(self) -> "pmt::pmt_t":
        r"""message_ports_in(pluto_sink_sptr self) -> swig_pmt_ptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_message_ports_in(self)

    def message_ports_out(self) -> "pmt::pmt_t":
        r"""message_ports_out(pluto_sink_sptr self) -> swig_pmt_ptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_message_ports_out(self)

    def message_subscribers(self, which_port: "swig_pmt_ptr") -> "pmt::pmt_t":
        r"""message_subscribers(pluto_sink_sptr self, swig_pmt_ptr which_port) -> swig_pmt_ptr"""
        return _iio_pluto_sink_swig.pluto_sink_sptr_message_subscribers(self, which_port)

# Register pluto_sink_sptr in _iio_pluto_sink_swig:
_iio_pluto_sink_swig.pluto_sink_sptr_swigregister(pluto_sink_sptr)

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


