Source code for pyupm_nrf24l01

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# 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
if 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
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_nrf24l01', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_nrf24l01 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_nrf24l01
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


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_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


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

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0



def getVersion():
    return _pyupm_nrf24l01.getVersion()
getVersion = _pyupm_nrf24l01.getVersion
[docs]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 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)
[docs] def cast(self): return _pyupm_nrf24l01.uint8Array_cast(self)
__swig_getmethods__["frompointer"] = lambda x: _pyupm_nrf24l01.uint8Array_frompointer if _newclass: frompointer = staticmethod(_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
[docs]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
[docs] def run(self): """ virtual void run(clbk_data arg) """ return _pyupm_nrf24l01.Callback_run(self)
def __init__(self): this = _pyupm_nrf24l01.new_Callback() try: self.this.append(this) except Exception: self.this = this
Callback_swigregister = _pyupm_nrf24l01.Callback_swigregister Callback_swigregister(Callback)
[docs]def generic_callback(callback): """ void generic_callback(Callback *callback) """ return _pyupm_nrf24l01.generic_callback(callback)
_pyupm_nrf24l01.CONFIG_swigconstant(_pyupm_nrf24l01) CONFIG = _pyupm_nrf24l01.CONFIG _pyupm_nrf24l01.EN_AA_swigconstant(_pyupm_nrf24l01) EN_AA = _pyupm_nrf24l01.EN_AA _pyupm_nrf24l01.EN_RXADDR_swigconstant(_pyupm_nrf24l01) EN_RXADDR = _pyupm_nrf24l01.EN_RXADDR _pyupm_nrf24l01.SETUP_AW_swigconstant(_pyupm_nrf24l01) SETUP_AW = _pyupm_nrf24l01.SETUP_AW _pyupm_nrf24l01.SETUP_RETR_swigconstant(_pyupm_nrf24l01) SETUP_RETR = _pyupm_nrf24l01.SETUP_RETR _pyupm_nrf24l01.RF_CH_swigconstant(_pyupm_nrf24l01) RF_CH = _pyupm_nrf24l01.RF_CH _pyupm_nrf24l01.RF_SETUP_swigconstant(_pyupm_nrf24l01) RF_SETUP = _pyupm_nrf24l01.RF_SETUP _pyupm_nrf24l01.STATUS_swigconstant(_pyupm_nrf24l01) STATUS = _pyupm_nrf24l01.STATUS _pyupm_nrf24l01.OBSERVE_TX_swigconstant(_pyupm_nrf24l01) OBSERVE_TX = _pyupm_nrf24l01.OBSERVE_TX _pyupm_nrf24l01.CD_swigconstant(_pyupm_nrf24l01) CD = _pyupm_nrf24l01.CD _pyupm_nrf24l01.RX_ADDR_P0_swigconstant(_pyupm_nrf24l01) RX_ADDR_P0 = _pyupm_nrf24l01.RX_ADDR_P0 _pyupm_nrf24l01.RX_ADDR_P1_swigconstant(_pyupm_nrf24l01) RX_ADDR_P1 = _pyupm_nrf24l01.RX_ADDR_P1 _pyupm_nrf24l01.RX_ADDR_P2_swigconstant(_pyupm_nrf24l01) RX_ADDR_P2 = _pyupm_nrf24l01.RX_ADDR_P2 _pyupm_nrf24l01.RX_ADDR_P3_swigconstant(_pyupm_nrf24l01) RX_ADDR_P3 = _pyupm_nrf24l01.RX_ADDR_P3 _pyupm_nrf24l01.RX_ADDR_P4_swigconstant(_pyupm_nrf24l01) RX_ADDR_P4 = _pyupm_nrf24l01.RX_ADDR_P4 _pyupm_nrf24l01.RX_ADDR_P5_swigconstant(_pyupm_nrf24l01) RX_ADDR_P5 = _pyupm_nrf24l01.RX_ADDR_P5 _pyupm_nrf24l01.TX_ADDR_swigconstant(_pyupm_nrf24l01) TX_ADDR = _pyupm_nrf24l01.TX_ADDR _pyupm_nrf24l01.RX_PW_P0_swigconstant(_pyupm_nrf24l01) RX_PW_P0 = _pyupm_nrf24l01.RX_PW_P0 _pyupm_nrf24l01.RX_PW_P1_swigconstant(_pyupm_nrf24l01) RX_PW_P1 = _pyupm_nrf24l01.RX_PW_P1 _pyupm_nrf24l01.RX_PW_P2_swigconstant(_pyupm_nrf24l01) RX_PW_P2 = _pyupm_nrf24l01.RX_PW_P2 _pyupm_nrf24l01.RX_PW_P3_swigconstant(_pyupm_nrf24l01) RX_PW_P3 = _pyupm_nrf24l01.RX_PW_P3 _pyupm_nrf24l01.RX_PW_P4_swigconstant(_pyupm_nrf24l01) RX_PW_P4 = _pyupm_nrf24l01.RX_PW_P4 _pyupm_nrf24l01.RX_PW_P5_swigconstant(_pyupm_nrf24l01) RX_PW_P5 = _pyupm_nrf24l01.RX_PW_P5 _pyupm_nrf24l01.FIFO_STATUS_swigconstant(_pyupm_nrf24l01) FIFO_STATUS = _pyupm_nrf24l01.FIFO_STATUS _pyupm_nrf24l01.DYNPD_swigconstant(_pyupm_nrf24l01) DYNPD = _pyupm_nrf24l01.DYNPD _pyupm_nrf24l01.FEATURE_swigconstant(_pyupm_nrf24l01) FEATURE = _pyupm_nrf24l01.FEATURE _pyupm_nrf24l01.MASK_RX_DR_swigconstant(_pyupm_nrf24l01) MASK_RX_DR = _pyupm_nrf24l01.MASK_RX_DR _pyupm_nrf24l01.MASK_TX_DS_swigconstant(_pyupm_nrf24l01) MASK_TX_DS = _pyupm_nrf24l01.MASK_TX_DS _pyupm_nrf24l01.MASK_MAX_RT_swigconstant(_pyupm_nrf24l01) MASK_MAX_RT = _pyupm_nrf24l01.MASK_MAX_RT _pyupm_nrf24l01.EN_CRC_swigconstant(_pyupm_nrf24l01) EN_CRC = _pyupm_nrf24l01.EN_CRC _pyupm_nrf24l01.CRCO_swigconstant(_pyupm_nrf24l01) CRCO = _pyupm_nrf24l01.CRCO _pyupm_nrf24l01.PWR_UP_swigconstant(_pyupm_nrf24l01) PWR_UP = _pyupm_nrf24l01.PWR_UP _pyupm_nrf24l01.PRIM_RX_swigconstant(_pyupm_nrf24l01) PRIM_RX = _pyupm_nrf24l01.PRIM_RX _pyupm_nrf24l01.ENAA_P5_swigconstant(_pyupm_nrf24l01) ENAA_P5 = _pyupm_nrf24l01.ENAA_P5 _pyupm_nrf24l01.ENAA_P4_swigconstant(_pyupm_nrf24l01) ENAA_P4 = _pyupm_nrf24l01.ENAA_P4 _pyupm_nrf24l01.ENAA_P3_swigconstant(_pyupm_nrf24l01) ENAA_P3 = _pyupm_nrf24l01.ENAA_P3 _pyupm_nrf24l01.ENAA_P2_swigconstant(_pyupm_nrf24l01) ENAA_P2 = _pyupm_nrf24l01.ENAA_P2 _pyupm_nrf24l01.ENAA_P1_swigconstant(_pyupm_nrf24l01) ENAA_P1 = _pyupm_nrf24l01.ENAA_P1 _pyupm_nrf24l01.ENAA_P0_swigconstant(_pyupm_nrf24l01) ENAA_P0 = _pyupm_nrf24l01.ENAA_P0 _pyupm_nrf24l01.ERX_P5_swigconstant(_pyupm_nrf24l01) ERX_P5 = _pyupm_nrf24l01.ERX_P5 _pyupm_nrf24l01.ERX_P4_swigconstant(_pyupm_nrf24l01) ERX_P4 = _pyupm_nrf24l01.ERX_P4 _pyupm_nrf24l01.ERX_P3_swigconstant(_pyupm_nrf24l01) ERX_P3 = _pyupm_nrf24l01.ERX_P3 _pyupm_nrf24l01.ERX_P2_swigconstant(_pyupm_nrf24l01) ERX_P2 = _pyupm_nrf24l01.ERX_P2 _pyupm_nrf24l01.ERX_P1_swigconstant(_pyupm_nrf24l01) ERX_P1 = _pyupm_nrf24l01.ERX_P1 _pyupm_nrf24l01.ERX_P0_swigconstant(_pyupm_nrf24l01) ERX_P0 = _pyupm_nrf24l01.ERX_P0 _pyupm_nrf24l01.AW_swigconstant(_pyupm_nrf24l01) AW = _pyupm_nrf24l01.AW _pyupm_nrf24l01.ARD_swigconstant(_pyupm_nrf24l01) ARD = _pyupm_nrf24l01.ARD _pyupm_nrf24l01.ARC_swigconstant(_pyupm_nrf24l01) ARC = _pyupm_nrf24l01.ARC _pyupm_nrf24l01.PLL_LOCK_swigconstant(_pyupm_nrf24l01) PLL_LOCK = _pyupm_nrf24l01.PLL_LOCK _pyupm_nrf24l01.RF_DR_swigconstant(_pyupm_nrf24l01) RF_DR = _pyupm_nrf24l01.RF_DR _pyupm_nrf24l01.RF_PWR_swigconstant(_pyupm_nrf24l01) RF_PWR = _pyupm_nrf24l01.RF_PWR _pyupm_nrf24l01.LNA_HCURR_swigconstant(_pyupm_nrf24l01) LNA_HCURR = _pyupm_nrf24l01.LNA_HCURR _pyupm_nrf24l01.RX_DR_swigconstant(_pyupm_nrf24l01) RX_DR = _pyupm_nrf24l01.RX_DR _pyupm_nrf24l01.TX_DS_swigconstant(_pyupm_nrf24l01) TX_DS = _pyupm_nrf24l01.TX_DS _pyupm_nrf24l01.MAX_RT_swigconstant(_pyupm_nrf24l01) MAX_RT = _pyupm_nrf24l01.MAX_RT _pyupm_nrf24l01.RX_P_NO_swigconstant(_pyupm_nrf24l01) RX_P_NO = _pyupm_nrf24l01.RX_P_NO _pyupm_nrf24l01.TX_FULL_swigconstant(_pyupm_nrf24l01) TX_FULL = _pyupm_nrf24l01.TX_FULL _pyupm_nrf24l01.PLOS_CNT_swigconstant(_pyupm_nrf24l01) PLOS_CNT = _pyupm_nrf24l01.PLOS_CNT _pyupm_nrf24l01.ARC_CNT_swigconstant(_pyupm_nrf24l01) ARC_CNT = _pyupm_nrf24l01.ARC_CNT _pyupm_nrf24l01.TX_REUSE_swigconstant(_pyupm_nrf24l01) TX_REUSE = _pyupm_nrf24l01.TX_REUSE _pyupm_nrf24l01.FIFO_FULL_swigconstant(_pyupm_nrf24l01) FIFO_FULL = _pyupm_nrf24l01.FIFO_FULL _pyupm_nrf24l01.TX_EMPTY_swigconstant(_pyupm_nrf24l01) TX_EMPTY = _pyupm_nrf24l01.TX_EMPTY _pyupm_nrf24l01.RX_FULL_swigconstant(_pyupm_nrf24l01) RX_FULL = _pyupm_nrf24l01.RX_FULL _pyupm_nrf24l01.RX_EMPTY_swigconstant(_pyupm_nrf24l01) RX_EMPTY = _pyupm_nrf24l01.RX_EMPTY _pyupm_nrf24l01.R_REGISTER_swigconstant(_pyupm_nrf24l01) R_REGISTER = _pyupm_nrf24l01.R_REGISTER _pyupm_nrf24l01.W_REGISTER_swigconstant(_pyupm_nrf24l01) W_REGISTER = _pyupm_nrf24l01.W_REGISTER _pyupm_nrf24l01.REGISTER_MASK_swigconstant(_pyupm_nrf24l01) REGISTER_MASK = _pyupm_nrf24l01.REGISTER_MASK _pyupm_nrf24l01.R_RX_PAYLOAD_swigconstant(_pyupm_nrf24l01) R_RX_PAYLOAD = _pyupm_nrf24l01.R_RX_PAYLOAD _pyupm_nrf24l01.W_TX_PAYLOAD_swigconstant(_pyupm_nrf24l01) W_TX_PAYLOAD = _pyupm_nrf24l01.W_TX_PAYLOAD _pyupm_nrf24l01.FLUSH_TX_swigconstant(_pyupm_nrf24l01) FLUSH_TX = _pyupm_nrf24l01.FLUSH_TX _pyupm_nrf24l01.FLUSH_RX_swigconstant(_pyupm_nrf24l01) FLUSH_RX = _pyupm_nrf24l01.FLUSH_RX _pyupm_nrf24l01.REUSE_TX_PL_swigconstant(_pyupm_nrf24l01) REUSE_TX_PL = _pyupm_nrf24l01.REUSE_TX_PL _pyupm_nrf24l01.NOP_swigconstant(_pyupm_nrf24l01) NOP = _pyupm_nrf24l01.NOP _pyupm_nrf24l01.RF_DR_LOW_swigconstant(_pyupm_nrf24l01) RF_DR_LOW = _pyupm_nrf24l01.RF_DR_LOW _pyupm_nrf24l01.RF_DR_HIGH_swigconstant(_pyupm_nrf24l01) RF_DR_HIGH = _pyupm_nrf24l01.RF_DR_HIGH _pyupm_nrf24l01.RF_PWR_LOW_swigconstant(_pyupm_nrf24l01) RF_PWR_LOW = _pyupm_nrf24l01.RF_PWR_LOW _pyupm_nrf24l01.RF_PWR_HIGH_swigconstant(_pyupm_nrf24l01) RF_PWR_HIGH = _pyupm_nrf24l01.RF_PWR_HIGH _pyupm_nrf24l01.ADDR_LEN_swigconstant(_pyupm_nrf24l01) ADDR_LEN = _pyupm_nrf24l01.ADDR_LEN _pyupm_nrf24l01._CONFIG_swigconstant(_pyupm_nrf24l01) _CONFIG = _pyupm_nrf24l01._CONFIG _pyupm_nrf24l01.MAX_BUFFER_swigconstant(_pyupm_nrf24l01) MAX_BUFFER = _pyupm_nrf24l01.MAX_BUFFER _pyupm_nrf24l01.HIGH_swigconstant(_pyupm_nrf24l01) HIGH = _pyupm_nrf24l01.HIGH _pyupm_nrf24l01.LOW_swigconstant(_pyupm_nrf24l01) LOW = _pyupm_nrf24l01.LOW _pyupm_nrf24l01.BLE_MAC_0_swigconstant(_pyupm_nrf24l01) BLE_MAC_0 = _pyupm_nrf24l01.BLE_MAC_0 _pyupm_nrf24l01.BLE_MAC_1_swigconstant(_pyupm_nrf24l01) BLE_MAC_1 = _pyupm_nrf24l01.BLE_MAC_1 _pyupm_nrf24l01.BLE_MAC_2_swigconstant(_pyupm_nrf24l01) BLE_MAC_2 = _pyupm_nrf24l01.BLE_MAC_2 _pyupm_nrf24l01.BLE_MAC_3_swigconstant(_pyupm_nrf24l01) BLE_MAC_3 = _pyupm_nrf24l01.BLE_MAC_3 _pyupm_nrf24l01.BLE_MAC_4_swigconstant(_pyupm_nrf24l01) BLE_MAC_4 = _pyupm_nrf24l01.BLE_MAC_4 _pyupm_nrf24l01.BLE_MAC_5_swigconstant(_pyupm_nrf24l01) BLE_MAC_5 = _pyupm_nrf24l01.BLE_MAC_5 _pyupm_nrf24l01.BLE_PAYLOAD_OFFSET_swigconstant(_pyupm_nrf24l01) BLE_PAYLOAD_OFFSET = _pyupm_nrf24l01.BLE_PAYLOAD_OFFSET _pyupm_nrf24l01.NRF_250KBPS_swigconstant(_pyupm_nrf24l01) NRF_250KBPS = _pyupm_nrf24l01.NRF_250KBPS _pyupm_nrf24l01.NRF_1MBPS_swigconstant(_pyupm_nrf24l01) NRF_1MBPS = _pyupm_nrf24l01.NRF_1MBPS _pyupm_nrf24l01.NRF_2MBPS_swigconstant(_pyupm_nrf24l01) NRF_2MBPS = _pyupm_nrf24l01.NRF_2MBPS _pyupm_nrf24l01.NRF_0DBM_swigconstant(_pyupm_nrf24l01) NRF_0DBM = _pyupm_nrf24l01.NRF_0DBM _pyupm_nrf24l01.NRF_6DBM_swigconstant(_pyupm_nrf24l01) NRF_6DBM = _pyupm_nrf24l01.NRF_6DBM _pyupm_nrf24l01.NRF_12DBM_swigconstant(_pyupm_nrf24l01) NRF_12DBM = _pyupm_nrf24l01.NRF_12DBM _pyupm_nrf24l01.NRF_18DBM_swigconstant(_pyupm_nrf24l01) NRF_18DBM = _pyupm_nrf24l01.NRF_18DBM
[docs]class NRF24L01(_object): """ API for the NRF24L01 Transceiver Module. ID: nrf24l01 Name: NRF Transceiver Category: wifi Manufacturer: seeed sparkfun Link:http://www.seeedstudio.com/depot/nRF24L01Module-p-1394.html Connection: spi id This module defines the NRF24L01 interface for libnrf24l01 C++ includes: nrf24l01.hpp """ __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): """ NRF24L01(int cs, int ce) Instantiates an NRF24l01 object Parameters: ----------- cs: Chip select pin """ this = _pyupm_nrf24l01.new_NRF24L01(cs, ce) try: self.this.append(this) except Exception: self.this = this
[docs] def name(self): """ std::string name() Returns the name of the component """ return _pyupm_nrf24l01.NRF24L01_name(self)
[docs] def init(self, chipSelect, chipEnable): """ void init(int chipSelect, int chipEnable) Initializes needed GPIO pins and SPI Parameters: ----------- chipSelect: Sets up the chip select pin chipEnable: Sets up the chip enable pin """ return _pyupm_nrf24l01.NRF24L01_init(self, chipSelect, chipEnable)
[docs] def configure(self): """ void configure() Configures the NRF24L01 transceiver """ return _pyupm_nrf24l01.NRF24L01_configure(self)
[docs] def send(self, *args): """ void send() Sends the data located in an inner bufer; the user must fill the m_txBuffer buffer """ return _pyupm_nrf24l01.NRF24L01_send(self, *args)
[docs] def setSourceAddress(self, addr): """ void setSourceAddress(uint8_t *addr) Sets a receiving address of the device Parameters: ----------- addr: 5-byte address """ return _pyupm_nrf24l01.NRF24L01_setSourceAddress(self, addr)
[docs] def setDestinationAddress(self, addr): """ void setDestinationAddress(uint8_t *addr) Sets a recipient address. The nrfSend method sends the data buffer to this address Parameters: ----------- addr: 5-byte address """ return _pyupm_nrf24l01.NRF24L01_setDestinationAddress(self, addr)
[docs] def setBroadcastAddress(self, addr): """ void setBroadcastAddress(uint8_t *addr) Sets a broadcasting address Parameters: ----------- addr: 5-byte address """ return _pyupm_nrf24l01.NRF24L01_setBroadcastAddress(self, addr)
[docs] def setPayload(self, load): """ void setPayload(uint8_t load) Sets the payload size Parameters: ----------- load: Size of the payload (MAX 32) """ return _pyupm_nrf24l01.NRF24L01_setPayload(self, load)
[docs] def setDataReceivedHandler(self, call_obj): """ void setDataReceivedHandler(Callback *call_obj) Sets the handler to be called when data has been received Parameters: ----------- call_obj: Object used for callback - Java """ return _pyupm_nrf24l01.NRF24L01_setDataReceivedHandler(self, call_obj)
[docs] def dataReady(self): """ bool dataReady() Checks if the data has arrived """ return _pyupm_nrf24l01.NRF24L01_dataReady(self)
[docs] def dataSending(self): """ bool dataSending() Checks if the transceiver is in the sending mode """ return _pyupm_nrf24l01.NRF24L01_dataSending(self)
[docs] def getData(self, data): """ void getData(uint8_t *data) Sinks all the arrived data into a provided buffer Parameters: ----------- data: Pointer to the buffer """ return _pyupm_nrf24l01.NRF24L01_getData(self, data)
[docs] def getStatus(self): """ uint8_t getStatus() Checks the transceiver state """ return _pyupm_nrf24l01.NRF24L01_getStatus(self)
[docs] def rxFifoEmpty(self): """ bool rxFifoEmpty() Checks if the receive stack is empty """ return _pyupm_nrf24l01.NRF24L01_rxFifoEmpty(self)
[docs] def rxPowerUp(self): """ void rxPowerUp() Powers the receiver up """ return _pyupm_nrf24l01.NRF24L01_rxPowerUp(self)
[docs] def rxFlushBuffer(self): """ void rxFlushBuffer() Flushes the receive stack """ return _pyupm_nrf24l01.NRF24L01_rxFlushBuffer(self)
[docs] def txPowerUp(self): """ void txPowerUp() Powers the transmitter up """ return _pyupm_nrf24l01.NRF24L01_txPowerUp(self)
[docs] def powerDown(self): """ void powerDown() Powers everything down """ return _pyupm_nrf24l01.NRF24L01_powerDown(self)
[docs] def setChannel(self, channel): """ void setChannel(uint8_t channel) """ return _pyupm_nrf24l01.NRF24L01_setChannel(self, channel)
[docs] def setPower(self, power): """ void setPower(power_t power) """ return _pyupm_nrf24l01.NRF24L01_setPower(self, power)
[docs] def setSpeedRate(self, rate): """ uint8_t setSpeedRate(speed_rate_t rate) """ return _pyupm_nrf24l01.NRF24L01_setSpeedRate(self, rate)
[docs] def txFlushBuffer(self): """ void txFlushBuffer() Flushes the transmit stack """ return _pyupm_nrf24l01.NRF24L01_txFlushBuffer(self)
[docs] def pollListener(self): """ void pollListener() Pulling the method listening for the arrived data, dataRecievedHandler is triggered if data arrives """ return _pyupm_nrf24l01.NRF24L01_pollListener(self)
[docs] def ceHigh(self): """ mraa::Result ceHigh() Sets the chip enable pin to HIGH """ return _pyupm_nrf24l01.NRF24L01_ceHigh(self)
[docs] def ceLow(self): """ mraa::Result ceLow() Sets the chip enable pin to LOW """ return _pyupm_nrf24l01.NRF24L01_ceLow(self)
[docs] def csOn(self): """ mraa::Result csOn() Sets the chip select pin to LOW """ return _pyupm_nrf24l01.NRF24L01_csOn(self)
[docs] def csOff(self): """ mraa::Result csOff() Sets the chip select pin to HIGH """ return _pyupm_nrf24l01.NRF24L01_csOff(self)
[docs] def setBeaconingMode(self): """ void setBeaconingMode() Configures the NRF24L01 transceiver to behave as a BLE (Bluetooth Low Energy) beaconing devcie. """ return _pyupm_nrf24l01.NRF24L01_setBeaconingMode(self)
[docs] def sendBeaconingMsg(self, msg): """ void sendBeaconingMsg(uint8_t *msg) Beacons the provided message to BLE scanners. Parameters: ----------- msg: Beacons the provided message (max length is 16 bytes) """ 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.