# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# 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):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _pyupm_rf22
else:
    import _pyupm_rf22

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 == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, 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 getVersion():
    return _pyupm_rf22.getVersion()
class uint8Array(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, nelements):
        _pyupm_rf22.uint8Array_swiginit(self, _pyupm_rf22.new_uint8Array(nelements))
    __swig_destroy__ = _pyupm_rf22.delete_uint8Array

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

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

    def cast(self):
        return _pyupm_rf22.uint8Array_cast(self)

    @staticmethod
    def frompointer(t):
        return _pyupm_rf22.uint8Array_frompointer(t)

# Register uint8Array in _pyupm_rf22:
_pyupm_rf22.uint8Array_swigregister(uint8Array)

def uint8Array_frompointer(t):
    return _pyupm_rf22.uint8Array_frompointer(t)

RF22_SPI_WRITE_MASK = _pyupm_rf22.RF22_SPI_WRITE_MASK
RF22_MAX_MESSAGE_LEN = _pyupm_rf22.RF22_MAX_MESSAGE_LEN
RF22_FIFO_SIZE = _pyupm_rf22.RF22_FIFO_SIZE
RF22_MODE_IDLE = _pyupm_rf22.RF22_MODE_IDLE
RF22_MODE_RX = _pyupm_rf22.RF22_MODE_RX
RF22_MODE_TX = _pyupm_rf22.RF22_MODE_TX
RF22_TXFFAEM_THRESHOLD = _pyupm_rf22.RF22_TXFFAEM_THRESHOLD
RF22_RXFFAFULL_THRESHOLD = _pyupm_rf22.RF22_RXFFAFULL_THRESHOLD
RF22_DEFAULT_NODE_ADDRESS = _pyupm_rf22.RF22_DEFAULT_NODE_ADDRESS
RF22_BROADCAST_ADDRESS = _pyupm_rf22.RF22_BROADCAST_ADDRESS
RF22_NUM_MODEM_CONFIG_REGS = _pyupm_rf22.RF22_NUM_MODEM_CONFIG_REGS
RF22_REG_00_DEVICE_TYPE = _pyupm_rf22.RF22_REG_00_DEVICE_TYPE
RF22_REG_01_VERSION_CODE = _pyupm_rf22.RF22_REG_01_VERSION_CODE
RF22_REG_02_DEVICE_STATUS = _pyupm_rf22.RF22_REG_02_DEVICE_STATUS
RF22_REG_03_INTERRUPT_STATUS1 = _pyupm_rf22.RF22_REG_03_INTERRUPT_STATUS1
RF22_REG_04_INTERRUPT_STATUS2 = _pyupm_rf22.RF22_REG_04_INTERRUPT_STATUS2
RF22_REG_05_INTERRUPT_ENABLE1 = _pyupm_rf22.RF22_REG_05_INTERRUPT_ENABLE1
RF22_REG_06_INTERRUPT_ENABLE2 = _pyupm_rf22.RF22_REG_06_INTERRUPT_ENABLE2
RF22_REG_07_OPERATING_MODE1 = _pyupm_rf22.RF22_REG_07_OPERATING_MODE1
RF22_REG_08_OPERATING_MODE2 = _pyupm_rf22.RF22_REG_08_OPERATING_MODE2
RF22_REG_09_OSCILLATOR_LOAD_CAPACITANCE = _pyupm_rf22.RF22_REG_09_OSCILLATOR_LOAD_CAPACITANCE
RF22_REG_0A_UC_OUTPUT_CLOCK = _pyupm_rf22.RF22_REG_0A_UC_OUTPUT_CLOCK
RF22_REG_0B_GPIO_CONFIGURATION0 = _pyupm_rf22.RF22_REG_0B_GPIO_CONFIGURATION0
RF22_REG_0C_GPIO_CONFIGURATION1 = _pyupm_rf22.RF22_REG_0C_GPIO_CONFIGURATION1
RF22_REG_0D_GPIO_CONFIGURATION2 = _pyupm_rf22.RF22_REG_0D_GPIO_CONFIGURATION2
RF22_REG_0E_IO_PORT_CONFIGURATION = _pyupm_rf22.RF22_REG_0E_IO_PORT_CONFIGURATION
RF22_REG_0F_ADC_CONFIGURATION = _pyupm_rf22.RF22_REG_0F_ADC_CONFIGURATION
RF22_REG_10_ADC_SENSOR_AMP_OFFSET = _pyupm_rf22.RF22_REG_10_ADC_SENSOR_AMP_OFFSET
RF22_REG_11_ADC_VALUE = _pyupm_rf22.RF22_REG_11_ADC_VALUE
RF22_REG_12_TEMPERATURE_SENSOR_CALIBRATION = _pyupm_rf22.RF22_REG_12_TEMPERATURE_SENSOR_CALIBRATION
RF22_REG_13_TEMPERATURE_VALUE_OFFSET = _pyupm_rf22.RF22_REG_13_TEMPERATURE_VALUE_OFFSET
RF22_REG_14_WAKEUP_TIMER_PERIOD1 = _pyupm_rf22.RF22_REG_14_WAKEUP_TIMER_PERIOD1
RF22_REG_15_WAKEUP_TIMER_PERIOD2 = _pyupm_rf22.RF22_REG_15_WAKEUP_TIMER_PERIOD2
RF22_REG_16_WAKEUP_TIMER_PERIOD3 = _pyupm_rf22.RF22_REG_16_WAKEUP_TIMER_PERIOD3
RF22_REG_17_WAKEUP_TIMER_VALUE1 = _pyupm_rf22.RF22_REG_17_WAKEUP_TIMER_VALUE1
RF22_REG_18_WAKEUP_TIMER_VALUE2 = _pyupm_rf22.RF22_REG_18_WAKEUP_TIMER_VALUE2
RF22_REG_19_LDC_MODE_DURATION = _pyupm_rf22.RF22_REG_19_LDC_MODE_DURATION
RF22_REG_1A_LOW_BATTERY_DETECTOR_THRESHOLD = _pyupm_rf22.RF22_REG_1A_LOW_BATTERY_DETECTOR_THRESHOLD
RF22_REG_1B_BATTERY_VOLTAGE_LEVEL = _pyupm_rf22.RF22_REG_1B_BATTERY_VOLTAGE_LEVEL
RF22_REG_1C_IF_FILTER_BANDWIDTH = _pyupm_rf22.RF22_REG_1C_IF_FILTER_BANDWIDTH
RF22_REG_1D_AFC_LOOP_GEARSHIFT_OVERRIDE = _pyupm_rf22.RF22_REG_1D_AFC_LOOP_GEARSHIFT_OVERRIDE
RF22_REG_1E_AFC_TIMING_CONTROL = _pyupm_rf22.RF22_REG_1E_AFC_TIMING_CONTROL
RF22_REG_1F_CLOCK_RECOVERY_GEARSHIFT_OVERRIDE = _pyupm_rf22.RF22_REG_1F_CLOCK_RECOVERY_GEARSHIFT_OVERRIDE
RF22_REG_20_CLOCK_RECOVERY_OVERSAMPLING_RATE = _pyupm_rf22.RF22_REG_20_CLOCK_RECOVERY_OVERSAMPLING_RATE
RF22_REG_21_CLOCK_RECOVERY_OFFSET2 = _pyupm_rf22.RF22_REG_21_CLOCK_RECOVERY_OFFSET2
RF22_REG_22_CLOCK_RECOVERY_OFFSET1 = _pyupm_rf22.RF22_REG_22_CLOCK_RECOVERY_OFFSET1
RF22_REG_23_CLOCK_RECOVERY_OFFSET0 = _pyupm_rf22.RF22_REG_23_CLOCK_RECOVERY_OFFSET0
RF22_REG_24_CLOCK_RECOVERY_TIMING_LOOP_GAIN1 = _pyupm_rf22.RF22_REG_24_CLOCK_RECOVERY_TIMING_LOOP_GAIN1
RF22_REG_25_CLOCK_RECOVERY_TIMING_LOOP_GAIN0 = _pyupm_rf22.RF22_REG_25_CLOCK_RECOVERY_TIMING_LOOP_GAIN0
RF22_REG_26_RSSI = _pyupm_rf22.RF22_REG_26_RSSI
RF22_REG_27_RSSI_THRESHOLD = _pyupm_rf22.RF22_REG_27_RSSI_THRESHOLD
RF22_REG_28_ANTENNA_DIVERSITY1 = _pyupm_rf22.RF22_REG_28_ANTENNA_DIVERSITY1
RF22_REG_29_ANTENNA_DIVERSITY2 = _pyupm_rf22.RF22_REG_29_ANTENNA_DIVERSITY2
RF22_REG_2A_AFC_LIMITER = _pyupm_rf22.RF22_REG_2A_AFC_LIMITER
RF22_REG_2B_AFC_CORRECTION_READ = _pyupm_rf22.RF22_REG_2B_AFC_CORRECTION_READ
RF22_REG_2C_OOK_COUNTER_VALUE_1 = _pyupm_rf22.RF22_REG_2C_OOK_COUNTER_VALUE_1
RF22_REG_2D_OOK_COUNTER_VALUE_2 = _pyupm_rf22.RF22_REG_2D_OOK_COUNTER_VALUE_2
RF22_REG_2E_SLICER_PEAK_HOLD = _pyupm_rf22.RF22_REG_2E_SLICER_PEAK_HOLD
RF22_REG_30_DATA_ACCESS_CONTROL = _pyupm_rf22.RF22_REG_30_DATA_ACCESS_CONTROL
RF22_REG_31_EZMAC_STATUS = _pyupm_rf22.RF22_REG_31_EZMAC_STATUS
RF22_REG_32_HEADER_CONTROL1 = _pyupm_rf22.RF22_REG_32_HEADER_CONTROL1
RF22_REG_33_HEADER_CONTROL2 = _pyupm_rf22.RF22_REG_33_HEADER_CONTROL2
RF22_REG_34_PREAMBLE_LENGTH = _pyupm_rf22.RF22_REG_34_PREAMBLE_LENGTH
RF22_REG_35_PREAMBLE_DETECTION_CONTROL1 = _pyupm_rf22.RF22_REG_35_PREAMBLE_DETECTION_CONTROL1
RF22_REG_36_SYNC_WORD3 = _pyupm_rf22.RF22_REG_36_SYNC_WORD3
RF22_REG_37_SYNC_WORD2 = _pyupm_rf22.RF22_REG_37_SYNC_WORD2
RF22_REG_38_SYNC_WORD1 = _pyupm_rf22.RF22_REG_38_SYNC_WORD1
RF22_REG_39_SYNC_WORD0 = _pyupm_rf22.RF22_REG_39_SYNC_WORD0
RF22_REG_3A_TRANSMIT_HEADER3 = _pyupm_rf22.RF22_REG_3A_TRANSMIT_HEADER3
RF22_REG_3B_TRANSMIT_HEADER2 = _pyupm_rf22.RF22_REG_3B_TRANSMIT_HEADER2
RF22_REG_3C_TRANSMIT_HEADER1 = _pyupm_rf22.RF22_REG_3C_TRANSMIT_HEADER1
RF22_REG_3D_TRANSMIT_HEADER0 = _pyupm_rf22.RF22_REG_3D_TRANSMIT_HEADER0
RF22_REG_3E_PACKET_LENGTH = _pyupm_rf22.RF22_REG_3E_PACKET_LENGTH
RF22_REG_3F_CHECK_HEADER3 = _pyupm_rf22.RF22_REG_3F_CHECK_HEADER3
RF22_REG_40_CHECK_HEADER2 = _pyupm_rf22.RF22_REG_40_CHECK_HEADER2
RF22_REG_41_CHECK_HEADER1 = _pyupm_rf22.RF22_REG_41_CHECK_HEADER1
RF22_REG_42_CHECK_HEADER0 = _pyupm_rf22.RF22_REG_42_CHECK_HEADER0
RF22_REG_43_HEADER_ENABLE3 = _pyupm_rf22.RF22_REG_43_HEADER_ENABLE3
RF22_REG_44_HEADER_ENABLE2 = _pyupm_rf22.RF22_REG_44_HEADER_ENABLE2
RF22_REG_45_HEADER_ENABLE1 = _pyupm_rf22.RF22_REG_45_HEADER_ENABLE1
RF22_REG_46_HEADER_ENABLE0 = _pyupm_rf22.RF22_REG_46_HEADER_ENABLE0
RF22_REG_47_RECEIVED_HEADER3 = _pyupm_rf22.RF22_REG_47_RECEIVED_HEADER3
RF22_REG_48_RECEIVED_HEADER2 = _pyupm_rf22.RF22_REG_48_RECEIVED_HEADER2
RF22_REG_49_RECEIVED_HEADER1 = _pyupm_rf22.RF22_REG_49_RECEIVED_HEADER1
RF22_REG_4A_RECEIVED_HEADER0 = _pyupm_rf22.RF22_REG_4A_RECEIVED_HEADER0
RF22_REG_4B_RECEIVED_PACKET_LENGTH = _pyupm_rf22.RF22_REG_4B_RECEIVED_PACKET_LENGTH
RF22_REG_50_ANALOG_TEST_BUS_SELECT = _pyupm_rf22.RF22_REG_50_ANALOG_TEST_BUS_SELECT
RF22_REG_51_DIGITAL_TEST_BUS_SELECT = _pyupm_rf22.RF22_REG_51_DIGITAL_TEST_BUS_SELECT
RF22_REG_52_TX_RAMP_CONTROL = _pyupm_rf22.RF22_REG_52_TX_RAMP_CONTROL
RF22_REG_53_PLL_TUNE_TIME = _pyupm_rf22.RF22_REG_53_PLL_TUNE_TIME
RF22_REG_55_CALIBRATION_CONTROL = _pyupm_rf22.RF22_REG_55_CALIBRATION_CONTROL
RF22_REG_56_MODEM_TEST = _pyupm_rf22.RF22_REG_56_MODEM_TEST
RF22_REG_57_CHARGE_PUMP_TEST = _pyupm_rf22.RF22_REG_57_CHARGE_PUMP_TEST
RF22_REG_58_CHARGE_PUMP_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_58_CHARGE_PUMP_CURRENT_TRIMMING
RF22_REG_59_DIVIDER_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_59_DIVIDER_CURRENT_TRIMMING
RF22_REG_5A_VCO_CURRENT_TRIMMING = _pyupm_rf22.RF22_REG_5A_VCO_CURRENT_TRIMMING
RF22_REG_5B_VCO_CALIBRATION = _pyupm_rf22.RF22_REG_5B_VCO_CALIBRATION
RF22_REG_5C_SYNTHESIZER_TEST = _pyupm_rf22.RF22_REG_5C_SYNTHESIZER_TEST
RF22_REG_5D_BLOCK_ENABLE_OVERRIDE1 = _pyupm_rf22.RF22_REG_5D_BLOCK_ENABLE_OVERRIDE1
RF22_REG_5E_BLOCK_ENABLE_OVERRIDE2 = _pyupm_rf22.RF22_REG_5E_BLOCK_ENABLE_OVERRIDE2
RF22_REG_5F_BLOCK_ENABLE_OVERRIDE3 = _pyupm_rf22.RF22_REG_5F_BLOCK_ENABLE_OVERRIDE3
RF22_REG_60_CHANNEL_FILTER_COEFFICIENT_ADDRESS = _pyupm_rf22.RF22_REG_60_CHANNEL_FILTER_COEFFICIENT_ADDRESS
RF22_REG_61_CHANNEL_FILTER_COEFFICIENT_VALUE = _pyupm_rf22.RF22_REG_61_CHANNEL_FILTER_COEFFICIENT_VALUE
RF22_REG_62_CRYSTAL_OSCILLATOR_POR_CONTROL = _pyupm_rf22.RF22_REG_62_CRYSTAL_OSCILLATOR_POR_CONTROL
RF22_REG_63_RC_OSCILLATOR_COARSE_CALIBRATION = _pyupm_rf22.RF22_REG_63_RC_OSCILLATOR_COARSE_CALIBRATION
RF22_REG_64_RC_OSCILLATOR_FINE_CALIBRATION = _pyupm_rf22.RF22_REG_64_RC_OSCILLATOR_FINE_CALIBRATION
RF22_REG_65_LDO_CONTROL_OVERRIDE = _pyupm_rf22.RF22_REG_65_LDO_CONTROL_OVERRIDE
RF22_REG_66_LDO_LEVEL_SETTINGS = _pyupm_rf22.RF22_REG_66_LDO_LEVEL_SETTINGS
RF22_REG_67_DELTA_SIGMA_ADC_TUNING1 = _pyupm_rf22.RF22_REG_67_DELTA_SIGMA_ADC_TUNING1
RF22_REG_68_DELTA_SIGMA_ADC_TUNING2 = _pyupm_rf22.RF22_REG_68_DELTA_SIGMA_ADC_TUNING2
RF22_REG_69_AGC_OVERRIDE1 = _pyupm_rf22.RF22_REG_69_AGC_OVERRIDE1
RF22_REG_6A_AGC_OVERRIDE2 = _pyupm_rf22.RF22_REG_6A_AGC_OVERRIDE2
RF22_REG_6B_GFSK_FIR_FILTER_COEFFICIENT_ADDRESS = _pyupm_rf22.RF22_REG_6B_GFSK_FIR_FILTER_COEFFICIENT_ADDRESS
RF22_REG_6C_GFSK_FIR_FILTER_COEFFICIENT_VALUE = _pyupm_rf22.RF22_REG_6C_GFSK_FIR_FILTER_COEFFICIENT_VALUE
RF22_REG_6D_TX_POWER = _pyupm_rf22.RF22_REG_6D_TX_POWER
RF22_REG_6E_TX_DATA_RATE1 = _pyupm_rf22.RF22_REG_6E_TX_DATA_RATE1
RF22_REG_6F_TX_DATA_RATE0 = _pyupm_rf22.RF22_REG_6F_TX_DATA_RATE0
RF22_REG_70_MODULATION_CONTROL1 = _pyupm_rf22.RF22_REG_70_MODULATION_CONTROL1
RF22_REG_71_MODULATION_CONTROL2 = _pyupm_rf22.RF22_REG_71_MODULATION_CONTROL2
RF22_REG_72_FREQUENCY_DEVIATION = _pyupm_rf22.RF22_REG_72_FREQUENCY_DEVIATION
RF22_REG_73_FREQUENCY_OFFSET1 = _pyupm_rf22.RF22_REG_73_FREQUENCY_OFFSET1
RF22_REG_74_FREQUENCY_OFFSET2 = _pyupm_rf22.RF22_REG_74_FREQUENCY_OFFSET2
RF22_REG_75_FREQUENCY_BAND_SELECT = _pyupm_rf22.RF22_REG_75_FREQUENCY_BAND_SELECT
RF22_REG_76_NOMINAL_CARRIER_FREQUENCY1 = _pyupm_rf22.RF22_REG_76_NOMINAL_CARRIER_FREQUENCY1
RF22_REG_77_NOMINAL_CARRIER_FREQUENCY0 = _pyupm_rf22.RF22_REG_77_NOMINAL_CARRIER_FREQUENCY0
RF22_REG_79_FREQUENCY_HOPPING_CHANNEL_SELECT = _pyupm_rf22.RF22_REG_79_FREQUENCY_HOPPING_CHANNEL_SELECT
RF22_REG_7A_FREQUENCY_HOPPING_STEP_SIZE = _pyupm_rf22.RF22_REG_7A_FREQUENCY_HOPPING_STEP_SIZE
RF22_REG_7C_TX_FIFO_CONTROL1 = _pyupm_rf22.RF22_REG_7C_TX_FIFO_CONTROL1
RF22_REG_7D_TX_FIFO_CONTROL2 = _pyupm_rf22.RF22_REG_7D_TX_FIFO_CONTROL2
RF22_REG_7E_RX_FIFO_CONTROL = _pyupm_rf22.RF22_REG_7E_RX_FIFO_CONTROL
RF22_REG_7F_FIFO_ACCESS = _pyupm_rf22.RF22_REG_7F_FIFO_ACCESS
RF22_DEVICE_TYPE_RX_TRX = _pyupm_rf22.RF22_DEVICE_TYPE_RX_TRX
RF22_DEVICE_TYPE_TX = _pyupm_rf22.RF22_DEVICE_TYPE_TX
RF22_FFOVL = _pyupm_rf22.RF22_FFOVL
RF22_FFUNFL = _pyupm_rf22.RF22_FFUNFL
RF22_RXFFEM = _pyupm_rf22.RF22_RXFFEM
RF22_HEADERR = _pyupm_rf22.RF22_HEADERR
RF22_FREQERR = _pyupm_rf22.RF22_FREQERR
RF22_LOCKDET = _pyupm_rf22.RF22_LOCKDET
RF22_CPS = _pyupm_rf22.RF22_CPS
RF22_CPS_IDLE = _pyupm_rf22.RF22_CPS_IDLE
RF22_CPS_RX = _pyupm_rf22.RF22_CPS_RX
RF22_CPS_TX = _pyupm_rf22.RF22_CPS_TX
RF22_IFFERROR = _pyupm_rf22.RF22_IFFERROR
RF22_ITXFFAFULL = _pyupm_rf22.RF22_ITXFFAFULL
RF22_ITXFFAEM = _pyupm_rf22.RF22_ITXFFAEM
RF22_IRXFFAFULL = _pyupm_rf22.RF22_IRXFFAFULL
RF22_IEXT = _pyupm_rf22.RF22_IEXT
RF22_IPKSENT = _pyupm_rf22.RF22_IPKSENT
RF22_IPKVALID = _pyupm_rf22.RF22_IPKVALID
RF22_ICRCERROR = _pyupm_rf22.RF22_ICRCERROR
RF22_ISWDET = _pyupm_rf22.RF22_ISWDET
RF22_IPREAVAL = _pyupm_rf22.RF22_IPREAVAL
RF22_IPREAINVAL = _pyupm_rf22.RF22_IPREAINVAL
RF22_IRSSI = _pyupm_rf22.RF22_IRSSI
RF22_IWUT = _pyupm_rf22.RF22_IWUT
RF22_ILBD = _pyupm_rf22.RF22_ILBD
RF22_ICHIPRDY = _pyupm_rf22.RF22_ICHIPRDY
RF22_IPOR = _pyupm_rf22.RF22_IPOR
RF22_ENFFERR = _pyupm_rf22.RF22_ENFFERR
RF22_ENTXFFAFULL = _pyupm_rf22.RF22_ENTXFFAFULL
RF22_ENTXFFAEM = _pyupm_rf22.RF22_ENTXFFAEM
RF22_ENRXFFAFULL = _pyupm_rf22.RF22_ENRXFFAFULL
RF22_ENEXT = _pyupm_rf22.RF22_ENEXT
RF22_ENPKSENT = _pyupm_rf22.RF22_ENPKSENT
RF22_ENPKVALID = _pyupm_rf22.RF22_ENPKVALID
RF22_ENCRCERROR = _pyupm_rf22.RF22_ENCRCERROR
RF22_ENSWDET = _pyupm_rf22.RF22_ENSWDET
RF22_ENPREAVAL = _pyupm_rf22.RF22_ENPREAVAL
RF22_ENPREAINVAL = _pyupm_rf22.RF22_ENPREAINVAL
RF22_ENRSSI = _pyupm_rf22.RF22_ENRSSI
RF22_ENWUT = _pyupm_rf22.RF22_ENWUT
RF22_ENLBDI = _pyupm_rf22.RF22_ENLBDI
RF22_ENCHIPRDY = _pyupm_rf22.RF22_ENCHIPRDY
RF22_ENPOR = _pyupm_rf22.RF22_ENPOR
RF22_SWRES = _pyupm_rf22.RF22_SWRES
RF22_ENLBD = _pyupm_rf22.RF22_ENLBD
RF22_ENWT = _pyupm_rf22.RF22_ENWT
RF22_X32KSEL = _pyupm_rf22.RF22_X32KSEL
RF22_TXON = _pyupm_rf22.RF22_TXON
RF22_RXON = _pyupm_rf22.RF22_RXON
RF22_PLLON = _pyupm_rf22.RF22_PLLON
RF22_XTON = _pyupm_rf22.RF22_XTON
RF22_ANTDIV = _pyupm_rf22.RF22_ANTDIV
RF22_RXMPK = _pyupm_rf22.RF22_RXMPK
RF22_AUTOTX = _pyupm_rf22.RF22_AUTOTX
RF22_ENLDM = _pyupm_rf22.RF22_ENLDM
RF22_FFCLRRX = _pyupm_rf22.RF22_FFCLRRX
RF22_FFCLRTX = _pyupm_rf22.RF22_FFCLRTX
RF22_ADCSTART = _pyupm_rf22.RF22_ADCSTART
RF22_ADCDONE = _pyupm_rf22.RF22_ADCDONE
RF22_ADCSEL = _pyupm_rf22.RF22_ADCSEL
RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR = _pyupm_rf22.RF22_ADCSEL_INTERNAL_TEMPERATURE_SENSOR
RF22_ADCSEL_GPIO0_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO0_SINGLE_ENDED
RF22_ADCSEL_GPIO1_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO1_SINGLE_ENDED
RF22_ADCSEL_GPIO2_SINGLE_ENDED = _pyupm_rf22.RF22_ADCSEL_GPIO2_SINGLE_ENDED
RF22_ADCSEL_GPIO0_GPIO1_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO1_DIFFERENTIAL
RF22_ADCSEL_GPIO1_GPIO2_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO1_GPIO2_DIFFERENTIAL
RF22_ADCSEL_GPIO0_GPIO2_DIFFERENTIAL = _pyupm_rf22.RF22_ADCSEL_GPIO0_GPIO2_DIFFERENTIAL
RF22_ADCSEL_GND = _pyupm_rf22.RF22_ADCSEL_GND
RF22_ADCREF = _pyupm_rf22.RF22_ADCREF
RF22_ADCREF_BANDGAP_VOLTAGE = _pyupm_rf22.RF22_ADCREF_BANDGAP_VOLTAGE
RF22_ADCREF_VDD_ON_3 = _pyupm_rf22.RF22_ADCREF_VDD_ON_3
RF22_ADCREF_VDD_ON_2 = _pyupm_rf22.RF22_ADCREF_VDD_ON_2
RF22_ADCGAIN = _pyupm_rf22.RF22_ADCGAIN
RF22_ADCOFFS = _pyupm_rf22.RF22_ADCOFFS
RF22_TSRANGE = _pyupm_rf22.RF22_TSRANGE
RF22_TSRANGE_M64_64C = _pyupm_rf22.RF22_TSRANGE_M64_64C
RF22_TSRANGE_M64_192C = _pyupm_rf22.RF22_TSRANGE_M64_192C
RF22_TSRANGE_0_128C = _pyupm_rf22.RF22_TSRANGE_0_128C
RF22_TSRANGE_M40_216F = _pyupm_rf22.RF22_TSRANGE_M40_216F
RF22_ENTSOFFS = _pyupm_rf22.RF22_ENTSOFFS
RF22_ENTSTRIM = _pyupm_rf22.RF22_ENTSTRIM
RF22_TSTRIM = _pyupm_rf22.RF22_TSTRIM
RF22_WTR = _pyupm_rf22.RF22_WTR
RF22_WTD = _pyupm_rf22.RF22_WTD
RF22_AFBCD = _pyupm_rf22.RF22_AFBCD
RF22_ENAFC = _pyupm_rf22.RF22_ENAFC
RF22_AFCGEARH = _pyupm_rf22.RF22_AFCGEARH
RF22_AFCGEARL = _pyupm_rf22.RF22_AFCGEARL
RF22_SWAIT_TIMER = _pyupm_rf22.RF22_SWAIT_TIMER
RF22_SHWAIT = _pyupm_rf22.RF22_SHWAIT
RF22_ANWAIT = _pyupm_rf22.RF22_ANWAIT
RF22_ENPACRX = _pyupm_rf22.RF22_ENPACRX
RF22_MSBFRST = _pyupm_rf22.RF22_MSBFRST
RF22_LSBFRST = _pyupm_rf22.RF22_LSBFRST
RF22_CRCHDRS = _pyupm_rf22.RF22_CRCHDRS
RF22_CRCDONLY = _pyupm_rf22.RF22_CRCDONLY
RF22_ENPACTX = _pyupm_rf22.RF22_ENPACTX
RF22_ENCRC = _pyupm_rf22.RF22_ENCRC
RF22_CRC = _pyupm_rf22.RF22_CRC
RF22_CRC_CCITT = _pyupm_rf22.RF22_CRC_CCITT
RF22_CRC_CRC_16_IBM = _pyupm_rf22.RF22_CRC_CRC_16_IBM
RF22_CRC_IEC_16 = _pyupm_rf22.RF22_CRC_IEC_16
RF22_CRC_BIACHEVA = _pyupm_rf22.RF22_CRC_BIACHEVA
RF22_BCEN = _pyupm_rf22.RF22_BCEN
RF22_BCEN_NONE = _pyupm_rf22.RF22_BCEN_NONE
RF22_BCEN_HEADER0 = _pyupm_rf22.RF22_BCEN_HEADER0
RF22_BCEN_HEADER1 = _pyupm_rf22.RF22_BCEN_HEADER1
RF22_BCEN_HEADER2 = _pyupm_rf22.RF22_BCEN_HEADER2
RF22_BCEN_HEADER3 = _pyupm_rf22.RF22_BCEN_HEADER3
RF22_HDCH = _pyupm_rf22.RF22_HDCH
RF22_HDCH_NONE = _pyupm_rf22.RF22_HDCH_NONE
RF22_HDCH_HEADER0 = _pyupm_rf22.RF22_HDCH_HEADER0
RF22_HDCH_HEADER1 = _pyupm_rf22.RF22_HDCH_HEADER1
RF22_HDCH_HEADER2 = _pyupm_rf22.RF22_HDCH_HEADER2
RF22_HDCH_HEADER3 = _pyupm_rf22.RF22_HDCH_HEADER3
RF22_HDLEN = _pyupm_rf22.RF22_HDLEN
RF22_HDLEN_0 = _pyupm_rf22.RF22_HDLEN_0
RF22_HDLEN_1 = _pyupm_rf22.RF22_HDLEN_1
RF22_HDLEN_2 = _pyupm_rf22.RF22_HDLEN_2
RF22_HDLEN_3 = _pyupm_rf22.RF22_HDLEN_3
RF22_HDLEN_4 = _pyupm_rf22.RF22_HDLEN_4
RF22_VARPKLEN = _pyupm_rf22.RF22_VARPKLEN
RF22_FIXPKLEN = _pyupm_rf22.RF22_FIXPKLEN
RF22_SYNCLEN = _pyupm_rf22.RF22_SYNCLEN
RF22_SYNCLEN_1 = _pyupm_rf22.RF22_SYNCLEN_1
RF22_SYNCLEN_2 = _pyupm_rf22.RF22_SYNCLEN_2
RF22_SYNCLEN_3 = _pyupm_rf22.RF22_SYNCLEN_3
RF22_SYNCLEN_4 = _pyupm_rf22.RF22_SYNCLEN_4
RF22_PREALEN8 = _pyupm_rf22.RF22_PREALEN8
RF22_TXPOW = _pyupm_rf22.RF22_TXPOW
RF22_TXPOW_4X31 = _pyupm_rf22.RF22_TXPOW_4X31
RF22_TXPOW_1DBM = _pyupm_rf22.RF22_TXPOW_1DBM
RF22_TXPOW_2DBM = _pyupm_rf22.RF22_TXPOW_2DBM
RF22_TXPOW_5DBM = _pyupm_rf22.RF22_TXPOW_5DBM
RF22_TXPOW_8DBM = _pyupm_rf22.RF22_TXPOW_8DBM
RF22_TXPOW_11DBM = _pyupm_rf22.RF22_TXPOW_11DBM
RF22_TXPOW_14DBM = _pyupm_rf22.RF22_TXPOW_14DBM
RF22_TXPOW_17DBM = _pyupm_rf22.RF22_TXPOW_17DBM
RF22_TXPOW_20DBM = _pyupm_rf22.RF22_TXPOW_20DBM
RF22_TXPOW_LNA_SW = _pyupm_rf22.RF22_TXPOW_LNA_SW
RF22_TRCLK = _pyupm_rf22.RF22_TRCLK
RF22_TRCLK_NONE = _pyupm_rf22.RF22_TRCLK_NONE
RF22_TRCLK_GPIO = _pyupm_rf22.RF22_TRCLK_GPIO
RF22_TRCLK_SDO = _pyupm_rf22.RF22_TRCLK_SDO
RF22_TRCLK_NIRQ = _pyupm_rf22.RF22_TRCLK_NIRQ
RF22_DTMOD = _pyupm_rf22.RF22_DTMOD
RF22_DTMOD_DIRECT_GPIO = _pyupm_rf22.RF22_DTMOD_DIRECT_GPIO
RF22_DTMOD_DIRECT_SDI = _pyupm_rf22.RF22_DTMOD_DIRECT_SDI
RF22_DTMOD_FIFO = _pyupm_rf22.RF22_DTMOD_FIFO
RF22_DTMOD_PN9 = _pyupm_rf22.RF22_DTMOD_PN9
RF22_ENINV = _pyupm_rf22.RF22_ENINV
RF22_FD8 = _pyupm_rf22.RF22_FD8
RF22_MODTYP = _pyupm_rf22.RF22_MODTYP
RF22_MODTYP_UNMODULATED = _pyupm_rf22.RF22_MODTYP_UNMODULATED
RF22_MODTYP_OOK = _pyupm_rf22.RF22_MODTYP_OOK
RF22_MODTYP_FSK = _pyupm_rf22.RF22_MODTYP_FSK
RF22_MODTYP_GFSK = _pyupm_rf22.RF22_MODTYP_GFSK
RF22_SBSEL = _pyupm_rf22.RF22_SBSEL
RF22_HBSEL = _pyupm_rf22.RF22_HBSEL
RF22_FB = _pyupm_rf22.RF22_FB
class RF22(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __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):
        _pyupm_rf22.RF22_swiginit(self, _pyupm_rf22.new_RF22(spiBus, slaveSelectPin, interruptPin))
    __swig_destroy__ = _pyupm_rf22.delete_RF22

    def init(self):
        return _pyupm_rf22.RF22_init(self)

    def reset(self):
        return _pyupm_rf22.RF22_reset(self)

    def spiRead(self, reg):
        return _pyupm_rf22.RF22_spiRead(self, reg)

    def spiWrite(self, reg, val):
        return _pyupm_rf22.RF22_spiWrite(self, reg, val)

    def spiBurstRead(self, reg, dest, len):
        return _pyupm_rf22.RF22_spiBurstRead(self, reg, dest, len)

    def spiBurstWrite(self, reg, src, len):
        return _pyupm_rf22.RF22_spiBurstWrite(self, reg, src, len)

    def statusRead(self):
        return _pyupm_rf22.RF22_statusRead(self)

    def adcRead(self, adcsel=0, adcref=0, adcgain=0, adcoffs=0):
        return _pyupm_rf22.RF22_adcRead(self, adcsel, adcref, adcgain, adcoffs)

    def temperatureRead(self, tsrange=0, tvoffs=0):
        return _pyupm_rf22.RF22_temperatureRead(self, tsrange, tvoffs)

    def wutRead(self):
        return _pyupm_rf22.RF22_wutRead(self)

    def setWutPeriod(self, wtm, wtr=0, wtd=0):
        return _pyupm_rf22.RF22_setWutPeriod(self, wtm, wtr, wtd)

    def setFrequency(self, center, afcPullInRange=0.05):
        return _pyupm_rf22.RF22_setFrequency(self, center, afcPullInRange)

    def setFHStepSize(self, fhs):
        return _pyupm_rf22.RF22_setFHStepSize(self, fhs)

    def setFHChannel(self, fhch):
        return _pyupm_rf22.RF22_setFHChannel(self, fhch)

    def rssiRead(self):
        return _pyupm_rf22.RF22_rssiRead(self)

    def ezmacStatusRead(self):
        return _pyupm_rf22.RF22_ezmacStatusRead(self)

    def setMode(self, mode):
        return _pyupm_rf22.RF22_setMode(self, mode)

    def setModeIdle(self):
        return _pyupm_rf22.RF22_setModeIdle(self)

    def setModeRx(self):
        return _pyupm_rf22.RF22_setModeRx(self)

    def setModeTx(self):
        return _pyupm_rf22.RF22_setModeTx(self)

    def mode(self):
        return _pyupm_rf22.RF22_mode(self)

    def setTxPower(self, power):
        return _pyupm_rf22.RF22_setTxPower(self, power)

    def setModemRegisters(self, config):
        return _pyupm_rf22.RF22_setModemRegisters(self, config)

    def setModemConfig(self, index):
        return _pyupm_rf22.RF22_setModemConfig(self, index)

    def available(self):
        return _pyupm_rf22.RF22_available(self)

    def waitAvailable(self):
        return _pyupm_rf22.RF22_waitAvailable(self)

    def waitAvailableTimeout(self, timeout):
        return _pyupm_rf22.RF22_waitAvailableTimeout(self, timeout)

    def recv(self, buf, len):
        return _pyupm_rf22.RF22_recv(self, buf, len)

    def send(self, data, len):
        return _pyupm_rf22.RF22_send(self, data, len)

    def waitPacketSent(self):
        return _pyupm_rf22.RF22_waitPacketSent(self)

    def setPromiscuous(self, promiscuous):
        return _pyupm_rf22.RF22_setPromiscuous(self, promiscuous)

    def headerTo(self):
        return _pyupm_rf22.RF22_headerTo(self)

    def headerFrom(self):
        return _pyupm_rf22.RF22_headerFrom(self)

    def headerId(self):
        return _pyupm_rf22.RF22_headerId(self)

    def headerFlags(self):
        return _pyupm_rf22.RF22_headerFlags(self)

    def lastRssi(self):
        return _pyupm_rf22.RF22_lastRssi(self)

    @staticmethod
    def printBuffer(prompt, buf, len):
        return _pyupm_rf22.RF22_printBuffer(prompt, buf, len)

    def setPreambleLength(self, nibbles):
        return _pyupm_rf22.RF22_setPreambleLength(self, nibbles)

    def setSyncWords(self, syncWords, len):
        return _pyupm_rf22.RF22_setSyncWords(self, syncWords, len)

# Register RF22 in _pyupm_rf22:
_pyupm_rf22.RF22_swigregister(RF22)

def RF22_printBuffer(prompt, buf, len):
    return _pyupm_rf22.RF22_printBuffer(prompt, buf, len)



