# 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, '_pyupm_nrf24l01')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_nrf24l01')
    _pyupm_nrf24l01 = 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('_pyupm_nrf24l01', [dirname(__file__)])
        except ImportError:
            import _pyupm_nrf24l01
            return _pyupm_nrf24l01
        try:
            _mod = imp.load_module('_pyupm_nrf24l01', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_nrf24l01 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_nrf24l01
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):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[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,)

try:
    _object = object
    _newclass = 1
except __builtin__.Exception:
    class _object:
        pass
    _newclass = 0


def getVersion():
    return _pyupm_nrf24l01.getVersion()
getVersion = _pyupm_nrf24l01.getVersion
class uint8Array(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, uint8Array, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, uint8Array, name)
    __repr__ = _swig_repr

    def __init__(self, nelements):
        this = _pyupm_nrf24l01.new_uint8Array(nelements)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_nrf24l01.delete_uint8Array
    __del__ = lambda self: None

    def __getitem__(self, index):
        return _pyupm_nrf24l01.uint8Array___getitem__(self, index)

    def __setitem__(self, index, value):
        return _pyupm_nrf24l01.uint8Array___setitem__(self, index, value)

    def cast(self):
        return _pyupm_nrf24l01.uint8Array_cast(self)
    if _newclass:
        frompointer = staticmethod(_pyupm_nrf24l01.uint8Array_frompointer)
    else:
        frompointer = _pyupm_nrf24l01.uint8Array_frompointer
uint8Array_swigregister = _pyupm_nrf24l01.uint8Array_swigregister
uint8Array_swigregister(uint8Array)

def uint8Array_frompointer(t):
    return _pyupm_nrf24l01.uint8Array_frompointer(t)
uint8Array_frompointer = _pyupm_nrf24l01.uint8Array_frompointer

class Callback(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Callback, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Callback, name)
    __repr__ = _swig_repr
    __swig_destroy__ = _pyupm_nrf24l01.delete_Callback
    __del__ = lambda self: None

    def run(self):
        return _pyupm_nrf24l01.Callback_run(self)

    def __init__(self):
        this = _pyupm_nrf24l01.new_Callback()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
Callback_swigregister = _pyupm_nrf24l01.Callback_swigregister
Callback_swigregister(Callback)


def generic_callback(callback):
    return _pyupm_nrf24l01.generic_callback(callback)
generic_callback = _pyupm_nrf24l01.generic_callback
CONFIG = _pyupm_nrf24l01.CONFIG
EN_AA = _pyupm_nrf24l01.EN_AA
EN_RXADDR = _pyupm_nrf24l01.EN_RXADDR
SETUP_AW = _pyupm_nrf24l01.SETUP_AW
SETUP_RETR = _pyupm_nrf24l01.SETUP_RETR
RF_CH = _pyupm_nrf24l01.RF_CH
RF_SETUP = _pyupm_nrf24l01.RF_SETUP
STATUS = _pyupm_nrf24l01.STATUS
OBSERVE_TX = _pyupm_nrf24l01.OBSERVE_TX
CD = _pyupm_nrf24l01.CD
RX_ADDR_P0 = _pyupm_nrf24l01.RX_ADDR_P0
RX_ADDR_P1 = _pyupm_nrf24l01.RX_ADDR_P1
RX_ADDR_P2 = _pyupm_nrf24l01.RX_ADDR_P2
RX_ADDR_P3 = _pyupm_nrf24l01.RX_ADDR_P3
RX_ADDR_P4 = _pyupm_nrf24l01.RX_ADDR_P4
RX_ADDR_P5 = _pyupm_nrf24l01.RX_ADDR_P5
TX_ADDR = _pyupm_nrf24l01.TX_ADDR
RX_PW_P0 = _pyupm_nrf24l01.RX_PW_P0
RX_PW_P1 = _pyupm_nrf24l01.RX_PW_P1
RX_PW_P2 = _pyupm_nrf24l01.RX_PW_P2
RX_PW_P3 = _pyupm_nrf24l01.RX_PW_P3
RX_PW_P4 = _pyupm_nrf24l01.RX_PW_P4
RX_PW_P5 = _pyupm_nrf24l01.RX_PW_P5
FIFO_STATUS = _pyupm_nrf24l01.FIFO_STATUS
DYNPD = _pyupm_nrf24l01.DYNPD
FEATURE = _pyupm_nrf24l01.FEATURE
MASK_RX_DR = _pyupm_nrf24l01.MASK_RX_DR
MASK_TX_DS = _pyupm_nrf24l01.MASK_TX_DS
MASK_MAX_RT = _pyupm_nrf24l01.MASK_MAX_RT
EN_CRC = _pyupm_nrf24l01.EN_CRC
CRCO = _pyupm_nrf24l01.CRCO
PWR_UP = _pyupm_nrf24l01.PWR_UP
PRIM_RX = _pyupm_nrf24l01.PRIM_RX
ENAA_P5 = _pyupm_nrf24l01.ENAA_P5
ENAA_P4 = _pyupm_nrf24l01.ENAA_P4
ENAA_P3 = _pyupm_nrf24l01.ENAA_P3
ENAA_P2 = _pyupm_nrf24l01.ENAA_P2
ENAA_P1 = _pyupm_nrf24l01.ENAA_P1
ENAA_P0 = _pyupm_nrf24l01.ENAA_P0
ERX_P5 = _pyupm_nrf24l01.ERX_P5
ERX_P4 = _pyupm_nrf24l01.ERX_P4
ERX_P3 = _pyupm_nrf24l01.ERX_P3
ERX_P2 = _pyupm_nrf24l01.ERX_P2
ERX_P1 = _pyupm_nrf24l01.ERX_P1
ERX_P0 = _pyupm_nrf24l01.ERX_P0
AW = _pyupm_nrf24l01.AW
ARD = _pyupm_nrf24l01.ARD
ARC = _pyupm_nrf24l01.ARC
PLL_LOCK = _pyupm_nrf24l01.PLL_LOCK
RF_DR = _pyupm_nrf24l01.RF_DR
RF_PWR = _pyupm_nrf24l01.RF_PWR
LNA_HCURR = _pyupm_nrf24l01.LNA_HCURR
RX_DR = _pyupm_nrf24l01.RX_DR
TX_DS = _pyupm_nrf24l01.TX_DS
MAX_RT = _pyupm_nrf24l01.MAX_RT
RX_P_NO = _pyupm_nrf24l01.RX_P_NO
TX_FULL = _pyupm_nrf24l01.TX_FULL
PLOS_CNT = _pyupm_nrf24l01.PLOS_CNT
ARC_CNT = _pyupm_nrf24l01.ARC_CNT
TX_REUSE = _pyupm_nrf24l01.TX_REUSE
FIFO_FULL = _pyupm_nrf24l01.FIFO_FULL
TX_EMPTY = _pyupm_nrf24l01.TX_EMPTY
RX_FULL = _pyupm_nrf24l01.RX_FULL
RX_EMPTY = _pyupm_nrf24l01.RX_EMPTY
R_REGISTER = _pyupm_nrf24l01.R_REGISTER
W_REGISTER = _pyupm_nrf24l01.W_REGISTER
REGISTER_MASK = _pyupm_nrf24l01.REGISTER_MASK
R_RX_PAYLOAD = _pyupm_nrf24l01.R_RX_PAYLOAD
W_TX_PAYLOAD = _pyupm_nrf24l01.W_TX_PAYLOAD
FLUSH_TX = _pyupm_nrf24l01.FLUSH_TX
FLUSH_RX = _pyupm_nrf24l01.FLUSH_RX
REUSE_TX_PL = _pyupm_nrf24l01.REUSE_TX_PL
NOP = _pyupm_nrf24l01.NOP
RF_DR_LOW = _pyupm_nrf24l01.RF_DR_LOW
RF_DR_HIGH = _pyupm_nrf24l01.RF_DR_HIGH
RF_PWR_LOW = _pyupm_nrf24l01.RF_PWR_LOW
RF_PWR_HIGH = _pyupm_nrf24l01.RF_PWR_HIGH
ADDR_LEN = _pyupm_nrf24l01.ADDR_LEN
_CONFIG = _pyupm_nrf24l01._CONFIG
MAX_BUFFER = _pyupm_nrf24l01.MAX_BUFFER
HIGH = _pyupm_nrf24l01.HIGH
LOW = _pyupm_nrf24l01.LOW
BLE_MAC_0 = _pyupm_nrf24l01.BLE_MAC_0
BLE_MAC_1 = _pyupm_nrf24l01.BLE_MAC_1
BLE_MAC_2 = _pyupm_nrf24l01.BLE_MAC_2
BLE_MAC_3 = _pyupm_nrf24l01.BLE_MAC_3
BLE_MAC_4 = _pyupm_nrf24l01.BLE_MAC_4
BLE_MAC_5 = _pyupm_nrf24l01.BLE_MAC_5
BLE_PAYLOAD_OFFSET = _pyupm_nrf24l01.BLE_PAYLOAD_OFFSET
NRF_250KBPS = _pyupm_nrf24l01.NRF_250KBPS
NRF_1MBPS = _pyupm_nrf24l01.NRF_1MBPS
NRF_2MBPS = _pyupm_nrf24l01.NRF_2MBPS
NRF_0DBM = _pyupm_nrf24l01.NRF_0DBM
NRF_6DBM = _pyupm_nrf24l01.NRF_6DBM
NRF_12DBM = _pyupm_nrf24l01.NRF_12DBM
NRF_18DBM = _pyupm_nrf24l01.NRF_18DBM
class NRF24L01(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, NRF24L01, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, NRF24L01, name)
    __repr__ = _swig_repr

    def __init__(self, cs, ce):
        this = _pyupm_nrf24l01.new_NRF24L01(cs, ce)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def name(self):
        return _pyupm_nrf24l01.NRF24L01_name(self)

    def init(self, chipSelect, chipEnable):
        return _pyupm_nrf24l01.NRF24L01_init(self, chipSelect, chipEnable)

    def configure(self):
        return _pyupm_nrf24l01.NRF24L01_configure(self)

    def send(self, *args):
        return _pyupm_nrf24l01.NRF24L01_send(self, *args)

    def setSourceAddress(self, addr):
        return _pyupm_nrf24l01.NRF24L01_setSourceAddress(self, addr)

    def setDestinationAddress(self, addr):
        return _pyupm_nrf24l01.NRF24L01_setDestinationAddress(self, addr)

    def setBroadcastAddress(self, addr):
        return _pyupm_nrf24l01.NRF24L01_setBroadcastAddress(self, addr)

    def setPayload(self, load):
        return _pyupm_nrf24l01.NRF24L01_setPayload(self, load)

    def setDataReceivedHandler(self, call_obj):
        return _pyupm_nrf24l01.NRF24L01_setDataReceivedHandler(self, call_obj)

    def dataReady(self):
        return _pyupm_nrf24l01.NRF24L01_dataReady(self)

    def dataSending(self):
        return _pyupm_nrf24l01.NRF24L01_dataSending(self)

    def getData(self, data):
        return _pyupm_nrf24l01.NRF24L01_getData(self, data)

    def getStatus(self):
        return _pyupm_nrf24l01.NRF24L01_getStatus(self)

    def rxFifoEmpty(self):
        return _pyupm_nrf24l01.NRF24L01_rxFifoEmpty(self)

    def rxPowerUp(self):
        return _pyupm_nrf24l01.NRF24L01_rxPowerUp(self)

    def rxFlushBuffer(self):
        return _pyupm_nrf24l01.NRF24L01_rxFlushBuffer(self)

    def txPowerUp(self):
        return _pyupm_nrf24l01.NRF24L01_txPowerUp(self)

    def powerDown(self):
        return _pyupm_nrf24l01.NRF24L01_powerDown(self)

    def setChannel(self, channel):
        return _pyupm_nrf24l01.NRF24L01_setChannel(self, channel)

    def setPower(self, power):
        return _pyupm_nrf24l01.NRF24L01_setPower(self, power)

    def setSpeedRate(self, rate):
        return _pyupm_nrf24l01.NRF24L01_setSpeedRate(self, rate)

    def txFlushBuffer(self):
        return _pyupm_nrf24l01.NRF24L01_txFlushBuffer(self)

    def pollListener(self):
        return _pyupm_nrf24l01.NRF24L01_pollListener(self)

    def ceHigh(self):
        return _pyupm_nrf24l01.NRF24L01_ceHigh(self)

    def ceLow(self):
        return _pyupm_nrf24l01.NRF24L01_ceLow(self)

    def csOn(self):
        return _pyupm_nrf24l01.NRF24L01_csOn(self)

    def csOff(self):
        return _pyupm_nrf24l01.NRF24L01_csOff(self)

    def setBeaconingMode(self):
        return _pyupm_nrf24l01.NRF24L01_setBeaconingMode(self)

    def sendBeaconingMsg(self, msg):
        return _pyupm_nrf24l01.NRF24L01_sendBeaconingMsg(self, msg)
    __swig_setmethods__["m_rxBuffer"] = _pyupm_nrf24l01.NRF24L01_m_rxBuffer_set
    __swig_getmethods__["m_rxBuffer"] = _pyupm_nrf24l01.NRF24L01_m_rxBuffer_get
    if _newclass:
        m_rxBuffer = _swig_property(_pyupm_nrf24l01.NRF24L01_m_rxBuffer_get, _pyupm_nrf24l01.NRF24L01_m_rxBuffer_set)
    __swig_setmethods__["m_txBuffer"] = _pyupm_nrf24l01.NRF24L01_m_txBuffer_set
    __swig_getmethods__["m_txBuffer"] = _pyupm_nrf24l01.NRF24L01_m_txBuffer_get
    if _newclass:
        m_txBuffer = _swig_property(_pyupm_nrf24l01.NRF24L01_m_txBuffer_get, _pyupm_nrf24l01.NRF24L01_m_txBuffer_set)
    __swig_setmethods__["m_bleBuffer"] = _pyupm_nrf24l01.NRF24L01_m_bleBuffer_set
    __swig_getmethods__["m_bleBuffer"] = _pyupm_nrf24l01.NRF24L01_m_bleBuffer_get
    if _newclass:
        m_bleBuffer = _swig_property(_pyupm_nrf24l01.NRF24L01_m_bleBuffer_get, _pyupm_nrf24l01.NRF24L01_m_bleBuffer_set)
    __swig_destroy__ = _pyupm_nrf24l01.delete_NRF24L01
    __del__ = lambda self: None
NRF24L01_swigregister = _pyupm_nrf24l01.NRF24L01_swigregister
NRF24L01_swigregister(NRF24L01)

# This file is compatible with both classic and new-style classes.


