Source code for pyupm_rf22

# 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_rf22', [dirname(__file__)])
        except ImportError:
            import _pyupm_rf22
            return _pyupm_rf22
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_rf22', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_rf22 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_rf22
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_rf22.getVersion()
getVersion = _pyupm_rf22.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_rf22.new_uint8Array(nelements) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_rf22.delete_uint8Array __del__ = lambda self: None def __getitem__(self, index): return _pyupm_rf22.uint8Array___getitem__(self, index) def __setitem__(self, index, value): return _pyupm_rf22.uint8Array___setitem__(self, index, value)
[docs] def cast(self): return _pyupm_rf22.uint8Array_cast(self)
__swig_getmethods__["frompointer"] = lambda x: _pyupm_rf22.uint8Array_frompointer if _newclass: frompointer = staticmethod(_pyupm_rf22.uint8Array_frompointer)
uint8Array_swigregister = _pyupm_rf22.uint8Array_swigregister uint8Array_swigregister(uint8Array) def uint8Array_frompointer(t): return _pyupm_rf22.uint8Array_frompointer(t) uint8Array_frompointer = _pyupm_rf22.uint8Array_frompointer _pyupm_rf22.RF22_SPI_WRITE_MASK_swigconstant(_pyupm_rf22) RF22_SPI_WRITE_MASK = _pyupm_rf22.RF22_SPI_WRITE_MASK _pyupm_rf22.RF22_MAX_MESSAGE_LEN_swigconstant(_pyupm_rf22) RF22_MAX_MESSAGE_LEN = _pyupm_rf22.RF22_MAX_MESSAGE_LEN _pyupm_rf22.RF22_FIFO_SIZE_swigconstant(_pyupm_rf22) RF22_FIFO_SIZE = _pyupm_rf22.RF22_FIFO_SIZE _pyupm_rf22.RF22_MODE_IDLE_swigconstant(_pyupm_rf22) RF22_MODE_IDLE = _pyupm_rf22.RF22_MODE_IDLE _pyupm_rf22.RF22_MODE_RX_swigconstant(_pyupm_rf22) RF22_MODE_RX = _pyupm_rf22.RF22_MODE_RX _pyupm_rf22.RF22_MODE_TX_swigconstant(_pyupm_rf22) RF22_MODE_TX = _pyupm_rf22.RF22_MODE_TX _pyupm_rf22.RF22_TXFFAEM_THRESHOLD_swigconstant(_pyupm_rf22) RF22_TXFFAEM_THRESHOLD = _pyupm_rf22.RF22_TXFFAEM_THRESHOLD _pyupm_rf22.RF22_RXFFAFULL_THRESHOLD_swigconstant(_pyupm_rf22) RF22_RXFFAFULL_THRESHOLD = _pyupm_rf22.RF22_RXFFAFULL_THRESHOLD _pyupm_rf22.RF22_DEFAULT_NODE_ADDRESS_swigconstant(_pyupm_rf22) RF22_DEFAULT_NODE_ADDRESS = _pyupm_rf22.RF22_DEFAULT_NODE_ADDRESS _pyupm_rf22.RF22_BROADCAST_ADDRESS_swigconstant(_pyupm_rf22) RF22_BROADCAST_ADDRESS = _pyupm_rf22.RF22_BROADCAST_ADDRESS _pyupm_rf22.RF22_NUM_MODEM_CONFIG_REGS_swigconstant(_pyupm_rf22) RF22_NUM_MODEM_CONFIG_REGS = _pyupm_rf22.RF22_NUM_MODEM_CONFIG_REGS _pyupm_rf22.RF22_REG_00_DEVICE_TYPE_swigconstant(_pyupm_rf22) RF22_REG_00_DEVICE_TYPE = _pyupm_rf22.RF22_REG_00_DEVICE_TYPE _pyupm_rf22.RF22_REG_01_VERSION_CODE_swigconstant(_pyupm_rf22) RF22_REG_01_VERSION_CODE = _pyupm_rf22.RF22_REG_01_VERSION_CODE _pyupm_rf22.RF22_REG_02_DEVICE_STATUS_swigconstant(_pyupm_rf22) RF22_REG_02_DEVICE_STATUS = _pyupm_rf22.RF22_REG_02_DEVICE_STATUS _pyupm_rf22.RF22_REG_03_INTERRUPT_STATUS1_swigconstant(_pyupm_rf22) RF22_REG_03_INTERRUPT_STATUS1 = _pyupm_rf22.RF22_REG_03_INTERRUPT_STATUS1 _pyupm_rf22.RF22_REG_04_INTERRUPT_STATUS2_swigconstant(_pyupm_rf22) RF22_REG_04_INTERRUPT_STATUS2 = _pyupm_rf22.RF22_REG_04_INTERRUPT_STATUS2 _pyupm_rf22.RF22_REG_05_INTERRUPT_ENABLE1_swigconstant(_pyupm_rf22) RF22_REG_05_INTERRUPT_ENABLE1 = _pyupm_rf22.RF22_REG_05_INTERRUPT_ENABLE1 _pyupm_rf22.RF22_REG_06_INTERRUPT_ENABLE2_swigconstant(_pyupm_rf22) RF22_REG_06_INTERRUPT_ENABLE2 = _pyupm_rf22.RF22_REG_06_INTERRUPT_ENABLE2 _pyupm_rf22.RF22_REG_07_OPERATING_MODE1_swigconstant(_pyupm_rf22) RF22_REG_07_OPERATING_MODE1 = _pyupm_rf22.RF22_REG_07_OPERATING_MODE1 _pyupm_rf22.RF22_REG_08_OPERATING_MODE2_swigconstant(_pyupm_rf22) RF22_REG_08_OPERATING_MODE2 = _pyupm_rf22.RF22_REG_08_OPERATING_MODE2 _pyupm_rf22.RF22_REG_09_OSCILLATOR_LOAD_CAPACITANCE_swigconstant(_pyupm_rf22) RF22_REG_09_OSCILLATOR_LOAD_CAPACITANCE = _pyupm_rf22.RF22_REG_09_OSCILLATOR_LOAD_CAPACITANCE _pyupm_rf22.RF22_REG_0A_UC_OUTPUT_CLOCK_swigconstant(_pyupm_rf22) RF22_REG_0A_UC_OUTPUT_CLOCK = _pyupm_rf22.RF22_REG_0A_UC_OUTPUT_CLOCK _pyupm_rf22.RF22_REG_0B_GPIO_CONFIGURATION0_swigconstant(_pyupm_rf22) RF22_REG_0B_GPIO_CONFIGURATION0 = _pyupm_rf22.RF22_REG_0B_GPIO_CONFIGURATION0 _pyupm_rf22.RF22_REG_0C_GPIO_CONFIGURATION1_swigconstant(_pyupm_rf22) RF22_REG_0C_GPIO_CONFIGURATION1 = _pyupm_rf22.RF22_REG_0C_GPIO_CONFIGURATION1 _pyupm_rf22.RF22_REG_0D_GPIO_CONFIGURATION2_swigconstant(_pyupm_rf22) RF22_REG_0D_GPIO_CONFIGURATION2 = _pyupm_rf22.RF22_REG_0D_GPIO_CONFIGURATION2 _pyupm_rf22.RF22_REG_0E_IO_PORT_CONFIGURATION_swigconstant(_pyupm_rf22) RF22_REG_0E_IO_PORT_CONFIGURATION = _pyupm_rf22.RF22_REG_0E_IO_PORT_CONFIGURATION _pyupm_rf22.RF22_REG_0F_ADC_CONFIGURATION_swigconstant(_pyupm_rf22) RF22_REG_0F_ADC_CONFIGURATION = _pyupm_rf22.RF22_REG_0F_ADC_CONFIGURATION _pyupm_rf22.RF22_REG_10_ADC_SENSOR_AMP_OFFSET_swigconstant(_pyupm_rf22) RF22_REG_10_ADC_SENSOR_AMP_OFFSET = _pyupm_rf22.RF22_REG_10_ADC_SENSOR_AMP_OFFSET _pyupm_rf22.RF22_REG_11_ADC_VALUE_swigconstant(_pyupm_rf22) RF22_REG_11_ADC_VALUE = _pyupm_rf22.RF22_REG_11_ADC_VALUE _pyupm_rf22.RF22_REG_12_TEMPERATURE_SENSOR_CALIBRATION_swigconstant(_pyupm_rf22) RF22_REG_12_TEMPERATURE_SENSOR_CALIBRATION = _pyupm_rf22.RF22_REG_12_TEMPERATURE_SENSOR_CALIBRATION _pyupm_rf22.RF22_REG_13_TEMPERATURE_VALUE_OFFSET_swigconstant(_pyupm_rf22) RF22_REG_13_TEMPERATURE_VALUE_OFFSET = _pyupm_rf22.RF22_REG_13_TEMPERATURE_VALUE_OFFSET _pyupm_rf22.RF22_REG_14_WAKEUP_TIMER_PERIOD1_swigconstant(_pyupm_rf22) RF22_REG_14_WAKEUP_TIMER_PERIOD1 = _pyupm_rf22.RF22_REG_14_WAKEUP_TIMER_PERIOD1 _pyupm_rf22.RF22_REG_15_WAKEUP_TIMER_PERIOD2_swigconstant(_pyupm_rf22) RF22_REG_15_WAKEUP_TIMER_PERIOD2 = _pyupm_rf22.RF22_REG_15_WAKEUP_TIMER_PERIOD2 _pyupm_rf22.RF22_REG_16_WAKEUP_TIMER_PERIOD3_swigconstant(_pyupm_rf22) RF22_REG_16_WAKEUP_TIMER_PERIOD3 = _pyupm_rf22.RF22_REG_16_WAKEUP_TIMER_PERIOD3 _pyupm_rf22.RF22_REG_17_WAKEUP_TIMER_VALUE1_swigconstant(_pyupm_rf22) RF22_REG_17_WAKEUP_TIMER_VALUE1 = _pyupm_rf22.RF22_REG_17_WAKEUP_TIMER_VALUE1 _pyupm_rf22.RF22_REG_18_WAKEUP_TIMER_VALUE2_swigconstant(_pyupm_rf22) RF22_REG_18_WAKEUP_TIMER_VALUE2 = _pyupm_rf22.RF22_REG_18_WAKEUP_TIMER_VALUE2 _pyupm_rf22.RF22_REG_19_LDC_MODE_DURATION_swigconstant(_pyupm_rf22) RF22_REG_19_LDC_MODE_DURATION = _pyupm_rf22.RF22_REG_19_LDC_MODE_DURATION _pyupm_rf22.RF22_REG_1A_LOW_BATTERY_DETECTOR_THRESHOLD_swigconstant(_pyupm_rf22) RF22_REG_1A_LOW_BATTERY_DETECTOR_THRESHOLD = _pyupm_rf22.RF22_REG_1A_LOW_BATTERY_DETECTOR_THRESHOLD _pyupm_rf22.RF22_REG_1B_BATTERY_VOLTAGE_LEVEL_swigconstant(_pyupm_rf22) RF22_REG_1B_BATTERY_VOLTAGE_LEVEL = _pyupm_rf22.RF22_REG_1B_BATTERY_VOLTAGE_LEVEL _pyupm_rf22.RF22_REG_1C_IF_FILTER_BANDWIDTH_swigconstant(_pyupm_rf22) RF22_REG_1C_IF_FILTER_BANDWIDTH = _pyupm_rf22.RF22_REG_1C_IF_FILTER_BANDWIDTH _pyupm_rf22.RF22_REG_1D_AFC_LOOP_GEARSHIFT_OVERRIDE_swigconstant(_pyupm_rf22) RF22_REG_1D_AFC_LOOP_GEARSHIFT_OVERRIDE = _pyupm_rf22.RF22_REG_1D_AFC_LOOP_GEARSHIFT_OVERRIDE _pyupm_rf22.RF22_REG_1E_AFC_TIMING_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_1E_AFC_TIMING_CONTROL = _pyupm_rf22.RF22_REG_1E_AFC_TIMING_CONTROL _pyupm_rf22.RF22_REG_1F_CLOCK_RECOVERY_GEARSHIFT_OVERRIDE_swigconstant(_pyupm_rf22) RF22_REG_1F_CLOCK_RECOVERY_GEARSHIFT_OVERRIDE = _pyupm_rf22.RF22_REG_1F_CLOCK_RECOVERY_GEARSHIFT_OVERRIDE _pyupm_rf22.RF22_REG_20_CLOCK_RECOVERY_OVERSAMPLING_RATE_swigconstant(_pyupm_rf22) RF22_REG_20_CLOCK_RECOVERY_OVERSAMPLING_RATE = _pyupm_rf22.RF22_REG_20_CLOCK_RECOVERY_OVERSAMPLING_RATE _pyupm_rf22.RF22_REG_21_CLOCK_RECOVERY_OFFSET2_swigconstant(_pyupm_rf22) RF22_REG_21_CLOCK_RECOVERY_OFFSET2 = _pyupm_rf22.RF22_REG_21_CLOCK_RECOVERY_OFFSET2 _pyupm_rf22.RF22_REG_22_CLOCK_RECOVERY_OFFSET1_swigconstant(_pyupm_rf22) RF22_REG_22_CLOCK_RECOVERY_OFFSET1 = _pyupm_rf22.RF22_REG_22_CLOCK_RECOVERY_OFFSET1 _pyupm_rf22.RF22_REG_23_CLOCK_RECOVERY_OFFSET0_swigconstant(_pyupm_rf22) RF22_REG_23_CLOCK_RECOVERY_OFFSET0 = _pyupm_rf22.RF22_REG_23_CLOCK_RECOVERY_OFFSET0 _pyupm_rf22.RF22_REG_24_CLOCK_RECOVERY_TIMING_LOOP_GAIN1_swigconstant(_pyupm_rf22) RF22_REG_24_CLOCK_RECOVERY_TIMING_LOOP_GAIN1 = _pyupm_rf22.RF22_REG_24_CLOCK_RECOVERY_TIMING_LOOP_GAIN1 _pyupm_rf22.RF22_REG_25_CLOCK_RECOVERY_TIMING_LOOP_GAIN0_swigconstant(_pyupm_rf22) RF22_REG_25_CLOCK_RECOVERY_TIMING_LOOP_GAIN0 = _pyupm_rf22.RF22_REG_25_CLOCK_RECOVERY_TIMING_LOOP_GAIN0 _pyupm_rf22.RF22_REG_26_RSSI_swigconstant(_pyupm_rf22) RF22_REG_26_RSSI = _pyupm_rf22.RF22_REG_26_RSSI _pyupm_rf22.RF22_REG_27_RSSI_THRESHOLD_swigconstant(_pyupm_rf22) RF22_REG_27_RSSI_THRESHOLD = _pyupm_rf22.RF22_REG_27_RSSI_THRESHOLD _pyupm_rf22.RF22_REG_28_ANTENNA_DIVERSITY1_swigconstant(_pyupm_rf22) RF22_REG_28_ANTENNA_DIVERSITY1 = _pyupm_rf22.RF22_REG_28_ANTENNA_DIVERSITY1 _pyupm_rf22.RF22_REG_29_ANTENNA_DIVERSITY2_swigconstant(_pyupm_rf22) RF22_REG_29_ANTENNA_DIVERSITY2 = _pyupm_rf22.RF22_REG_29_ANTENNA_DIVERSITY2 _pyupm_rf22.RF22_REG_2A_AFC_LIMITER_swigconstant(_pyupm_rf22) RF22_REG_2A_AFC_LIMITER = _pyupm_rf22.RF22_REG_2A_AFC_LIMITER _pyupm_rf22.RF22_REG_2B_AFC_CORRECTION_READ_swigconstant(_pyupm_rf22) RF22_REG_2B_AFC_CORRECTION_READ = _pyupm_rf22.RF22_REG_2B_AFC_CORRECTION_READ _pyupm_rf22.RF22_REG_2C_OOK_COUNTER_VALUE_1_swigconstant(_pyupm_rf22) RF22_REG_2C_OOK_COUNTER_VALUE_1 = _pyupm_rf22.RF22_REG_2C_OOK_COUNTER_VALUE_1 _pyupm_rf22.RF22_REG_2D_OOK_COUNTER_VALUE_2_swigconstant(_pyupm_rf22) RF22_REG_2D_OOK_COUNTER_VALUE_2 = _pyupm_rf22.RF22_REG_2D_OOK_COUNTER_VALUE_2 _pyupm_rf22.RF22_REG_2E_SLICER_PEAK_HOLD_swigconstant(_pyupm_rf22) RF22_REG_2E_SLICER_PEAK_HOLD = _pyupm_rf22.RF22_REG_2E_SLICER_PEAK_HOLD _pyupm_rf22.RF22_REG_30_DATA_ACCESS_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_30_DATA_ACCESS_CONTROL = _pyupm_rf22.RF22_REG_30_DATA_ACCESS_CONTROL _pyupm_rf22.RF22_REG_31_EZMAC_STATUS_swigconstant(_pyupm_rf22) RF22_REG_31_EZMAC_STATUS = _pyupm_rf22.RF22_REG_31_EZMAC_STATUS _pyupm_rf22.RF22_REG_32_HEADER_CONTROL1_swigconstant(_pyupm_rf22) RF22_REG_32_HEADER_CONTROL1 = _pyupm_rf22.RF22_REG_32_HEADER_CONTROL1 _pyupm_rf22.RF22_REG_33_HEADER_CONTROL2_swigconstant(_pyupm_rf22) RF22_REG_33_HEADER_CONTROL2 = _pyupm_rf22.RF22_REG_33_HEADER_CONTROL2 _pyupm_rf22.RF22_REG_34_PREAMBLE_LENGTH_swigconstant(_pyupm_rf22) RF22_REG_34_PREAMBLE_LENGTH = _pyupm_rf22.RF22_REG_34_PREAMBLE_LENGTH _pyupm_rf22.RF22_REG_35_PREAMBLE_DETECTION_CONTROL1_swigconstant(_pyupm_rf22) RF22_REG_35_PREAMBLE_DETECTION_CONTROL1 = _pyupm_rf22.RF22_REG_35_PREAMBLE_DETECTION_CONTROL1 _pyupm_rf22.RF22_REG_36_SYNC_WORD3_swigconstant(_pyupm_rf22) RF22_REG_36_SYNC_WORD3 = _pyupm_rf22.RF22_REG_36_SYNC_WORD3 _pyupm_rf22.RF22_REG_37_SYNC_WORD2_swigconstant(_pyupm_rf22) RF22_REG_37_SYNC_WORD2 = _pyupm_rf22.RF22_REG_37_SYNC_WORD2 _pyupm_rf22.RF22_REG_38_SYNC_WORD1_swigconstant(_pyupm_rf22) RF22_REG_38_SYNC_WORD1 = _pyupm_rf22.RF22_REG_38_SYNC_WORD1 _pyupm_rf22.RF22_REG_39_SYNC_WORD0_swigconstant(_pyupm_rf22) RF22_REG_39_SYNC_WORD0 = _pyupm_rf22.RF22_REG_39_SYNC_WORD0 _pyupm_rf22.RF22_REG_3A_TRANSMIT_HEADER3_swigconstant(_pyupm_rf22) RF22_REG_3A_TRANSMIT_HEADER3 = _pyupm_rf22.RF22_REG_3A_TRANSMIT_HEADER3 _pyupm_rf22.RF22_REG_3B_TRANSMIT_HEADER2_swigconstant(_pyupm_rf22) RF22_REG_3B_TRANSMIT_HEADER2 = _pyupm_rf22.RF22_REG_3B_TRANSMIT_HEADER2 _pyupm_rf22.RF22_REG_3C_TRANSMIT_HEADER1_swigconstant(_pyupm_rf22) RF22_REG_3C_TRANSMIT_HEADER1 = _pyupm_rf22.RF22_REG_3C_TRANSMIT_HEADER1 _pyupm_rf22.RF22_REG_3D_TRANSMIT_HEADER0_swigconstant(_pyupm_rf22) RF22_REG_3D_TRANSMIT_HEADER0 = _pyupm_rf22.RF22_REG_3D_TRANSMIT_HEADER0 _pyupm_rf22.RF22_REG_3E_PACKET_LENGTH_swigconstant(_pyupm_rf22) RF22_REG_3E_PACKET_LENGTH = _pyupm_rf22.RF22_REG_3E_PACKET_LENGTH _pyupm_rf22.RF22_REG_3F_CHECK_HEADER3_swigconstant(_pyupm_rf22) RF22_REG_3F_CHECK_HEADER3 = _pyupm_rf22.RF22_REG_3F_CHECK_HEADER3 _pyupm_rf22.RF22_REG_40_CHECK_HEADER2_swigconstant(_pyupm_rf22) RF22_REG_40_CHECK_HEADER2 = _pyupm_rf22.RF22_REG_40_CHECK_HEADER2 _pyupm_rf22.RF22_REG_41_CHECK_HEADER1_swigconstant(_pyupm_rf22) RF22_REG_41_CHECK_HEADER1 = _pyupm_rf22.RF22_REG_41_CHECK_HEADER1 _pyupm_rf22.RF22_REG_42_CHECK_HEADER0_swigconstant(_pyupm_rf22) RF22_REG_42_CHECK_HEADER0 = _pyupm_rf22.RF22_REG_42_CHECK_HEADER0 _pyupm_rf22.RF22_REG_43_HEADER_ENABLE3_swigconstant(_pyupm_rf22) RF22_REG_43_HEADER_ENABLE3 = _pyupm_rf22.RF22_REG_43_HEADER_ENABLE3 _pyupm_rf22.RF22_REG_44_HEADER_ENABLE2_swigconstant(_pyupm_rf22) RF22_REG_44_HEADER_ENABLE2 = _pyupm_rf22.RF22_REG_44_HEADER_ENABLE2 _pyupm_rf22.RF22_REG_45_HEADER_ENABLE1_swigconstant(_pyupm_rf22) RF22_REG_45_HEADER_ENABLE1 = _pyupm_rf22.RF22_REG_45_HEADER_ENABLE1 _pyupm_rf22.RF22_REG_46_HEADER_ENABLE0_swigconstant(_pyupm_rf22) RF22_REG_46_HEADER_ENABLE0 = _pyupm_rf22.RF22_REG_46_HEADER_ENABLE0 _pyupm_rf22.RF22_REG_47_RECEIVED_HEADER3_swigconstant(_pyupm_rf22) RF22_REG_47_RECEIVED_HEADER3 = _pyupm_rf22.RF22_REG_47_RECEIVED_HEADER3 _pyupm_rf22.RF22_REG_48_RECEIVED_HEADER2_swigconstant(_pyupm_rf22) RF22_REG_48_RECEIVED_HEADER2 = _pyupm_rf22.RF22_REG_48_RECEIVED_HEADER2 _pyupm_rf22.RF22_REG_49_RECEIVED_HEADER1_swigconstant(_pyupm_rf22) RF22_REG_49_RECEIVED_HEADER1 = _pyupm_rf22.RF22_REG_49_RECEIVED_HEADER1 _pyupm_rf22.RF22_REG_4A_RECEIVED_HEADER0_swigconstant(_pyupm_rf22) RF22_REG_4A_RECEIVED_HEADER0 = _pyupm_rf22.RF22_REG_4A_RECEIVED_HEADER0 _pyupm_rf22.RF22_REG_4B_RECEIVED_PACKET_LENGTH_swigconstant(_pyupm_rf22) RF22_REG_4B_RECEIVED_PACKET_LENGTH = _pyupm_rf22.RF22_REG_4B_RECEIVED_PACKET_LENGTH _pyupm_rf22.RF22_REG_50_ANALOG_TEST_BUS_SELECT_swigconstant(_pyupm_rf22) RF22_REG_50_ANALOG_TEST_BUS_SELECT = _pyupm_rf22.RF22_REG_50_ANALOG_TEST_BUS_SELECT _pyupm_rf22.RF22_REG_51_DIGITAL_TEST_BUS_SELECT_swigconstant(_pyupm_rf22) RF22_REG_51_DIGITAL_TEST_BUS_SELECT = _pyupm_rf22.RF22_REG_51_DIGITAL_TEST_BUS_SELECT _pyupm_rf22.RF22_REG_52_TX_RAMP_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_52_TX_RAMP_CONTROL = _pyupm_rf22.RF22_REG_52_TX_RAMP_CONTROL _pyupm_rf22.RF22_REG_53_PLL_TUNE_TIME_swigconstant(_pyupm_rf22) RF22_REG_53_PLL_TUNE_TIME = _pyupm_rf22.RF22_REG_53_PLL_TUNE_TIME _pyupm_rf22.RF22_REG_55_CALIBRATION_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_55_CALIBRATION_CONTROL = _pyupm_rf22.RF22_REG_55_CALIBRATION_CONTROL _pyupm_rf22.RF22_REG_56_MODEM_TEST_swigconstant(_pyupm_rf22) RF22_REG_56_MODEM_TEST = _pyupm_rf22.RF22_REG_56_MODEM_TEST _pyupm_rf22.RF22_REG_57_CHARGE_PUMP_TEST_swigconstant(_pyupm_rf22) RF22_REG_57_CHARGE_PUMP_TEST = _pyupm_rf22.RF22_REG_57_CHARGE_PUMP_TEST _pyupm_rf22.RF22_REG_58_CHARGE_PUMP_CURRENT_TRIMMING_swigconstant(_pyupm_rf22) RF22_REG_58_CHARGE_PUMP_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_58_CHARGE_PUMP_CURRENT_TRIMMING _pyupm_rf22.RF22_REG_59_DIVIDER_CURRENT_TRIMMING_swigconstant(_pyupm_rf22) RF22_REG_59_DIVIDER_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_59_DIVIDER_CURRENT_TRIMMING _pyupm_rf22.RF22_REG_5A_VCO_CURRENT_TRIMMING_swigconstant(_pyupm_rf22) RF22_REG_5A_VCO_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_5A_VCO_CURRENT_TRIMMING _pyupm_rf22.RF22_REG_5B_VCO_CALIBRATION_swigconstant(_pyupm_rf22) RF22_REG_5B_VCO_CALIBRATION = _pyupm_rf22.RF22_REG_5B_VCO_CALIBRATION _pyupm_rf22.RF22_REG_5C_SYNTHESIZER_TEST_swigconstant(_pyupm_rf22) RF22_REG_5C_SYNTHESIZER_TEST = _pyupm_rf22.RF22_REG_5C_SYNTHESIZER_TEST _pyupm_rf22.RF22_REG_5D_BLOCK_ENABLE_OVERRIDE1_swigconstant(_pyupm_rf22) RF22_REG_5D_BLOCK_ENABLE_OVERRIDE1 = _pyupm_rf22.RF22_REG_5D_BLOCK_ENABLE_OVERRIDE1 _pyupm_rf22.RF22_REG_5E_BLOCK_ENABLE_OVERRIDE2_swigconstant(_pyupm_rf22) RF22_REG_5E_BLOCK_ENABLE_OVERRIDE2 = _pyupm_rf22.RF22_REG_5E_BLOCK_ENABLE_OVERRIDE2 _pyupm_rf22.RF22_REG_5F_BLOCK_ENABLE_OVERRIDE3_swigconstant(_pyupm_rf22) RF22_REG_5F_BLOCK_ENABLE_OVERRIDE3 = _pyupm_rf22.RF22_REG_5F_BLOCK_ENABLE_OVERRIDE3 _pyupm_rf22.RF22_REG_60_CHANNEL_FILTER_COEFFICIENT_ADDRESS_swigconstant(_pyupm_rf22) RF22_REG_60_CHANNEL_FILTER_COEFFICIENT_ADDRESS = _pyupm_rf22.RF22_REG_60_CHANNEL_FILTER_COEFFICIENT_ADDRESS _pyupm_rf22.RF22_REG_61_CHANNEL_FILTER_COEFFICIENT_VALUE_swigconstant(_pyupm_rf22) RF22_REG_61_CHANNEL_FILTER_COEFFICIENT_VALUE = _pyupm_rf22.RF22_REG_61_CHANNEL_FILTER_COEFFICIENT_VALUE _pyupm_rf22.RF22_REG_62_CRYSTAL_OSCILLATOR_POR_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_62_CRYSTAL_OSCILLATOR_POR_CONTROL = _pyupm_rf22.RF22_REG_62_CRYSTAL_OSCILLATOR_POR_CONTROL _pyupm_rf22.RF22_REG_63_RC_OSCILLATOR_COARSE_CALIBRATION_swigconstant(_pyupm_rf22) RF22_REG_63_RC_OSCILLATOR_COARSE_CALIBRATION = _pyupm_rf22.RF22_REG_63_RC_OSCILLATOR_COARSE_CALIBRATION _pyupm_rf22.RF22_REG_64_RC_OSCILLATOR_FINE_CALIBRATION_swigconstant(_pyupm_rf22) RF22_REG_64_RC_OSCILLATOR_FINE_CALIBRATION = _pyupm_rf22.RF22_REG_64_RC_OSCILLATOR_FINE_CALIBRATION _pyupm_rf22.RF22_REG_65_LDO_CONTROL_OVERRIDE_swigconstant(_pyupm_rf22) RF22_REG_65_LDO_CONTROL_OVERRIDE = _pyupm_rf22.RF22_REG_65_LDO_CONTROL_OVERRIDE _pyupm_rf22.RF22_REG_66_LDO_LEVEL_SETTINGS_swigconstant(_pyupm_rf22) RF22_REG_66_LDO_LEVEL_SETTINGS = _pyupm_rf22.RF22_REG_66_LDO_LEVEL_SETTINGS _pyupm_rf22.RF22_REG_67_DELTA_SIGMA_ADC_TUNING1_swigconstant(_pyupm_rf22) RF22_REG_67_DELTA_SIGMA_ADC_TUNING1 = _pyupm_rf22.RF22_REG_67_DELTA_SIGMA_ADC_TUNING1 _pyupm_rf22.RF22_REG_68_DELTA_SIGMA_ADC_TUNING2_swigconstant(_pyupm_rf22) RF22_REG_68_DELTA_SIGMA_ADC_TUNING2 = _pyupm_rf22.RF22_REG_68_DELTA_SIGMA_ADC_TUNING2 _pyupm_rf22.RF22_REG_69_AGC_OVERRIDE1_swigconstant(_pyupm_rf22) RF22_REG_69_AGC_OVERRIDE1 = _pyupm_rf22.RF22_REG_69_AGC_OVERRIDE1 _pyupm_rf22.RF22_REG_6A_AGC_OVERRIDE2_swigconstant(_pyupm_rf22) RF22_REG_6A_AGC_OVERRIDE2 = _pyupm_rf22.RF22_REG_6A_AGC_OVERRIDE2 _pyupm_rf22.RF22_REG_6B_GFSK_FIR_FILTER_COEFFICIENT_ADDRESS_swigconstant(_pyupm_rf22) RF22_REG_6B_GFSK_FIR_FILTER_COEFFICIENT_ADDRESS = _pyupm_rf22.RF22_REG_6B_GFSK_FIR_FILTER_COEFFICIENT_ADDRESS _pyupm_rf22.RF22_REG_6C_GFSK_FIR_FILTER_COEFFICIENT_VALUE_swigconstant(_pyupm_rf22) RF22_REG_6C_GFSK_FIR_FILTER_COEFFICIENT_VALUE = _pyupm_rf22.RF22_REG_6C_GFSK_FIR_FILTER_COEFFICIENT_VALUE _pyupm_rf22.RF22_REG_6D_TX_POWER_swigconstant(_pyupm_rf22) RF22_REG_6D_TX_POWER = _pyupm_rf22.RF22_REG_6D_TX_POWER _pyupm_rf22.RF22_REG_6E_TX_DATA_RATE1_swigconstant(_pyupm_rf22) RF22_REG_6E_TX_DATA_RATE1 = _pyupm_rf22.RF22_REG_6E_TX_DATA_RATE1 _pyupm_rf22.RF22_REG_6F_TX_DATA_RATE0_swigconstant(_pyupm_rf22) RF22_REG_6F_TX_DATA_RATE0 = _pyupm_rf22.RF22_REG_6F_TX_DATA_RATE0 _pyupm_rf22.RF22_REG_70_MODULATION_CONTROL1_swigconstant(_pyupm_rf22) RF22_REG_70_MODULATION_CONTROL1 = _pyupm_rf22.RF22_REG_70_MODULATION_CONTROL1 _pyupm_rf22.RF22_REG_71_MODULATION_CONTROL2_swigconstant(_pyupm_rf22) RF22_REG_71_MODULATION_CONTROL2 = _pyupm_rf22.RF22_REG_71_MODULATION_CONTROL2 _pyupm_rf22.RF22_REG_72_FREQUENCY_DEVIATION_swigconstant(_pyupm_rf22) RF22_REG_72_FREQUENCY_DEVIATION = _pyupm_rf22.RF22_REG_72_FREQUENCY_DEVIATION _pyupm_rf22.RF22_REG_73_FREQUENCY_OFFSET1_swigconstant(_pyupm_rf22) RF22_REG_73_FREQUENCY_OFFSET1 = _pyupm_rf22.RF22_REG_73_FREQUENCY_OFFSET1 _pyupm_rf22.RF22_REG_74_FREQUENCY_OFFSET2_swigconstant(_pyupm_rf22) RF22_REG_74_FREQUENCY_OFFSET2 = _pyupm_rf22.RF22_REG_74_FREQUENCY_OFFSET2 _pyupm_rf22.RF22_REG_75_FREQUENCY_BAND_SELECT_swigconstant(_pyupm_rf22) RF22_REG_75_FREQUENCY_BAND_SELECT = _pyupm_rf22.RF22_REG_75_FREQUENCY_BAND_SELECT _pyupm_rf22.RF22_REG_76_NOMINAL_CARRIER_FREQUENCY1_swigconstant(_pyupm_rf22) RF22_REG_76_NOMINAL_CARRIER_FREQUENCY1 = _pyupm_rf22.RF22_REG_76_NOMINAL_CARRIER_FREQUENCY1 _pyupm_rf22.RF22_REG_77_NOMINAL_CARRIER_FREQUENCY0_swigconstant(_pyupm_rf22) RF22_REG_77_NOMINAL_CARRIER_FREQUENCY0 = _pyupm_rf22.RF22_REG_77_NOMINAL_CARRIER_FREQUENCY0 _pyupm_rf22.RF22_REG_79_FREQUENCY_HOPPING_CHANNEL_SELECT_swigconstant(_pyupm_rf22) RF22_REG_79_FREQUENCY_HOPPING_CHANNEL_SELECT = _pyupm_rf22.RF22_REG_79_FREQUENCY_HOPPING_CHANNEL_SELECT _pyupm_rf22.RF22_REG_7A_FREQUENCY_HOPPING_STEP_SIZE_swigconstant(_pyupm_rf22) RF22_REG_7A_FREQUENCY_HOPPING_STEP_SIZE = _pyupm_rf22.RF22_REG_7A_FREQUENCY_HOPPING_STEP_SIZE _pyupm_rf22.RF22_REG_7C_TX_FIFO_CONTROL1_swigconstant(_pyupm_rf22) RF22_REG_7C_TX_FIFO_CONTROL1 = _pyupm_rf22.RF22_REG_7C_TX_FIFO_CONTROL1 _pyupm_rf22.RF22_REG_7D_TX_FIFO_CONTROL2_swigconstant(_pyupm_rf22) RF22_REG_7D_TX_FIFO_CONTROL2 = _pyupm_rf22.RF22_REG_7D_TX_FIFO_CONTROL2 _pyupm_rf22.RF22_REG_7E_RX_FIFO_CONTROL_swigconstant(_pyupm_rf22) RF22_REG_7E_RX_FIFO_CONTROL = _pyupm_rf22.RF22_REG_7E_RX_FIFO_CONTROL _pyupm_rf22.RF22_REG_7F_FIFO_ACCESS_swigconstant(_pyupm_rf22) RF22_REG_7F_FIFO_ACCESS = _pyupm_rf22.RF22_REG_7F_FIFO_ACCESS _pyupm_rf22.RF22_DEVICE_TYPE_RX_TRX_swigconstant(_pyupm_rf22) RF22_DEVICE_TYPE_RX_TRX = _pyupm_rf22.RF22_DEVICE_TYPE_RX_TRX _pyupm_rf22.RF22_DEVICE_TYPE_TX_swigconstant(_pyupm_rf22) RF22_DEVICE_TYPE_TX = _pyupm_rf22.RF22_DEVICE_TYPE_TX _pyupm_rf22.RF22_FFOVL_swigconstant(_pyupm_rf22) RF22_FFOVL = _pyupm_rf22.RF22_FFOVL _pyupm_rf22.RF22_FFUNFL_swigconstant(_pyupm_rf22) RF22_FFUNFL = _pyupm_rf22.RF22_FFUNFL _pyupm_rf22.RF22_RXFFEM_swigconstant(_pyupm_rf22) RF22_RXFFEM = _pyupm_rf22.RF22_RXFFEM _pyupm_rf22.RF22_HEADERR_swigconstant(_pyupm_rf22) RF22_HEADERR = _pyupm_rf22.RF22_HEADERR _pyupm_rf22.RF22_FREQERR_swigconstant(_pyupm_rf22) RF22_FREQERR = _pyupm_rf22.RF22_FREQERR _pyupm_rf22.RF22_LOCKDET_swigconstant(_pyupm_rf22) RF22_LOCKDET = _pyupm_rf22.RF22_LOCKDET _pyupm_rf22.RF22_CPS_swigconstant(_pyupm_rf22) RF22_CPS = _pyupm_rf22.RF22_CPS _pyupm_rf22.RF22_CPS_IDLE_swigconstant(_pyupm_rf22) RF22_CPS_IDLE = _pyupm_rf22.RF22_CPS_IDLE _pyupm_rf22.RF22_CPS_RX_swigconstant(_pyupm_rf22) RF22_CPS_RX = _pyupm_rf22.RF22_CPS_RX _pyupm_rf22.RF22_CPS_TX_swigconstant(_pyupm_rf22) RF22_CPS_TX = _pyupm_rf22.RF22_CPS_TX _pyupm_rf22.RF22_IFFERROR_swigconstant(_pyupm_rf22) RF22_IFFERROR = _pyupm_rf22.RF22_IFFERROR _pyupm_rf22.RF22_ITXFFAFULL_swigconstant(_pyupm_rf22) RF22_ITXFFAFULL = _pyupm_rf22.RF22_ITXFFAFULL _pyupm_rf22.RF22_ITXFFAEM_swigconstant(_pyupm_rf22) RF22_ITXFFAEM = _pyupm_rf22.RF22_ITXFFAEM _pyupm_rf22.RF22_IRXFFAFULL_swigconstant(_pyupm_rf22) RF22_IRXFFAFULL = _pyupm_rf22.RF22_IRXFFAFULL _pyupm_rf22.RF22_IEXT_swigconstant(_pyupm_rf22) RF22_IEXT = _pyupm_rf22.RF22_IEXT _pyupm_rf22.RF22_IPKSENT_swigconstant(_pyupm_rf22) RF22_IPKSENT = _pyupm_rf22.RF22_IPKSENT _pyupm_rf22.RF22_IPKVALID_swigconstant(_pyupm_rf22) RF22_IPKVALID = _pyupm_rf22.RF22_IPKVALID _pyupm_rf22.RF22_ICRCERROR_swigconstant(_pyupm_rf22) RF22_ICRCERROR = _pyupm_rf22.RF22_ICRCERROR _pyupm_rf22.RF22_ISWDET_swigconstant(_pyupm_rf22) RF22_ISWDET = _pyupm_rf22.RF22_ISWDET _pyupm_rf22.RF22_IPREAVAL_swigconstant(_pyupm_rf22) RF22_IPREAVAL = _pyupm_rf22.RF22_IPREAVAL _pyupm_rf22.RF22_IPREAINVAL_swigconstant(_pyupm_rf22) RF22_IPREAINVAL = _pyupm_rf22.RF22_IPREAINVAL _pyupm_rf22.RF22_IRSSI_swigconstant(_pyupm_rf22) RF22_IRSSI = _pyupm_rf22.RF22_IRSSI _pyupm_rf22.RF22_IWUT_swigconstant(_pyupm_rf22) RF22_IWUT = _pyupm_rf22.RF22_IWUT _pyupm_rf22.RF22_ILBD_swigconstant(_pyupm_rf22) RF22_ILBD = _pyupm_rf22.RF22_ILBD _pyupm_rf22.RF22_ICHIPRDY_swigconstant(_pyupm_rf22) RF22_ICHIPRDY = _pyupm_rf22.RF22_ICHIPRDY _pyupm_rf22.RF22_IPOR_swigconstant(_pyupm_rf22) RF22_IPOR = _pyupm_rf22.RF22_IPOR _pyupm_rf22.RF22_ENFFERR_swigconstant(_pyupm_rf22) RF22_ENFFERR = _pyupm_rf22.RF22_ENFFERR _pyupm_rf22.RF22_ENTXFFAFULL_swigconstant(_pyupm_rf22) RF22_ENTXFFAFULL = _pyupm_rf22.RF22_ENTXFFAFULL _pyupm_rf22.RF22_ENTXFFAEM_swigconstant(_pyupm_rf22) RF22_ENTXFFAEM = _pyupm_rf22.RF22_ENTXFFAEM _pyupm_rf22.RF22_ENRXFFAFULL_swigconstant(_pyupm_rf22) RF22_ENRXFFAFULL = _pyupm_rf22.RF22_ENRXFFAFULL _pyupm_rf22.RF22_ENEXT_swigconstant(_pyupm_rf22) RF22_ENEXT = _pyupm_rf22.RF22_ENEXT _pyupm_rf22.RF22_ENPKSENT_swigconstant(_pyupm_rf22) RF22_ENPKSENT = _pyupm_rf22.RF22_ENPKSENT _pyupm_rf22.RF22_ENPKVALID_swigconstant(_pyupm_rf22) RF22_ENPKVALID = _pyupm_rf22.RF22_ENPKVALID _pyupm_rf22.RF22_ENCRCERROR_swigconstant(_pyupm_rf22) RF22_ENCRCERROR = _pyupm_rf22.RF22_ENCRCERROR _pyupm_rf22.RF22_ENSWDET_swigconstant(_pyupm_rf22) RF22_ENSWDET = _pyupm_rf22.RF22_ENSWDET _pyupm_rf22.RF22_ENPREAVAL_swigconstant(_pyupm_rf22) RF22_ENPREAVAL = _pyupm_rf22.RF22_ENPREAVAL _pyupm_rf22.RF22_ENPREAINVAL_swigconstant(_pyupm_rf22) RF22_ENPREAINVAL = _pyupm_rf22.RF22_ENPREAINVAL _pyupm_rf22.RF22_ENRSSI_swigconstant(_pyupm_rf22) RF22_ENRSSI = _pyupm_rf22.RF22_ENRSSI _pyupm_rf22.RF22_ENWUT_swigconstant(_pyupm_rf22) RF22_ENWUT = _pyupm_rf22.RF22_ENWUT _pyupm_rf22.RF22_ENLBDI_swigconstant(_pyupm_rf22) RF22_ENLBDI = _pyupm_rf22.RF22_ENLBDI _pyupm_rf22.RF22_ENCHIPRDY_swigconstant(_pyupm_rf22) RF22_ENCHIPRDY = _pyupm_rf22.RF22_ENCHIPRDY _pyupm_rf22.RF22_ENPOR_swigconstant(_pyupm_rf22) RF22_ENPOR = _pyupm_rf22.RF22_ENPOR _pyupm_rf22.RF22_SWRES_swigconstant(_pyupm_rf22) RF22_SWRES = _pyupm_rf22.RF22_SWRES _pyupm_rf22.RF22_ENLBD_swigconstant(_pyupm_rf22) RF22_ENLBD = _pyupm_rf22.RF22_ENLBD _pyupm_rf22.RF22_ENWT_swigconstant(_pyupm_rf22) RF22_ENWT = _pyupm_rf22.RF22_ENWT _pyupm_rf22.RF22_X32KSEL_swigconstant(_pyupm_rf22) RF22_X32KSEL = _pyupm_rf22.RF22_X32KSEL _pyupm_rf22.RF22_TXON_swigconstant(_pyupm_rf22) RF22_TXON = _pyupm_rf22.RF22_TXON _pyupm_rf22.RF22_RXON_swigconstant(_pyupm_rf22) RF22_RXON = _pyupm_rf22.RF22_RXON _pyupm_rf22.RF22_PLLON_swigconstant(_pyupm_rf22) RF22_PLLON = _pyupm_rf22.RF22_PLLON _pyupm_rf22.RF22_XTON_swigconstant(_pyupm_rf22) RF22_XTON = _pyupm_rf22.RF22_XTON _pyupm_rf22.RF22_ANTDIV_swigconstant(_pyupm_rf22) RF22_ANTDIV = _pyupm_rf22.RF22_ANTDIV _pyupm_rf22.RF22_RXMPK_swigconstant(_pyupm_rf22) RF22_RXMPK = _pyupm_rf22.RF22_RXMPK _pyupm_rf22.RF22_AUTOTX_swigconstant(_pyupm_rf22) RF22_AUTOTX = _pyupm_rf22.RF22_AUTOTX _pyupm_rf22.RF22_ENLDM_swigconstant(_pyupm_rf22) RF22_ENLDM = _pyupm_rf22.RF22_ENLDM _pyupm_rf22.RF22_FFCLRRX_swigconstant(_pyupm_rf22) RF22_FFCLRRX = _pyupm_rf22.RF22_FFCLRRX _pyupm_rf22.RF22_FFCLRTX_swigconstant(_pyupm_rf22) RF22_FFCLRTX = _pyupm_rf22.RF22_FFCLRTX _pyupm_rf22.RF22_ADCSTART_swigconstant(_pyupm_rf22) RF22_ADCSTART = _pyupm_rf22.RF22_ADCSTART _pyupm_rf22.RF22_ADCDONE_swigconstant(_pyupm_rf22) RF22_ADCDONE = _pyupm_rf22.RF22_ADCDONE _pyupm_rf22.RF22_ADCSEL_swigconstant(_pyupm_rf22) RF22_ADCSEL = _pyupm_rf22.RF22_ADCSEL _pyupm_rf22.RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR_swigconstant(_pyupm_rf22) RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR = _pyupm_rf22.RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR _pyupm_rf22.RF22_ADCSEL_GPIO0_SINGLE_ENDED_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO0_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO0_SINGLE_ENDED _pyupm_rf22.RF22_ADCSEL_GPIO1_SINGLE_ENDED_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO1_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO1_SINGLE_ENDED _pyupm_rf22.RF22_ADCSEL_GPIO2_SINGLE_ENDED_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO2_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO2_SINGLE_ENDED _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO1_DIFFERENTIAL_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO0_GPIO1_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO1_DIFFERENTIAL _pyupm_rf22.RF22_ADCSEL_GPIO1_GPIO2_DIFFERENTIAL_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO1_GPIO2_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO1_GPIO2_DIFFERENTIAL _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO2_DIFFERENTIAL_swigconstant(_pyupm_rf22) RF22_ADCSEL_GPIO0_GPIO2_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO2_DIFFERENTIAL _pyupm_rf22.RF22_ADCSEL_GND_swigconstant(_pyupm_rf22) RF22_ADCSEL_GND = _pyupm_rf22.RF22_ADCSEL_GND _pyupm_rf22.RF22_ADCREF_swigconstant(_pyupm_rf22) RF22_ADCREF = _pyupm_rf22.RF22_ADCREF _pyupm_rf22.RF22_ADCREF_BANDGAP_VOLTAGE_swigconstant(_pyupm_rf22) RF22_ADCREF_BANDGAP_VOLTAGE = _pyupm_rf22.RF22_ADCREF_BANDGAP_VOLTAGE _pyupm_rf22.RF22_ADCREF_VDD_ON_3_swigconstant(_pyupm_rf22) RF22_ADCREF_VDD_ON_3 = _pyupm_rf22.RF22_ADCREF_VDD_ON_3 _pyupm_rf22.RF22_ADCREF_VDD_ON_2_swigconstant(_pyupm_rf22) RF22_ADCREF_VDD_ON_2 = _pyupm_rf22.RF22_ADCREF_VDD_ON_2 _pyupm_rf22.RF22_ADCGAIN_swigconstant(_pyupm_rf22) RF22_ADCGAIN = _pyupm_rf22.RF22_ADCGAIN _pyupm_rf22.RF22_ADCOFFS_swigconstant(_pyupm_rf22) RF22_ADCOFFS = _pyupm_rf22.RF22_ADCOFFS _pyupm_rf22.RF22_TSRANGE_swigconstant(_pyupm_rf22) RF22_TSRANGE = _pyupm_rf22.RF22_TSRANGE _pyupm_rf22.RF22_TSRANGE_M64_64C_swigconstant(_pyupm_rf22) RF22_TSRANGE_M64_64C = _pyupm_rf22.RF22_TSRANGE_M64_64C _pyupm_rf22.RF22_TSRANGE_M64_192C_swigconstant(_pyupm_rf22) RF22_TSRANGE_M64_192C = _pyupm_rf22.RF22_TSRANGE_M64_192C _pyupm_rf22.RF22_TSRANGE_0_128C_swigconstant(_pyupm_rf22) RF22_TSRANGE_0_128C = _pyupm_rf22.RF22_TSRANGE_0_128C _pyupm_rf22.RF22_TSRANGE_M40_216F_swigconstant(_pyupm_rf22) RF22_TSRANGE_M40_216F = _pyupm_rf22.RF22_TSRANGE_M40_216F _pyupm_rf22.RF22_ENTSOFFS_swigconstant(_pyupm_rf22) RF22_ENTSOFFS = _pyupm_rf22.RF22_ENTSOFFS _pyupm_rf22.RF22_ENTSTRIM_swigconstant(_pyupm_rf22) RF22_ENTSTRIM = _pyupm_rf22.RF22_ENTSTRIM _pyupm_rf22.RF22_TSTRIM_swigconstant(_pyupm_rf22) RF22_TSTRIM = _pyupm_rf22.RF22_TSTRIM _pyupm_rf22.RF22_WTR_swigconstant(_pyupm_rf22) RF22_WTR = _pyupm_rf22.RF22_WTR _pyupm_rf22.RF22_WTD_swigconstant(_pyupm_rf22) RF22_WTD = _pyupm_rf22.RF22_WTD _pyupm_rf22.RF22_AFBCD_swigconstant(_pyupm_rf22) RF22_AFBCD = _pyupm_rf22.RF22_AFBCD _pyupm_rf22.RF22_ENAFC_swigconstant(_pyupm_rf22) RF22_ENAFC = _pyupm_rf22.RF22_ENAFC _pyupm_rf22.RF22_AFCGEARH_swigconstant(_pyupm_rf22) RF22_AFCGEARH = _pyupm_rf22.RF22_AFCGEARH _pyupm_rf22.RF22_AFCGEARL_swigconstant(_pyupm_rf22) RF22_AFCGEARL = _pyupm_rf22.RF22_AFCGEARL _pyupm_rf22.RF22_SWAIT_TIMER_swigconstant(_pyupm_rf22) RF22_SWAIT_TIMER = _pyupm_rf22.RF22_SWAIT_TIMER _pyupm_rf22.RF22_SHWAIT_swigconstant(_pyupm_rf22) RF22_SHWAIT = _pyupm_rf22.RF22_SHWAIT _pyupm_rf22.RF22_ANWAIT_swigconstant(_pyupm_rf22) RF22_ANWAIT = _pyupm_rf22.RF22_ANWAIT _pyupm_rf22.RF22_ENPACRX_swigconstant(_pyupm_rf22) RF22_ENPACRX = _pyupm_rf22.RF22_ENPACRX _pyupm_rf22.RF22_MSBFRST_swigconstant(_pyupm_rf22) RF22_MSBFRST = _pyupm_rf22.RF22_MSBFRST _pyupm_rf22.RF22_LSBFRST_swigconstant(_pyupm_rf22) RF22_LSBFRST = _pyupm_rf22.RF22_LSBFRST _pyupm_rf22.RF22_CRCHDRS_swigconstant(_pyupm_rf22) RF22_CRCHDRS = _pyupm_rf22.RF22_CRCHDRS _pyupm_rf22.RF22_CRCDONLY_swigconstant(_pyupm_rf22) RF22_CRCDONLY = _pyupm_rf22.RF22_CRCDONLY _pyupm_rf22.RF22_ENPACTX_swigconstant(_pyupm_rf22) RF22_ENPACTX = _pyupm_rf22.RF22_ENPACTX _pyupm_rf22.RF22_ENCRC_swigconstant(_pyupm_rf22) RF22_ENCRC = _pyupm_rf22.RF22_ENCRC _pyupm_rf22.RF22_CRC_swigconstant(_pyupm_rf22) RF22_CRC = _pyupm_rf22.RF22_CRC _pyupm_rf22.RF22_CRC_CCITT_swigconstant(_pyupm_rf22) RF22_CRC_CCITT = _pyupm_rf22.RF22_CRC_CCITT _pyupm_rf22.RF22_CRC_CRC_16_IBM_swigconstant(_pyupm_rf22) RF22_CRC_CRC_16_IBM = _pyupm_rf22.RF22_CRC_CRC_16_IBM _pyupm_rf22.RF22_CRC_IEC_16_swigconstant(_pyupm_rf22) RF22_CRC_IEC_16 = _pyupm_rf22.RF22_CRC_IEC_16 _pyupm_rf22.RF22_CRC_BIACHEVA_swigconstant(_pyupm_rf22) RF22_CRC_BIACHEVA = _pyupm_rf22.RF22_CRC_BIACHEVA _pyupm_rf22.RF22_BCEN_swigconstant(_pyupm_rf22) RF22_BCEN = _pyupm_rf22.RF22_BCEN _pyupm_rf22.RF22_BCEN_NONE_swigconstant(_pyupm_rf22) RF22_BCEN_NONE = _pyupm_rf22.RF22_BCEN_NONE _pyupm_rf22.RF22_BCEN_HEADER0_swigconstant(_pyupm_rf22) RF22_BCEN_HEADER0 = _pyupm_rf22.RF22_BCEN_HEADER0 _pyupm_rf22.RF22_BCEN_HEADER1_swigconstant(_pyupm_rf22) RF22_BCEN_HEADER1 = _pyupm_rf22.RF22_BCEN_HEADER1 _pyupm_rf22.RF22_BCEN_HEADER2_swigconstant(_pyupm_rf22) RF22_BCEN_HEADER2 = _pyupm_rf22.RF22_BCEN_HEADER2 _pyupm_rf22.RF22_BCEN_HEADER3_swigconstant(_pyupm_rf22) RF22_BCEN_HEADER3 = _pyupm_rf22.RF22_BCEN_HEADER3 _pyupm_rf22.RF22_HDCH_swigconstant(_pyupm_rf22) RF22_HDCH = _pyupm_rf22.RF22_HDCH _pyupm_rf22.RF22_HDCH_NONE_swigconstant(_pyupm_rf22) RF22_HDCH_NONE = _pyupm_rf22.RF22_HDCH_NONE _pyupm_rf22.RF22_HDCH_HEADER0_swigconstant(_pyupm_rf22) RF22_HDCH_HEADER0 = _pyupm_rf22.RF22_HDCH_HEADER0 _pyupm_rf22.RF22_HDCH_HEADER1_swigconstant(_pyupm_rf22) RF22_HDCH_HEADER1 = _pyupm_rf22.RF22_HDCH_HEADER1 _pyupm_rf22.RF22_HDCH_HEADER2_swigconstant(_pyupm_rf22) RF22_HDCH_HEADER2 = _pyupm_rf22.RF22_HDCH_HEADER2 _pyupm_rf22.RF22_HDCH_HEADER3_swigconstant(_pyupm_rf22) RF22_HDCH_HEADER3 = _pyupm_rf22.RF22_HDCH_HEADER3 _pyupm_rf22.RF22_HDLEN_swigconstant(_pyupm_rf22) RF22_HDLEN = _pyupm_rf22.RF22_HDLEN _pyupm_rf22.RF22_HDLEN_0_swigconstant(_pyupm_rf22) RF22_HDLEN_0 = _pyupm_rf22.RF22_HDLEN_0 _pyupm_rf22.RF22_HDLEN_1_swigconstant(_pyupm_rf22) RF22_HDLEN_1 = _pyupm_rf22.RF22_HDLEN_1 _pyupm_rf22.RF22_HDLEN_2_swigconstant(_pyupm_rf22) RF22_HDLEN_2 = _pyupm_rf22.RF22_HDLEN_2 _pyupm_rf22.RF22_HDLEN_3_swigconstant(_pyupm_rf22) RF22_HDLEN_3 = _pyupm_rf22.RF22_HDLEN_3 _pyupm_rf22.RF22_HDLEN_4_swigconstant(_pyupm_rf22) RF22_HDLEN_4 = _pyupm_rf22.RF22_HDLEN_4 _pyupm_rf22.RF22_VARPKLEN_swigconstant(_pyupm_rf22) RF22_VARPKLEN = _pyupm_rf22.RF22_VARPKLEN _pyupm_rf22.RF22_FIXPKLEN_swigconstant(_pyupm_rf22) RF22_FIXPKLEN = _pyupm_rf22.RF22_FIXPKLEN _pyupm_rf22.RF22_SYNCLEN_swigconstant(_pyupm_rf22) RF22_SYNCLEN = _pyupm_rf22.RF22_SYNCLEN _pyupm_rf22.RF22_SYNCLEN_1_swigconstant(_pyupm_rf22) RF22_SYNCLEN_1 = _pyupm_rf22.RF22_SYNCLEN_1 _pyupm_rf22.RF22_SYNCLEN_2_swigconstant(_pyupm_rf22) RF22_SYNCLEN_2 = _pyupm_rf22.RF22_SYNCLEN_2 _pyupm_rf22.RF22_SYNCLEN_3_swigconstant(_pyupm_rf22) RF22_SYNCLEN_3 = _pyupm_rf22.RF22_SYNCLEN_3 _pyupm_rf22.RF22_SYNCLEN_4_swigconstant(_pyupm_rf22) RF22_SYNCLEN_4 = _pyupm_rf22.RF22_SYNCLEN_4 _pyupm_rf22.RF22_PREALEN8_swigconstant(_pyupm_rf22) RF22_PREALEN8 = _pyupm_rf22.RF22_PREALEN8 _pyupm_rf22.RF22_TXPOW_swigconstant(_pyupm_rf22) RF22_TXPOW = _pyupm_rf22.RF22_TXPOW _pyupm_rf22.RF22_TXPOW_4X31_swigconstant(_pyupm_rf22) RF22_TXPOW_4X31 = _pyupm_rf22.RF22_TXPOW_4X31 _pyupm_rf22.RF22_TXPOW_1DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_1DBM = _pyupm_rf22.RF22_TXPOW_1DBM _pyupm_rf22.RF22_TXPOW_2DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_2DBM = _pyupm_rf22.RF22_TXPOW_2DBM _pyupm_rf22.RF22_TXPOW_5DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_5DBM = _pyupm_rf22.RF22_TXPOW_5DBM _pyupm_rf22.RF22_TXPOW_8DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_8DBM = _pyupm_rf22.RF22_TXPOW_8DBM _pyupm_rf22.RF22_TXPOW_11DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_11DBM = _pyupm_rf22.RF22_TXPOW_11DBM _pyupm_rf22.RF22_TXPOW_14DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_14DBM = _pyupm_rf22.RF22_TXPOW_14DBM _pyupm_rf22.RF22_TXPOW_17DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_17DBM = _pyupm_rf22.RF22_TXPOW_17DBM _pyupm_rf22.RF22_TXPOW_20DBM_swigconstant(_pyupm_rf22) RF22_TXPOW_20DBM = _pyupm_rf22.RF22_TXPOW_20DBM _pyupm_rf22.RF22_TXPOW_LNA_SW_swigconstant(_pyupm_rf22) RF22_TXPOW_LNA_SW = _pyupm_rf22.RF22_TXPOW_LNA_SW _pyupm_rf22.RF22_TRCLK_swigconstant(_pyupm_rf22) RF22_TRCLK = _pyupm_rf22.RF22_TRCLK _pyupm_rf22.RF22_TRCLK_NONE_swigconstant(_pyupm_rf22) RF22_TRCLK_NONE = _pyupm_rf22.RF22_TRCLK_NONE _pyupm_rf22.RF22_TRCLK_GPIO_swigconstant(_pyupm_rf22) RF22_TRCLK_GPIO = _pyupm_rf22.RF22_TRCLK_GPIO _pyupm_rf22.RF22_TRCLK_SDO_swigconstant(_pyupm_rf22) RF22_TRCLK_SDO = _pyupm_rf22.RF22_TRCLK_SDO _pyupm_rf22.RF22_TRCLK_NIRQ_swigconstant(_pyupm_rf22) RF22_TRCLK_NIRQ = _pyupm_rf22.RF22_TRCLK_NIRQ _pyupm_rf22.RF22_DTMOD_swigconstant(_pyupm_rf22) RF22_DTMOD = _pyupm_rf22.RF22_DTMOD _pyupm_rf22.RF22_DTMOD_DIRECT_GPIO_swigconstant(_pyupm_rf22) RF22_DTMOD_DIRECT_GPIO = _pyupm_rf22.RF22_DTMOD_DIRECT_GPIO _pyupm_rf22.RF22_DTMOD_DIRECT_SDI_swigconstant(_pyupm_rf22) RF22_DTMOD_DIRECT_SDI = _pyupm_rf22.RF22_DTMOD_DIRECT_SDI _pyupm_rf22.RF22_DTMOD_FIFO_swigconstant(_pyupm_rf22) RF22_DTMOD_FIFO = _pyupm_rf22.RF22_DTMOD_FIFO _pyupm_rf22.RF22_DTMOD_PN9_swigconstant(_pyupm_rf22) RF22_DTMOD_PN9 = _pyupm_rf22.RF22_DTMOD_PN9 _pyupm_rf22.RF22_ENINV_swigconstant(_pyupm_rf22) RF22_ENINV = _pyupm_rf22.RF22_ENINV _pyupm_rf22.RF22_FD8_swigconstant(_pyupm_rf22) RF22_FD8 = _pyupm_rf22.RF22_FD8 _pyupm_rf22.RF22_MODTYP_swigconstant(_pyupm_rf22) RF22_MODTYP = _pyupm_rf22.RF22_MODTYP _pyupm_rf22.RF22_MODTYP_UNMODULATED_swigconstant(_pyupm_rf22) RF22_MODTYP_UNMODULATED = _pyupm_rf22.RF22_MODTYP_UNMODULATED _pyupm_rf22.RF22_MODTYP_OOK_swigconstant(_pyupm_rf22) RF22_MODTYP_OOK = _pyupm_rf22.RF22_MODTYP_OOK _pyupm_rf22.RF22_MODTYP_FSK_swigconstant(_pyupm_rf22) RF22_MODTYP_FSK = _pyupm_rf22.RF22_MODTYP_FSK _pyupm_rf22.RF22_MODTYP_GFSK_swigconstant(_pyupm_rf22) RF22_MODTYP_GFSK = _pyupm_rf22.RF22_MODTYP_GFSK _pyupm_rf22.RF22_SBSEL_swigconstant(_pyupm_rf22) RF22_SBSEL = _pyupm_rf22.RF22_SBSEL _pyupm_rf22.RF22_HBSEL_swigconstant(_pyupm_rf22) RF22_HBSEL = _pyupm_rf22.RF22_HBSEL _pyupm_rf22.RF22_FB_swigconstant(_pyupm_rf22) RF22_FB = _pyupm_rf22.RF22_FB
[docs]class RF22(_object): """ API for the RF22 Transceiver Module. ID: rf22 Name: ISM Band Radio Transceiver Other Names: RFM22B Category: wifi Manufacturer: sparkfun Link:https://www.sparkfun.com/products/12030 Connection: spi This base class provides basic functions for sending and receiving unaddressable, unreliable datagrams of arbitrary length to 255 octets per packet. Subclasses may use this class to implement reliable, addressed datagrams and streams, mesh routers, repeaters, translators etc. On transmission, the TO and FROM addresses default to 0x00, unless changed by a subclass. On reception the TO addressed is checked against the node address (defaults to 0x00) or the broadcast address (which is 0xff). The ID and FLAGS are set to 0, and not checked by this class. This permits use of the this base RF22 class as an unaddressable, unreliable datagram service. Subclasses are expected to change this behavior to add node address, ids, retransmission etc. Naturally, for any 2 radios to communicate that must be configured to use the same frequency and modulation scheme. RF22 Sensor image provided by SparkFun* underCC BY-NC-SA-3.0. C++ includes: rf22.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, RF22, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, RF22, name) __repr__ = _swig_repr UnmodulatedCarrier = _pyupm_rf22.RF22_UnmodulatedCarrier FSK_PN9_Rb2Fd5 = _pyupm_rf22.RF22_FSK_PN9_Rb2Fd5 FSK_Rb2Fd5 = _pyupm_rf22.RF22_FSK_Rb2Fd5 FSK_Rb2_4Fd36 = _pyupm_rf22.RF22_FSK_Rb2_4Fd36 FSK_Rb4_8Fd45 = _pyupm_rf22.RF22_FSK_Rb4_8Fd45 FSK_Rb9_6Fd45 = _pyupm_rf22.RF22_FSK_Rb9_6Fd45 FSK_Rb19_2Fd9_6 = _pyupm_rf22.RF22_FSK_Rb19_2Fd9_6 FSK_Rb38_4Fd19_6 = _pyupm_rf22.RF22_FSK_Rb38_4Fd19_6 FSK_Rb57_6Fd28_8 = _pyupm_rf22.RF22_FSK_Rb57_6Fd28_8 FSK_Rb125Fd125 = _pyupm_rf22.RF22_FSK_Rb125Fd125 GFSK_Rb2Fd5 = _pyupm_rf22.RF22_GFSK_Rb2Fd5 GFSK_Rb2_4Fd36 = _pyupm_rf22.RF22_GFSK_Rb2_4Fd36 GFSK_Rb4_8Fd45 = _pyupm_rf22.RF22_GFSK_Rb4_8Fd45 GFSK_Rb9_6Fd45 = _pyupm_rf22.RF22_GFSK_Rb9_6Fd45 GFSK_Rb19_2Fd9_6 = _pyupm_rf22.RF22_GFSK_Rb19_2Fd9_6 GFSK_Rb38_4Fd19_6 = _pyupm_rf22.RF22_GFSK_Rb38_4Fd19_6 GFSK_Rb57_6Fd28_8 = _pyupm_rf22.RF22_GFSK_Rb57_6Fd28_8 GFSK_Rb125Fd125 = _pyupm_rf22.RF22_GFSK_Rb125Fd125 OOK_Rb1_2Bw75 = _pyupm_rf22.RF22_OOK_Rb1_2Bw75 OOK_Rb2_4Bw335 = _pyupm_rf22.RF22_OOK_Rb2_4Bw335 OOK_Rb4_8Bw335 = _pyupm_rf22.RF22_OOK_Rb4_8Bw335 OOK_Rb9_6Bw335 = _pyupm_rf22.RF22_OOK_Rb9_6Bw335 OOK_Rb19_2Bw335 = _pyupm_rf22.RF22_OOK_Rb19_2Bw335 OOK_Rb38_4Bw335 = _pyupm_rf22.RF22_OOK_Rb38_4Bw335 OOK_Rb40Bw335 = _pyupm_rf22.RF22_OOK_Rb40Bw335 def __init__(self, spiBus=0, slaveSelectPin=10, interruptPin=2): """ RF22(int spiBus=0, int slaveSelectPin=10, int interruptPin=2) Constructor. You can have multiple instances, but each instance must have its own interrupt and slave select pin. After constructing, you must call init() to initialize the interface and the radio module Parameters: ----------- spiBus: Pointer to the SPI interface object to use. Default 0 or the standard Arduino hardware SPI interface slaveSelectPin: the Arduino pin number of the output to use to select the RF22 before accessing it. Default is 10 or the normal SS pin for Arduino interruptPin: The interrupt pin number to use. Default is 2 """ this = _pyupm_rf22.new_RF22(spiBus, slaveSelectPin, interruptPin) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_rf22.delete_RF22 __del__ = lambda self: None
[docs] def init(self): """ uint8_t init() Initializes this instance and the radio module connected to it. The following steps are taken: Software reset the RF22 module Checks the connected RF22 module is either a RF22_DEVICE_TYPE_RX_TRX or a RF22_DEVICE_TYPE_TX Configures the RF22 module Sets the frequency to 434.0 MHz Sets the modem data rate to FSK_Rb2_4Fd36 true if everything was successful """ return _pyupm_rf22.RF22_init(self)
[docs] def reset(self): """ void reset() Issues a software reset to the RF22 module. Blocks for 1ms to ensure the reset is complete. """ return _pyupm_rf22.RF22_reset(self)
[docs] def spiRead(self, reg): """ uint8_t spiRead(uint8_t reg) Reads a single register from the RF22 Parameters: ----------- reg: Register number, one of RF22_REG_* The value of the register """ return _pyupm_rf22.RF22_spiRead(self, reg)
[docs] def spiWrite(self, reg, val): """ void spiWrite(uint8_t reg, uint8_t val) Writes a single byte to the RF22 Parameters: ----------- reg: Register number, one of RF22_REG_* val: The value to write """ return _pyupm_rf22.RF22_spiWrite(self, reg, val)
[docs] def spiBurstRead(self, reg, dest, len): """ void spiBurstRead(uint8_t reg, uint8_t *dest, uint8_t len) Reads a number of consecutive registers from the RF22 using burst read mode Parameters: ----------- reg: Register number of the first register, one of RF22_REG_* dest: Array to write the register values to. Must be at least len bytes len: Number of bytes to read """ return _pyupm_rf22.RF22_spiBurstRead(self, reg, dest, len)
[docs] def spiBurstWrite(self, reg, src, len): """ void spiBurstWrite(uint8_t reg, const uint8_t *src, uint8_t len) Write a number of consecutive registers using burst write mode Parameters: ----------- reg: Register number of the first register, one of RF22_REG_* src: Array of new register values to write. Must be at least len bytes len: Number of bytes to write """ return _pyupm_rf22.RF22_spiBurstWrite(self, reg, src, len)
[docs] def statusRead(self): """ uint8_t statusRead() Reads and returns the device status register RF22_REG_02_DEVICE_STATUS The value of the device status register """ return _pyupm_rf22.RF22_statusRead(self)
[docs] def adcRead(self, adcsel=0x00, adcref=0x00, adcgain=0, adcoffs=0): """ uint8_t adcRead(uint8_t adcsel=RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR, uint8_t adcref=RF22_ADCREF_BANDGAP_VOLTAGE, uint8_t adcgain=0, uint8_t adcoffs=0) Reads a value from the on-chip analog-digital converter Parameters: ----------- adcsel: Selects the ADC input to measure. One of RF22_ADCSEL_*. Defaults to the internal temperature sensor adcref: Specifies the reference voltage to use. One of RF22_ADCREF_*. Defaults to the internal bandgap voltage. adcgain: Amplifier gain selection. adcoffs: Amplifier offset (0 to 15). The analog value. 0 to 255. """ return _pyupm_rf22.RF22_adcRead(self, adcsel, adcref, adcgain, adcoffs)
[docs] def temperatureRead(self, tsrange=0x00, tvoffs=0): """ uint8_t temperatureRead(uint8_t tsrange=RF22_TSRANGE_M64_64C, uint8_t tvoffs=0) Reads the on-chip temperature sensor Parameters: ----------- tsrange: Specifies the temperature range to use. One of RF22_TSRANGE_* tvoffs: Specifies the temperature value offset. This is actually signed value added to the measured temperature value The measured temperature. """ return _pyupm_rf22.RF22_temperatureRead(self, tsrange, tvoffs)
[docs] def wutRead(self): """ uint16_t wutRead() Reads the wakeup timer value in registers RF22_REG_17_WAKEUP_TIMER_VALUE1 and RF22_REG_18_WAKEUP_TIMER_VALUE2 The wakeup timer value """ return _pyupm_rf22.RF22_wutRead(self)
[docs] def setWutPeriod(self, wtm, wtr=0, wtd=0): """ void setWutPeriod(uint16_t wtm, uint8_t wtr=0, uint8_t wtd=0) Sets the wakeup timer period registers RF22_REG_14_WAKEUP_TIMER_PERIOD1, RF22_REG_15_WAKEUP_TIMER_PERIOD2 and RF22_R<EG_16_WAKEUP_TIMER_PERIOD3 Parameters: ----------- wtm: Wakeup timer mantissa value wtr: Wakeup timer exponent R value wtd: Wakeup timer exponent D value """ return _pyupm_rf22.RF22_setWutPeriod(self, wtm, wtr, wtd)
[docs] def setFrequency(self, center, afcPullInRange=0.05): """ uint8_t setFrequency(float center, float afcPullInRange=0.05) Sets the transmitter and receiver center frequency Parameters: ----------- center: Frequency in MHz. 240.0 to 960.0. Caution, some versions of RF22 and derivatives implemented more restricted frequency ranges. afcPullInRange: Sets the AF Pull In Range in MHz. Defaults to 0.05MHz (50kHz). Range is 0.0 to 0.159375 for frequencies 240.0 to 480MHz, and 0.0 to 0.318750MHz for frequencies 480.0 to 960MHz, true if the selected frequency center + (fhch * fhs) is within range and the afcPullInRange is within range """ return _pyupm_rf22.RF22_setFrequency(self, center, afcPullInRange)
[docs] def setFHStepSize(self, fhs): """ uint8_t setFHStepSize(uint8_t fhs) Sets the frequency hopping step size. Parameters: ----------- fhs: Frequency Hopping step size in 10kHz increments true if center + (fhch * fhs) is within limits """ return _pyupm_rf22.RF22_setFHStepSize(self, fhs)
[docs] def setFHChannel(self, fhch): """ uint8_t setFHChannel(uint8_t fhch) Sets the frequency hopping channel. Adds fhch * fhs to center frequency Parameters: ----------- fhch: The channel number true if the selected frequency center + (fhch * fhs) is within range """ return _pyupm_rf22.RF22_setFHChannel(self, fhch)
[docs] def rssiRead(self): """ uint8_t rssiRead() Reads and returns the current RSSI value from register RF22_REG_26_RSSI. If you want to find the RSSI of the last received message, use lastRssi() instead. The current RSSI value """ return _pyupm_rf22.RF22_rssiRead(self)
[docs] def ezmacStatusRead(self): """ uint8_t ezmacStatusRead() Reads and returns the current EZMAC value from register RF22_REG_31_EZMAC_STATUS The current EZMAC value """ return _pyupm_rf22.RF22_ezmacStatusRead(self)
[docs] def setMode(self, mode): """ void setMode(uint8_t mode) Sets the parameters for the RF22 Idle mode in register RF22_REG_07_OPERATING_MODE. Idle mode is the mode the RF22 will be in when not transmitting or receiving. The default idle mode is RF22_XTON i.e. READY mode. Parameters: ----------- mode: Mask of mode bits, using RF22_SWRES, RF22_ENLBD, RF22_ENWT, RF22_X32KSEL, RF22_PLLON, RF22_XTON. """ return _pyupm_rf22.RF22_setMode(self, mode)
[docs] def setModeIdle(self): """ void setModeIdle() If current mode is Rx or Tx changes it to Idle. If the transmitter or receiver is running, disables them. """ return _pyupm_rf22.RF22_setModeIdle(self)
[docs] def setModeRx(self): """ void setModeRx() If current mode is Tx or Idle, changes it to Rx. Starts the receiver in the RF22. """ return _pyupm_rf22.RF22_setModeRx(self)
[docs] def setModeTx(self): """ void setModeTx() If current mode is Rx or Idle, changes it to Rx. Starts the transmitter in the RF22. """ return _pyupm_rf22.RF22_setModeTx(self)
[docs] def mode(self): """ uint8_t mode() Returns the operating mode of the library. the current mode, one of RF22_MODE_* """ return _pyupm_rf22.RF22_mode(self)
[docs] def setTxPower(self, power): """ void setTxPower(uint8_t power) Sets the transmitter power output level in register RF22_REG_6D_TX_POWER. Be a good neighbor and set the lowest power level you need. After init(), the power will be set to RF22_TXPOW_8DBM. Caution: In some countries you may only select RF22_TXPOW_17DBM if you are also using frequency hopping. Parameters: ----------- power: Transmitter power level, one of RF22_TXPOW_* """ return _pyupm_rf22.RF22_setTxPower(self, power)
[docs] def setModemRegisters(self, config): """ void setModemRegisters(const ModemConfig *config) Sets all the registered required to configure the data modem in the RF22, including the data rate, bandwidths etc. You can use this to configure the modem with custom configurations if none of the canned configurations in ModemConfigChoice suit you. Parameters: ----------- config: A ModemConfig structure containing values for the modem configuration registers. """ return _pyupm_rf22.RF22_setModemRegisters(self, config)
[docs] def setModemConfig(self, index): """ uint8_t setModemConfig(ModemConfigChoice index) Select one of the predefined modem configurations. If you need a modem configuration not provided here, use setModemRegisters() with your own ModemConfig. Parameters: ----------- index: The configuration choice. true if index is a valid choice. """ return _pyupm_rf22.RF22_setModemConfig(self, index)
[docs] def available(self): """ uint8_t available() Starts the receiver and checks whether a received message is available. This can be called multiple times in a timeout loop true if a complete, valid message has been received and is able to be retrieved by recv() """ return _pyupm_rf22.RF22_available(self)
[docs] def waitAvailable(self): """ void waitAvailable() Starts the receiver and blocks until a valid received message is available. """ return _pyupm_rf22.RF22_waitAvailable(self)
[docs] def waitAvailableTimeout(self, timeout): """ bool waitAvailableTimeout(unsigned long timeout) Starts the receiver and blocks until a received message is available or a timeout Parameters: ----------- timeout: Maximum time to wait in milliseconds. true if a message is available """ return _pyupm_rf22.RF22_waitAvailableTimeout(self, timeout)
[docs] def recv(self, buf, len): """ uint8_t recv(uint8_t *buf, uint8_t *len) Turns the receiver on if it not already on. If there is a valid message available, copy it to buf and return true else return false. If a message is copied, *len is set to the length (Caution, 0 length messages are permitted). You should be sure to call this function frequently enough to not miss any messages It is recommended that you call it in your main loop. Parameters: ----------- buf: Location to copy the received message len: Pointer to available space in buf. Set to the actual number of octets copied. true if a valid message was copied to buf """ return _pyupm_rf22.RF22_recv(self, buf, len)
[docs] def send(self, data, len): """ uint8_t send(const uint8_t *data, uint8_t len) Waits until any previous transmit packet is finished being transmitted with waitPacketSent(). Then loads a message into the transmitter and starts the transmitter. Note that a message length of 0 is NOT permitted. Parameters: ----------- data: Array of data to be sent len: Number of bytes of data to send (> 0) true if the message length was valid and it was correctly queued for transmit """ return _pyupm_rf22.RF22_send(self, data, len)
[docs] def waitPacketSent(self): """ void waitPacketSent() Blocks until the RF22 is not in mode RF22_MODE_TX (i.e. until the RF22 is not transmitting). This effectively waits until any previous transmit packet is finished being transmitted. """ return _pyupm_rf22.RF22_waitPacketSent(self)
[docs] def setPromiscuous(self, promiscuous): """ void setPromiscuous(uint8_t promiscuous) Tells the receiver to accept messages with any TO address, not just messages addressed to this node or the broadcast address Parameters: ----------- promiscuous: true if you wish to receive messages with any TO address """ return _pyupm_rf22.RF22_setPromiscuous(self, promiscuous)
[docs] def headerTo(self): """ uint8_t headerTo() Returns the TO header of the last received message The TO header """ return _pyupm_rf22.RF22_headerTo(self)
[docs] def headerFrom(self): """ uint8_t headerFrom() Returns the FROM header of the last received message The FROM header """ return _pyupm_rf22.RF22_headerFrom(self)
[docs] def headerId(self): """ uint8_t headerId() Returns the ID header of the last received message The ID header """ return _pyupm_rf22.RF22_headerId(self)
[docs] def headerFlags(self): """ uint8_t headerFlags() Returns the FLAGS header of the last received message The FLAGS header """ return _pyupm_rf22.RF22_headerFlags(self)
[docs] def lastRssi(self): """ uint8_t lastRssi() Returns the RSSI (Receiver Signal Strength Indicator) of the last received message. This measurement is taken when the preamble has been received. It is a (non-linear) measure of the received signal strength. The RSSI """ return _pyupm_rf22.RF22_lastRssi(self)
__swig_getmethods__["printBuffer"] = lambda x: _pyupm_rf22.RF22_printBuffer if _newclass: printBuffer = staticmethod(_pyupm_rf22.RF22_printBuffer)
[docs] def setPreambleLength(self, nibbles): """ void setPreambleLength(uint8_t nibbles) Sets the length of the preamble in 4-bit nibbles. Caution: this should be set to the same value on all nodes in your network. Default is 8. Sets the message preamble length in RF22_REG_34_PREAMBLE_LENGTH Parameters: ----------- nibbles: Preamble length in nibbles of 4 bits each. """ return _pyupm_rf22.RF22_setPreambleLength(self, nibbles)
[docs] def setSyncWords(self, syncWords, len): """ void setSyncWords(const uint8_t *syncWords, uint8_t len) Sets the sync words for transmit and receive in registers RF22_REG_36_SYNC_WORD3 to RF22_REG_39_SYNC_WORD0 Caution: this should be set to the same value on all nodes in your network. Default is { 0x2d, 0xd4 } Parameters: ----------- syncWords: Array of sync words len: Number of sync words to set """ return _pyupm_rf22.RF22_setSyncWords(self, syncWords, len)
RF22_swigregister = _pyupm_rf22.RF22_swigregister RF22_swigregister(RF22) def RF22_printBuffer(prompt, buf, len): return _pyupm_rf22.RF22_printBuffer(prompt, buf, len) RF22_printBuffer = _pyupm_rf22.RF22_printBuffer # This file is compatible with both classic and new-style classes.