Source code for pyupm_mcp2515

# 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_mcp2515', [dirname(__file__)])
        except ImportError:
            import _pyupm_mcp2515
            return _pyupm_mcp2515
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_mcp2515', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_mcp2515 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_mcp2515
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_mcp2515.getVersion()
getVersion = _pyupm_mcp2515.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_mcp2515.new_uint8Array(nelements) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_mcp2515.delete_uint8Array __del__ = lambda self: None def __getitem__(self, index): return _pyupm_mcp2515.uint8Array___getitem__(self, index) def __setitem__(self, index, value): return _pyupm_mcp2515.uint8Array___setitem__(self, index, value)
[docs] def cast(self): return _pyupm_mcp2515.uint8Array_cast(self)
__swig_getmethods__["frompointer"] = lambda x: _pyupm_mcp2515.uint8Array_frompointer if _newclass: frompointer = staticmethod(_pyupm_mcp2515.uint8Array_frompointer)
uint8Array_swigregister = _pyupm_mcp2515.uint8Array_swigregister uint8Array_swigregister(uint8Array) def uint8Array_frompointer(t): return _pyupm_mcp2515.uint8Array_frompointer(t) uint8Array_frompointer = _pyupm_mcp2515.uint8Array_frompointer def new_floatp(): return _pyupm_mcp2515.new_floatp() new_floatp = _pyupm_mcp2515.new_floatp def copy_floatp(value): return _pyupm_mcp2515.copy_floatp(value) copy_floatp = _pyupm_mcp2515.copy_floatp def delete_floatp(obj): return _pyupm_mcp2515.delete_floatp(obj) delete_floatp = _pyupm_mcp2515.delete_floatp def floatp_assign(obj, value): return _pyupm_mcp2515.floatp_assign(obj, value) floatp_assign = _pyupm_mcp2515.floatp_assign def floatp_value(obj): return _pyupm_mcp2515.floatp_value(obj) floatp_value = _pyupm_mcp2515.floatp_value _pyupm_mcp2515.MCP2515_MAX_PAYLOAD_DATA_swigconstant(_pyupm_mcp2515) MCP2515_MAX_PAYLOAD_DATA = _pyupm_mcp2515.MCP2515_MAX_PAYLOAD_DATA _pyupm_mcp2515.MCP2515_MAX_PKT_DATA_swigconstant(_pyupm_mcp2515) MCP2515_MAX_PKT_DATA = _pyupm_mcp2515.MCP2515_MAX_PKT_DATA _pyupm_mcp2515.MCP2515_PKT_SIDH_swigconstant(_pyupm_mcp2515) MCP2515_PKT_SIDH = _pyupm_mcp2515.MCP2515_PKT_SIDH _pyupm_mcp2515.MCP2515_PKT_SIDL_swigconstant(_pyupm_mcp2515) MCP2515_PKT_SIDL = _pyupm_mcp2515.MCP2515_PKT_SIDL _pyupm_mcp2515.MCP2515_PKT_EID8_swigconstant(_pyupm_mcp2515) MCP2515_PKT_EID8 = _pyupm_mcp2515.MCP2515_PKT_EID8 _pyupm_mcp2515.MCP2515_PKT_EID0_swigconstant(_pyupm_mcp2515) MCP2515_PKT_EID0 = _pyupm_mcp2515.MCP2515_PKT_EID0 _pyupm_mcp2515.MCP2515_PKT_DLC_swigconstant(_pyupm_mcp2515) MCP2515_PKT_DLC = _pyupm_mcp2515.MCP2515_PKT_DLC _pyupm_mcp2515.MCP2515_PKT_D0_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D0 = _pyupm_mcp2515.MCP2515_PKT_D0 _pyupm_mcp2515.MCP2515_PKT_D1_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D1 = _pyupm_mcp2515.MCP2515_PKT_D1 _pyupm_mcp2515.MCP2515_PKT_D2_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D2 = _pyupm_mcp2515.MCP2515_PKT_D2 _pyupm_mcp2515.MCP2515_PKT_D3_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D3 = _pyupm_mcp2515.MCP2515_PKT_D3 _pyupm_mcp2515.MCP2515_PKT_D4_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D4 = _pyupm_mcp2515.MCP2515_PKT_D4 _pyupm_mcp2515.MCP2515_PKT_D5_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D5 = _pyupm_mcp2515.MCP2515_PKT_D5 _pyupm_mcp2515.MCP2515_PKT_D6_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D6 = _pyupm_mcp2515.MCP2515_PKT_D6 _pyupm_mcp2515.MCP2515_PKT_D7_swigconstant(_pyupm_mcp2515) MCP2515_PKT_D7 = _pyupm_mcp2515.MCP2515_PKT_D7 _pyupm_mcp2515.MCP2515_MAX_ID_BYTES_swigconstant(_pyupm_mcp2515) MCP2515_MAX_ID_BYTES = _pyupm_mcp2515.MCP2515_MAX_ID_BYTES
[docs]class MCP2515_ID_T(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, MCP2515_ID_T, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, MCP2515_ID_T, name) __repr__ = _swig_repr __swig_setmethods__["data"] = _pyupm_mcp2515.MCP2515_ID_T_data_set __swig_getmethods__["data"] = _pyupm_mcp2515.MCP2515_ID_T_data_get if _newclass: data = _swig_property(_pyupm_mcp2515.MCP2515_ID_T_data_get, _pyupm_mcp2515.MCP2515_ID_T_data_set) def __init__(self): this = _pyupm_mcp2515.new_MCP2515_ID_T() try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_ID_T __del__ = lambda self: None
MCP2515_ID_T_swigregister = _pyupm_mcp2515.MCP2515_ID_T_swigregister MCP2515_ID_T_swigregister(MCP2515_ID_T)
[docs]class MCP2515_PKT_T(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, MCP2515_PKT_T, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, MCP2515_PKT_T, name) __repr__ = _swig_repr __swig_setmethods__["data"] = _pyupm_mcp2515.MCP2515_PKT_T_data_set __swig_getmethods__["data"] = _pyupm_mcp2515.MCP2515_PKT_T_data_get if _newclass: data = _swig_property(_pyupm_mcp2515.MCP2515_PKT_T_data_get, _pyupm_mcp2515.MCP2515_PKT_T_data_set) def __init__(self): this = _pyupm_mcp2515.new_MCP2515_PKT_T() try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_PKT_T __del__ = lambda self: None
MCP2515_PKT_T_swigregister = _pyupm_mcp2515.MCP2515_PKT_T_swigregister MCP2515_PKT_T_swigregister(MCP2515_PKT_T)
[docs]class MCP2515_MSG_T(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, MCP2515_MSG_T, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, MCP2515_MSG_T, name) __repr__ = _swig_repr __swig_setmethods__["id"] = _pyupm_mcp2515.MCP2515_MSG_T_id_set __swig_getmethods__["id"] = _pyupm_mcp2515.MCP2515_MSG_T_id_get if _newclass: id = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_id_get, _pyupm_mcp2515.MCP2515_MSG_T_id_set) __swig_setmethods__["rtr"] = _pyupm_mcp2515.MCP2515_MSG_T_rtr_set __swig_getmethods__["rtr"] = _pyupm_mcp2515.MCP2515_MSG_T_rtr_get if _newclass: rtr = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_rtr_get, _pyupm_mcp2515.MCP2515_MSG_T_rtr_set) __swig_setmethods__["ext"] = _pyupm_mcp2515.MCP2515_MSG_T_ext_set __swig_getmethods__["ext"] = _pyupm_mcp2515.MCP2515_MSG_T_ext_get if _newclass: ext = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_ext_get, _pyupm_mcp2515.MCP2515_MSG_T_ext_set) __swig_setmethods__["filter_num"] = _pyupm_mcp2515.MCP2515_MSG_T_filter_num_set __swig_getmethods__["filter_num"] = _pyupm_mcp2515.MCP2515_MSG_T_filter_num_get if _newclass: filter_num = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_filter_num_get, _pyupm_mcp2515.MCP2515_MSG_T_filter_num_set) __swig_setmethods__["len"] = _pyupm_mcp2515.MCP2515_MSG_T_len_set __swig_getmethods__["len"] = _pyupm_mcp2515.MCP2515_MSG_T_len_get if _newclass: len = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_len_get, _pyupm_mcp2515.MCP2515_MSG_T_len_set) __swig_setmethods__["pkt"] = _pyupm_mcp2515.MCP2515_MSG_T_pkt_set __swig_getmethods__["pkt"] = _pyupm_mcp2515.MCP2515_MSG_T_pkt_get if _newclass: pkt = _swig_property(_pyupm_mcp2515.MCP2515_MSG_T_pkt_get, _pyupm_mcp2515.MCP2515_MSG_T_pkt_set) def __init__(self): this = _pyupm_mcp2515.new_MCP2515_MSG_T() try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_MSG_T __del__ = lambda self: None
MCP2515_MSG_T_swigregister = _pyupm_mcp2515.MCP2515_MSG_T_swigregister MCP2515_MSG_T_swigregister(MCP2515_MSG_T) _pyupm_mcp2515.MCP2515_REG_FILTER0_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER0 = _pyupm_mcp2515.MCP2515_REG_FILTER0 _pyupm_mcp2515.MCP2515_REG_FILTER1_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER1 = _pyupm_mcp2515.MCP2515_REG_FILTER1 _pyupm_mcp2515.MCP2515_REG_FILTER2_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER2 = _pyupm_mcp2515.MCP2515_REG_FILTER2 _pyupm_mcp2515.MCP2515_REG_FILTER3_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER3 = _pyupm_mcp2515.MCP2515_REG_FILTER3 _pyupm_mcp2515.MCP2515_REG_FILTER4_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER4 = _pyupm_mcp2515.MCP2515_REG_FILTER4 _pyupm_mcp2515.MCP2515_REG_FILTER5_swigconstant(_pyupm_mcp2515) MCP2515_REG_FILTER5 = _pyupm_mcp2515.MCP2515_REG_FILTER5 _pyupm_mcp2515.MCP2515_REG_MASK0_swigconstant(_pyupm_mcp2515) MCP2515_REG_MASK0 = _pyupm_mcp2515.MCP2515_REG_MASK0 _pyupm_mcp2515.MCP2515_REG_MASK1_swigconstant(_pyupm_mcp2515) MCP2515_REG_MASK1 = _pyupm_mcp2515.MCP2515_REG_MASK1 _pyupm_mcp2515.MCP2515_REG_BFPCTL_swigconstant(_pyupm_mcp2515) MCP2515_REG_BFPCTL = _pyupm_mcp2515.MCP2515_REG_BFPCTL _pyupm_mcp2515.MCP2515_REG_TXRTSCTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_TXRTSCTRL = _pyupm_mcp2515.MCP2515_REG_TXRTSCTRL _pyupm_mcp2515.MCP2515_REG_CANSTAT_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT = _pyupm_mcp2515.MCP2515_REG_CANSTAT _pyupm_mcp2515.MCP2515_REG_CANSTAT_0_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_0 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_0 _pyupm_mcp2515.MCP2515_REG_CANSTAT_1_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_1 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_1 _pyupm_mcp2515.MCP2515_REG_CANSTAT_2_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_2 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_2 _pyupm_mcp2515.MCP2515_REG_CANSTAT_3_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_3 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_3 _pyupm_mcp2515.MCP2515_REG_CANSTAT_4_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_4 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_4 _pyupm_mcp2515.MCP2515_REG_CANSTAT_5_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_5 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_5 _pyupm_mcp2515.MCP2515_REG_CANSTAT_6_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_6 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_6 _pyupm_mcp2515.MCP2515_REG_CANSTAT_7_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANSTAT_7 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_7 _pyupm_mcp2515.MCP2515_REG_CANCTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL = _pyupm_mcp2515.MCP2515_REG_CANCTRL _pyupm_mcp2515.MCP2515_REG_CANCTRL_0_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_0 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_0 _pyupm_mcp2515.MCP2515_REG_CANCTRL_1_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_1 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_1 _pyupm_mcp2515.MCP2515_REG_CANCTRL_2_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_2 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_2 _pyupm_mcp2515.MCP2515_REG_CANCTRL_3_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_3 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_3 _pyupm_mcp2515.MCP2515_REG_CANCTRL_4_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_4 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_4 _pyupm_mcp2515.MCP2515_REG_CANCTRL_5_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_5 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_5 _pyupm_mcp2515.MCP2515_REG_CANCTRL_6_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_6 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_6 _pyupm_mcp2515.MCP2515_REG_CANCTRL_7_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANCTRL_7 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_7 _pyupm_mcp2515.MCP2515_REG_TEC_swigconstant(_pyupm_mcp2515) MCP2515_REG_TEC = _pyupm_mcp2515.MCP2515_REG_TEC _pyupm_mcp2515.MCP2515_REG_REC_swigconstant(_pyupm_mcp2515) MCP2515_REG_REC = _pyupm_mcp2515.MCP2515_REG_REC _pyupm_mcp2515.MCP2515_REG_CNF3_swigconstant(_pyupm_mcp2515) MCP2515_REG_CNF3 = _pyupm_mcp2515.MCP2515_REG_CNF3 _pyupm_mcp2515.MCP2515_REG_CNF2_swigconstant(_pyupm_mcp2515) MCP2515_REG_CNF2 = _pyupm_mcp2515.MCP2515_REG_CNF2 _pyupm_mcp2515.MCP2515_REG_CNF1_swigconstant(_pyupm_mcp2515) MCP2515_REG_CNF1 = _pyupm_mcp2515.MCP2515_REG_CNF1 _pyupm_mcp2515.MCP2515_REG_CANINTE_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANINTE = _pyupm_mcp2515.MCP2515_REG_CANINTE _pyupm_mcp2515.MCP2515_REG_CANINTF_swigconstant(_pyupm_mcp2515) MCP2515_REG_CANINTF = _pyupm_mcp2515.MCP2515_REG_CANINTF _pyupm_mcp2515.MCP2515_REG_EFLG_swigconstant(_pyupm_mcp2515) MCP2515_REG_EFLG = _pyupm_mcp2515.MCP2515_REG_EFLG _pyupm_mcp2515.MCP2515_REG_TXB0CTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_TXB0CTRL = _pyupm_mcp2515.MCP2515_REG_TXB0CTRL _pyupm_mcp2515.MCP2515_REG_TXB1CTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_TXB1CTRL = _pyupm_mcp2515.MCP2515_REG_TXB1CTRL _pyupm_mcp2515.MCP2515_REG_TXB2CTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_TXB2CTRL = _pyupm_mcp2515.MCP2515_REG_TXB2CTRL _pyupm_mcp2515.MCP2515_REG_RXB0CTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_RXB0CTRL = _pyupm_mcp2515.MCP2515_REG_RXB0CTRL _pyupm_mcp2515.MCP2515_REG_RXB1CTRL_swigconstant(_pyupm_mcp2515) MCP2515_REG_RXB1CTRL = _pyupm_mcp2515.MCP2515_REG_RXB1CTRL _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE0_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_CLKPRE0 = _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE0 _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE1_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_CLKPRE1 = _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE1 _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_CANCTRL_CLKPRE_MASK = _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_MASK _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_CANCTRL_CLKPRE_SHIFT = _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_SHIFT _pyupm_mcp2515.MCP2515_CANCTRL_CLKEN_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_CLKEN = _pyupm_mcp2515.MCP2515_CANCTRL_CLKEN _pyupm_mcp2515.MCP2515_CANCTRL_OSM_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_OSM = _pyupm_mcp2515.MCP2515_CANCTRL_OSM _pyupm_mcp2515.MCP2515_CANCTRL_ABAT_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_ABAT = _pyupm_mcp2515.MCP2515_CANCTRL_ABAT _pyupm_mcp2515.MCP2515_CANCTRL_REQOP0_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_REQOP0 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP0 _pyupm_mcp2515.MCP2515_CANCTRL_REQOP1_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_REQOP1 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP1 _pyupm_mcp2515.MCP2515_CANCTRL_REQOP2_swigconstant(_pyupm_mcp2515) MCP2515_CANCTRL_REQOP2 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP2 _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_CANCTRL_REQOP_MASK = _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_MASK _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_CANCTRL_REQOP_SHIFT = _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_SHIFT _pyupm_mcp2515.MCP2515_CLKPRE_DIV1_swigconstant(_pyupm_mcp2515) MCP2515_CLKPRE_DIV1 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV1 _pyupm_mcp2515.MCP2515_CLKPRE_DIV2_swigconstant(_pyupm_mcp2515) MCP2515_CLKPRE_DIV2 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV2 _pyupm_mcp2515.MCP2515_CLKPRE_DIV4_swigconstant(_pyupm_mcp2515) MCP2515_CLKPRE_DIV4 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV4 _pyupm_mcp2515.MCP2515_CLKPRE_DIV8_swigconstant(_pyupm_mcp2515) MCP2515_CLKPRE_DIV8 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV8 _pyupm_mcp2515.MCP2515_OPMODE_NORMAL_swigconstant(_pyupm_mcp2515) MCP2515_OPMODE_NORMAL = _pyupm_mcp2515.MCP2515_OPMODE_NORMAL _pyupm_mcp2515.MCP2515_OPMODE_SLEEP_swigconstant(_pyupm_mcp2515) MCP2515_OPMODE_SLEEP = _pyupm_mcp2515.MCP2515_OPMODE_SLEEP _pyupm_mcp2515.MCP2515_OPMODE_LOOPBACK_swigconstant(_pyupm_mcp2515) MCP2515_OPMODE_LOOPBACK = _pyupm_mcp2515.MCP2515_OPMODE_LOOPBACK _pyupm_mcp2515.MCP2515_OPMODE_LISTENONLY_swigconstant(_pyupm_mcp2515) MCP2515_OPMODE_LISTENONLY = _pyupm_mcp2515.MCP2515_OPMODE_LISTENONLY _pyupm_mcp2515.MCP2515_OPMODE_CONFIG_swigconstant(_pyupm_mcp2515) MCP2515_OPMODE_CONFIG = _pyupm_mcp2515.MCP2515_OPMODE_CONFIG _pyupm_mcp2515.MCP2515_CANSTAT_ICOD0_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_ICOD0 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD0 _pyupm_mcp2515.MCP2515_CANSTAT_ICOD1_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_ICOD1 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD1 _pyupm_mcp2515.MCP2515_CANSTAT_ICOD2_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_ICOD2 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD2 _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_CANSTAT_ICOD_MASK = _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_MASK _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_CANSTAT_ICOD_SHIFT = _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_SHIFT _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE0_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_OPMODE0 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE0 _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE1_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_OPMODE1 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE1 _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE2_swigconstant(_pyupm_mcp2515) MCP2515_CANSTAT_OPMODE2 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE2 _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_CANSTAT_OPMODE_MASK = _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_MASK _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_CANSTAT_OPMODE_SHIFT = _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_SHIFT _pyupm_mcp2515.MCP2515_BFPCTL_B0BFM_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B0BFM = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFM _pyupm_mcp2515.MCP2515_BFPCTL_B1BFM_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B1BFM = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFM _pyupm_mcp2515.MCP2515_BFPCTL_B0BFE_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B0BFE = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFE _pyupm_mcp2515.MCP2515_BFPCTL_B1BFE_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B1BFE = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFE _pyupm_mcp2515.MCP2515_BFPCTL_B0BFS_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B0BFS = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFS _pyupm_mcp2515.MCP2515_BFPCTL_B1BFS_swigconstant(_pyupm_mcp2515) MCP2515_BFPCTL_B1BFS = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFS _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTSM_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B0RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTSM _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTSM_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B1RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTSM _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTSM_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B2RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTSM _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTS_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B0RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTS _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTS_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B1RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTS _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTS_swigconstant(_pyupm_mcp2515) MCP2515_TXRTSCTRL_B2RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTS _pyupm_mcp2515.MCP2515_EFLG_EWARN_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_EWARN = _pyupm_mcp2515.MCP2515_EFLG_EWARN _pyupm_mcp2515.MCP2515_EFLG_RXWAR_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_RXWAR = _pyupm_mcp2515.MCP2515_EFLG_RXWAR _pyupm_mcp2515.MCP2515_EFLG_TXWAR_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_TXWAR = _pyupm_mcp2515.MCP2515_EFLG_TXWAR _pyupm_mcp2515.MCP2515_EFLG_RXEP_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_RXEP = _pyupm_mcp2515.MCP2515_EFLG_RXEP _pyupm_mcp2515.MCP2515_EFLG_TXEP_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_TXEP = _pyupm_mcp2515.MCP2515_EFLG_TXEP _pyupm_mcp2515.MCP2515_EFLG_TXBO_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_TXBO = _pyupm_mcp2515.MCP2515_EFLG_TXBO _pyupm_mcp2515.MCP2515_EFLG_RX0OVR_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_RX0OVR = _pyupm_mcp2515.MCP2515_EFLG_RX0OVR _pyupm_mcp2515.MCP2515_EFLG_RX1OVR_swigconstant(_pyupm_mcp2515) MCP2515_EFLG_RX1OVR = _pyupm_mcp2515.MCP2515_EFLG_RX1OVR _pyupm_mcp2515.MCP2515_CANINT_RX0I_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_RX0I = _pyupm_mcp2515.MCP2515_CANINT_RX0I _pyupm_mcp2515.MCP2515_CANINT_RX1I_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_RX1I = _pyupm_mcp2515.MCP2515_CANINT_RX1I _pyupm_mcp2515.MCP2515_CANINT_TX0I_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_TX0I = _pyupm_mcp2515.MCP2515_CANINT_TX0I _pyupm_mcp2515.MCP2515_CANINT_TX1I_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_TX1I = _pyupm_mcp2515.MCP2515_CANINT_TX1I _pyupm_mcp2515.MCP2515_CANINT_TX2I_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_TX2I = _pyupm_mcp2515.MCP2515_CANINT_TX2I _pyupm_mcp2515.MCP2515_CANINT_ERRI_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_ERRI = _pyupm_mcp2515.MCP2515_CANINT_ERRI _pyupm_mcp2515.MCP2515_CANINT_WAKI_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_WAKI = _pyupm_mcp2515.MCP2515_CANINT_WAKI _pyupm_mcp2515.MCP2515_CANINT_MERR_swigconstant(_pyupm_mcp2515) MCP2515_CANINT_MERR = _pyupm_mcp2515.MCP2515_CANINT_MERR _pyupm_mcp2515.MCP2515_TXBCTRL_TXP0_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_TXP0 = _pyupm_mcp2515.MCP2515_TXBCTRL_TXP0 _pyupm_mcp2515.MCP2515_TXBCTRL_TXP1_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_TXP1 = _pyupm_mcp2515.MCP2515_TXBCTRL_TXP1 _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_TXBCTRL_TXP_MASK = _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_MASK _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_TXBCTRL_TXP_SHIFT = _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_SHIFT _pyupm_mcp2515.MCP2515_TXBCTRL_TXREQ_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_TXREQ = _pyupm_mcp2515.MCP2515_TXBCTRL_TXREQ _pyupm_mcp2515.MCP2515_TXBCTRL_TXERR_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_TXERR = _pyupm_mcp2515.MCP2515_TXBCTRL_TXERR _pyupm_mcp2515.MCP2515_TXBCTRL_MLOA_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_MLOA = _pyupm_mcp2515.MCP2515_TXBCTRL_MLOA _pyupm_mcp2515.MCP2515_TXBCTRL_ABTF_swigconstant(_pyupm_mcp2515) MCP2515_TXBCTRL_ABTF = _pyupm_mcp2515.MCP2515_TXBCTRL_ABTF _pyupm_mcp2515.MCP2515_TXP_LOWEST_swigconstant(_pyupm_mcp2515) MCP2515_TXP_LOWEST = _pyupm_mcp2515.MCP2515_TXP_LOWEST _pyupm_mcp2515.MCP2515_TXP_LOW_swigconstant(_pyupm_mcp2515) MCP2515_TXP_LOW = _pyupm_mcp2515.MCP2515_TXP_LOW _pyupm_mcp2515.MCP2515_TXP_HIGH_swigconstant(_pyupm_mcp2515) MCP2515_TXP_HIGH = _pyupm_mcp2515.MCP2515_TXP_HIGH _pyupm_mcp2515.MCP2515_TXP_HIGHEST_swigconstant(_pyupm_mcp2515) MCP2515_TXP_HIGHEST = _pyupm_mcp2515.MCP2515_TXP_HIGHEST _pyupm_mcp2515.MCP2515_TXBDLC_DLC0_swigconstant(_pyupm_mcp2515) MCP2515_TXBDLC_DLC0 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC0 _pyupm_mcp2515.MCP2515_TXBDLC_DLC1_swigconstant(_pyupm_mcp2515) MCP2515_TXBDLC_DLC1 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC1 _pyupm_mcp2515.MCP2515_TXBDLC_DLC2_swigconstant(_pyupm_mcp2515) MCP2515_TXBDLC_DLC2 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC2 _pyupm_mcp2515.MCP2515_TXBDLC_DLC3_swigconstant(_pyupm_mcp2515) MCP2515_TXBDLC_DLC3 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC3 _pyupm_mcp2515._MCP2515_TXBDLC_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_TXBDLC_MASK = _pyupm_mcp2515._MCP2515_TXBDLC_MASK _pyupm_mcp2515._MCP2515_TXBDLC_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_TXBDLC_SHIFT = _pyupm_mcp2515._MCP2515_TXBDLC_SHIFT _pyupm_mcp2515.MCP2515_TXBDLC_RTR_swigconstant(_pyupm_mcp2515) MCP2515_TXBDLC_RTR = _pyupm_mcp2515.MCP2515_TXBDLC_RTR _pyupm_mcp2515.MCP2515_RXB0CTRL_FILHIT_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_FILHIT = _pyupm_mcp2515.MCP2515_RXB0CTRL_FILHIT _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT1_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_BUKT1 = _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT1 _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_BUKT = _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT _pyupm_mcp2515.MCP2515_RXB0CTRL_RXRTR_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_RXRTR = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXRTR _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE0_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_RXMODE0 = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE0 _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE1_swigconstant(_pyupm_mcp2515) MCP2515_RXB0CTRL_RXMODE1 = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE1 _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXB0CTRL_RXMODE_MASK = _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_MASK _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXB0CTRL_RXMODE_SHIFT = _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_SHIFT _pyupm_mcp2515.MCP2515_RXMODE_ANY_FILTER_swigconstant(_pyupm_mcp2515) MCP2515_RXMODE_ANY_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_ANY_FILTER _pyupm_mcp2515.MCP2515_RXMODE_STANDARD_FILTER_swigconstant(_pyupm_mcp2515) MCP2515_RXMODE_STANDARD_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_STANDARD_FILTER _pyupm_mcp2515.MCP2515_RXMODE_EXTENDED_FILTER_swigconstant(_pyupm_mcp2515) MCP2515_RXMODE_EXTENDED_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_EXTENDED_FILTER _pyupm_mcp2515.MCP2515_RXMODE_ANY_NOFILTER_swigconstant(_pyupm_mcp2515) MCP2515_RXMODE_ANY_NOFILTER = _pyupm_mcp2515.MCP2515_RXMODE_ANY_NOFILTER _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT0_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_FILHIT0 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT0 _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT1_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_FILHIT1 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT1 _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT2_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_FILHIT2 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT2 _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXB1CTRL_FILHIT_MASK = _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_MASK _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXB1CTRL_FILHIT_SHIFT = _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_SHIFT _pyupm_mcp2515.MCP2515_RXB1CTRL_RXRTR_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_RXRTR = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXRTR _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE0_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_RXMODE0 = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE0 _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE1_swigconstant(_pyupm_mcp2515) MCP2515_RXB1CTRL_RXMODE1 = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE1 _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXB1CTRL_RXMODE_MASK = _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_MASK _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXB1CTRL_RXMODE_SHIFT = _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_SHIFT _pyupm_mcp2515.MCP2515_FILHIT_F0_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F0 = _pyupm_mcp2515.MCP2515_FILHIT_F0 _pyupm_mcp2515.MCP2515_FILHIT_F1_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F1 = _pyupm_mcp2515.MCP2515_FILHIT_F1 _pyupm_mcp2515.MCP2515_FILHIT_F2_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F2 = _pyupm_mcp2515.MCP2515_FILHIT_F2 _pyupm_mcp2515.MCP2515_FILHIT_F3_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F3 = _pyupm_mcp2515.MCP2515_FILHIT_F3 _pyupm_mcp2515.MCP2515_FILHIT_F4_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F4 = _pyupm_mcp2515.MCP2515_FILHIT_F4 _pyupm_mcp2515.MCP2515_FILHIT_F5_swigconstant(_pyupm_mcp2515) MCP2515_FILHIT_F5 = _pyupm_mcp2515.MCP2515_FILHIT_F5 _pyupm_mcp2515.MCP2515_SPEED_5KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_5KBPS = _pyupm_mcp2515.MCP2515_SPEED_5KBPS _pyupm_mcp2515.MCP2515_SPEED_10KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_10KBPS = _pyupm_mcp2515.MCP2515_SPEED_10KBPS _pyupm_mcp2515.MCP2515_SPEED_20KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_20KBPS = _pyupm_mcp2515.MCP2515_SPEED_20KBPS _pyupm_mcp2515.MCP2515_SPEED_25KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_25KBPS = _pyupm_mcp2515.MCP2515_SPEED_25KBPS _pyupm_mcp2515.MCP2515_SPEED_31_25KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_31_25KBPS = _pyupm_mcp2515.MCP2515_SPEED_31_25KBPS _pyupm_mcp2515.MCP2515_SPEED_33KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_33KBPS = _pyupm_mcp2515.MCP2515_SPEED_33KBPS _pyupm_mcp2515.MCP2515_SPEED_40KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_40KBPS = _pyupm_mcp2515.MCP2515_SPEED_40KBPS _pyupm_mcp2515.MCP2515_SPEED_50KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_50KBPS = _pyupm_mcp2515.MCP2515_SPEED_50KBPS _pyupm_mcp2515.MCP2515_SPEED_80KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_80KBPS = _pyupm_mcp2515.MCP2515_SPEED_80KBPS _pyupm_mcp2515.MCP2515_SPEED_83KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_83KBPS = _pyupm_mcp2515.MCP2515_SPEED_83KBPS _pyupm_mcp2515.MCP2515_SPEED_95KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_95KBPS = _pyupm_mcp2515.MCP2515_SPEED_95KBPS _pyupm_mcp2515.MCP2515_SPEED_100KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_100KBPS = _pyupm_mcp2515.MCP2515_SPEED_100KBPS _pyupm_mcp2515.MCP2515_SPEED_125KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_125KBPS = _pyupm_mcp2515.MCP2515_SPEED_125KBPS _pyupm_mcp2515.MCP2515_SPEED_200KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_200KBPS = _pyupm_mcp2515.MCP2515_SPEED_200KBPS _pyupm_mcp2515.MCP2515_SPEED_250KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_250KBPS = _pyupm_mcp2515.MCP2515_SPEED_250KBPS _pyupm_mcp2515.MCP2515_SPEED_500KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_500KBPS = _pyupm_mcp2515.MCP2515_SPEED_500KBPS _pyupm_mcp2515.MCP2515_SPEED_666KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_666KBPS = _pyupm_mcp2515.MCP2515_SPEED_666KBPS _pyupm_mcp2515.MCP2515_SPEED_1000KBPS_swigconstant(_pyupm_mcp2515) MCP2515_SPEED_1000KBPS = _pyupm_mcp2515.MCP2515_SPEED_1000KBPS _pyupm_mcp2515.MCP2515_RXBDLC_DLC0_swigconstant(_pyupm_mcp2515) MCP2515_RXBDLC_DLC0 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC0 _pyupm_mcp2515.MCP2515_RXBDLC_DLC1_swigconstant(_pyupm_mcp2515) MCP2515_RXBDLC_DLC1 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC1 _pyupm_mcp2515.MCP2515_RXBDLC_DLC2_swigconstant(_pyupm_mcp2515) MCP2515_RXBDLC_DLC2 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC2 _pyupm_mcp2515.MCP2515_RXBDLC_DLC3_swigconstant(_pyupm_mcp2515) MCP2515_RXBDLC_DLC3 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC3 _pyupm_mcp2515._MCP2515_RXBDLC_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXBDLC_MASK = _pyupm_mcp2515._MCP2515_RXBDLC_MASK _pyupm_mcp2515._MCP2515_RXBDLC_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXBDLC_SHIFT = _pyupm_mcp2515._MCP2515_RXBDLC_SHIFT _pyupm_mcp2515.MCP2515_RXBDLC_RTR_swigconstant(_pyupm_mcp2515) MCP2515_RXBDLC_RTR = _pyupm_mcp2515.MCP2515_RXBDLC_RTR _pyupm_mcp2515.MCP2515_CMD_RESET_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RESET = _pyupm_mcp2515.MCP2515_CMD_RESET _pyupm_mcp2515.MCP2515_CMD_READ_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ = _pyupm_mcp2515.MCP2515_CMD_READ _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0SIDH_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ_RXBUF_RXB0SIDH = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0SIDH _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0D0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ_RXBUF_RXB0D0 = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0D0 _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1SIDH_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ_RXBUF_RXB1SIDH = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1SIDH _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1D0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ_RXBUF_RXB1D0 = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1D0 _pyupm_mcp2515.MCP2515_CMD_WRITE_swigconstant(_pyupm_mcp2515) MCP2515_CMD_WRITE = _pyupm_mcp2515.MCP2515_CMD_WRITE _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0SIDH_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB0SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0SIDH _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0D0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB0D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0D0 _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1SIDH_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB1SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1SIDH _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1D0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB1D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1D0 _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2SIDH_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB2SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2SIDH _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2D0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_LOAD_TXBUF_TXB2D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2D0 _pyupm_mcp2515.MCP2515_CMD_RTS_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RTS = _pyupm_mcp2515.MCP2515_CMD_RTS _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER0_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RTS_BUFFER0 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER0 _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER1_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RTS_BUFFER1 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER1 _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER2_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RTS_BUFFER2 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER2 _pyupm_mcp2515.MCP2515_CMD_READ_STATUS_swigconstant(_pyupm_mcp2515) MCP2515_CMD_READ_STATUS = _pyupm_mcp2515.MCP2515_CMD_READ_STATUS _pyupm_mcp2515.MCP2515_CMD_RX_STATUS_swigconstant(_pyupm_mcp2515) MCP2515_CMD_RX_STATUS = _pyupm_mcp2515.MCP2515_CMD_RX_STATUS _pyupm_mcp2515.MCP2515_CMD_BIT_MODIFY_swigconstant(_pyupm_mcp2515) MCP2515_CMD_BIT_MODIFY = _pyupm_mcp2515.MCP2515_CMD_BIT_MODIFY _pyupm_mcp2515.MCP2515_RDSTATUS_RX0IF_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_RX0IF = _pyupm_mcp2515.MCP2515_RDSTATUS_RX0IF _pyupm_mcp2515.MCP2515_RDSTATUS_RX1IF_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_RX1IF = _pyupm_mcp2515.MCP2515_RDSTATUS_RX1IF _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0REQ_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB0REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0REQ _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0IF_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB0IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0IF _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1REQ_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB1REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1REQ _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1IF_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB1IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1IF _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2REQ_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB2REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2REQ _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2IF_swigconstant(_pyupm_mcp2515) MCP2515_RDSTATUS_TXB2IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2IF _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH0_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_FILTERMATCH0 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH0 _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH1_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_FILTERMATCH1 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH1 _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH2_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_FILTERMATCH2 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH2 _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_FILTERMATCH_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_MASK _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_FILTERMATCH_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_SHIFT _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE0_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_MSGTYPE0 = _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE0 _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE1_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_MSGTYPE1 = _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE1 _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_MSGTYPE_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_MASK _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_MSGTYPE_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_SHIFT _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG0_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_RXMSG0 = _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG0 _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG1_swigconstant(_pyupm_mcp2515) MCP2515_RXSTATUS_RXMSG1 = _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG1 _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_MASK_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_RXMSG_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_MASK _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_SHIFT_swigconstant(_pyupm_mcp2515) _MCP2515_RXSTATUS_RXMSG_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_SHIFT _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF0 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF1 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF2_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF2 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF2 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF3_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF3 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF3 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF4_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF4 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF4 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF5_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF5 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF5 _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0_ROLLOVER_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF0_ROLLOVER = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0_ROLLOVER _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1_ROLLOVER_swigconstant(_pyupm_mcp2515) MCP2515_FILTERMATCH_RXF1_ROLLOVER = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1_ROLLOVER _pyupm_mcp2515.MCP2515_MSGTYPE_STD_swigconstant(_pyupm_mcp2515) MCP2515_MSGTYPE_STD = _pyupm_mcp2515.MCP2515_MSGTYPE_STD _pyupm_mcp2515.MCP2515_MSGTYPE_STDRF_swigconstant(_pyupm_mcp2515) MCP2515_MSGTYPE_STDRF = _pyupm_mcp2515.MCP2515_MSGTYPE_STDRF _pyupm_mcp2515.MCP2515_MSGTYPE_EXT_swigconstant(_pyupm_mcp2515) MCP2515_MSGTYPE_EXT = _pyupm_mcp2515.MCP2515_MSGTYPE_EXT _pyupm_mcp2515.MCP2515_MSGTYPE_EXTRF_swigconstant(_pyupm_mcp2515) MCP2515_MSGTYPE_EXTRF = _pyupm_mcp2515.MCP2515_MSGTYPE_EXTRF _pyupm_mcp2515.MCP2515_RXMSG_NONE_swigconstant(_pyupm_mcp2515) MCP2515_RXMSG_NONE = _pyupm_mcp2515.MCP2515_RXMSG_NONE _pyupm_mcp2515.MCP2515_RXMSG_RXB0_swigconstant(_pyupm_mcp2515) MCP2515_RXMSG_RXB0 = _pyupm_mcp2515.MCP2515_RXMSG_RXB0 _pyupm_mcp2515.MCP2515_RXMSG_RXB1_swigconstant(_pyupm_mcp2515) MCP2515_RXMSG_RXB1 = _pyupm_mcp2515.MCP2515_RXMSG_RXB1 _pyupm_mcp2515.MCP2515_RXMSG_BOTH_swigconstant(_pyupm_mcp2515) MCP2515_RXMSG_BOTH = _pyupm_mcp2515.MCP2515_RXMSG_BOTH _pyupm_mcp2515.MCP2515_SIDL_EID16_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_EID16 = _pyupm_mcp2515.MCP2515_SIDL_EID16 _pyupm_mcp2515.MCP2515_SIDL_EID17_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_EID17 = _pyupm_mcp2515.MCP2515_SIDL_EID17 _pyupm_mcp2515.MCP2515_SIDL_EXIDE_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_EXIDE = _pyupm_mcp2515.MCP2515_SIDL_EXIDE _pyupm_mcp2515.MCP2515_SIDL_SID0_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_SID0 = _pyupm_mcp2515.MCP2515_SIDL_SID0 _pyupm_mcp2515.MCP2515_SIDL_SID1_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_SID1 = _pyupm_mcp2515.MCP2515_SIDL_SID1 _pyupm_mcp2515.MCP2515_SIDL_SID2_swigconstant(_pyupm_mcp2515) MCP2515_SIDL_SID2 = _pyupm_mcp2515.MCP2515_SIDL_SID2 _pyupm_mcp2515.MCP2515_TX_BUFFER0_swigconstant(_pyupm_mcp2515) MCP2515_TX_BUFFER0 = _pyupm_mcp2515.MCP2515_TX_BUFFER0 _pyupm_mcp2515.MCP2515_TX_BUFFER1_swigconstant(_pyupm_mcp2515) MCP2515_TX_BUFFER1 = _pyupm_mcp2515.MCP2515_TX_BUFFER1 _pyupm_mcp2515.MCP2515_TX_BUFFER2_swigconstant(_pyupm_mcp2515) MCP2515_TX_BUFFER2 = _pyupm_mcp2515.MCP2515_TX_BUFFER2 _pyupm_mcp2515.MCP2515_TX_NO_BUFFERS_swigconstant(_pyupm_mcp2515) MCP2515_TX_NO_BUFFERS = _pyupm_mcp2515.MCP2515_TX_NO_BUFFERS _pyupm_mcp2515.MCP2515_RX_BUFFER0_swigconstant(_pyupm_mcp2515) MCP2515_RX_BUFFER0 = _pyupm_mcp2515.MCP2515_RX_BUFFER0 _pyupm_mcp2515.MCP2515_RX_BUFFER1_swigconstant(_pyupm_mcp2515) MCP2515_RX_BUFFER1 = _pyupm_mcp2515.MCP2515_RX_BUFFER1 _pyupm_mcp2515.MCP2515_RX_FILTER0_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER0 = _pyupm_mcp2515.MCP2515_RX_FILTER0 _pyupm_mcp2515.MCP2515_RX_FILTER1_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER1 = _pyupm_mcp2515.MCP2515_RX_FILTER1 _pyupm_mcp2515.MCP2515_RX_FILTER2_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER2 = _pyupm_mcp2515.MCP2515_RX_FILTER2 _pyupm_mcp2515.MCP2515_RX_FILTER3_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER3 = _pyupm_mcp2515.MCP2515_RX_FILTER3 _pyupm_mcp2515.MCP2515_RX_FILTER4_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER4 = _pyupm_mcp2515.MCP2515_RX_FILTER4 _pyupm_mcp2515.MCP2515_RX_FILTER5_swigconstant(_pyupm_mcp2515) MCP2515_RX_FILTER5 = _pyupm_mcp2515.MCP2515_RX_FILTER5 _pyupm_mcp2515.MCP2515_RX_MASK0_swigconstant(_pyupm_mcp2515) MCP2515_RX_MASK0 = _pyupm_mcp2515.MCP2515_RX_MASK0 _pyupm_mcp2515.MCP2515_RX_MASK1_swigconstant(_pyupm_mcp2515) MCP2515_RX_MASK1 = _pyupm_mcp2515.MCP2515_RX_MASK1
[docs]class MCP2515(_object): """ API for the MCP2515 CAN bus controller. ID: mcp2515 Name: CAN Bus Controller Manufacturer: seeed Connection: spi gpio Link:https://www.seeedstudio.com/CANBUS-Shield-p-2256.html The MCP2515 is a stand-alone CAN controller developed to simplify applications that require interfacing with a CAN bus. This driver was developed using the Grove CAN bus shield version 1.2. An example using the loopback mode.A simple transmit and receive example. C++ includes: mcp2515.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, MCP2515, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, MCP2515, name) __repr__ = _swig_repr def __init__(self, bus, csPin): """ MCP2515(int bus, int csPin) MCP2515 constructor. Parameters: ----------- bus: spi bus to use csPin: The GPIO pin to use for Chip Select (CS). Pass pass -1 if your CS is handled automatically by your SPI implementation (Edison). """ this = _pyupm_mcp2515.new_MCP2515(bus, csPin) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515 __del__ = lambda self: None
[docs] def reset(self): """ void reset() Reset the device. """ return _pyupm_mcp2515.MCP2515_reset(self)
[docs] def setOpmode(self, opmode): """ void setOpmode(MCP2515_OPMODE_T opmode) Set the operating mode of the device. After initialization, the device mode will be set to NORMAL. Note that some operations require the device to be placed into CONFIG mode. This function will wait until the selected mode has been entered. Parameters: ----------- opmode: One of the MCP2515_OPMODE_T values. """ return _pyupm_mcp2515.MCP2515_setOpmode(self, opmode)
[docs] def setSpeed(self, speed): """ void setSpeed(MCP2515_SPEED_T speed) Set the baud rate of the CAN bus. All devices on a given CAN bus must be operating at the correct speed. The device must be switched into CONFIG mode bofore this function will have any effect. On initialization, the default CAN bus speed will be set to 50Kbps. Parameters: ----------- speed: One of the MCP2515_SPEED_T values. """ return _pyupm_mcp2515.MCP2515_setSpeed(self, speed)
[docs] def loadTXBuffer(self, bufnum, id, ext, rtr, payload): """ void loadTXBuffer(MCP2515_TX_BUFFER_T bufnum, int id, bool ext, bool rtr, std::string payload) Load a transmit buffer with the id, payload, and other information. This function does not actually transmit the buffer. There are 3 TX buffers available. The buffer must be free (ie: not awaiting transmit) before it can be loaded. Once a TX buffer has been successfully loaded, it can be transmitted with the TransmitBuffer() method. Parameters: ----------- bufnum: The buffer to load. One of the MCP2515_TX_BUFFER_T values. id: The integer representation of the CAN bus ID. ext: True if the ID is an extended identifier, false otherwise. rtr: True if this is a Remote Transfer Request, false otherwise. payload: A string containing the payload bytes. Maximum length is 8. """ return _pyupm_mcp2515.MCP2515_loadTXBuffer(self, bufnum, id, ext, rtr, payload)
[docs] def transmitBuffer(self, bufnum, wait): """ void transmitBuffer(MCP2515_TX_BUFFER_T bufnum, bool wait) Transmit a buffer already loaded by loadTXBuffer(). Parameters: ----------- bufnum: The buffer to transmit. One of the MCP2515_TX_BUFFER_T values. wait: True if the function should wait until transmission is complete before returning, false otherwise. """ return _pyupm_mcp2515.MCP2515_transmitBuffer(self, bufnum, wait)
[docs] def isTXBufferFree(self, bufnum): """ bool isTXBufferFree(MCP2515_TX_BUFFER_T bufnum) Determine whether a TX buffer is available for use or not. A TX buffer is unavailable if a transmit request is pending on it, but transmission has not yet completed. Parameters: ----------- bufnum: The buffer to check. One of the MCP2515_TX_BUFFER_T values. True if the buffer is availabe, false otherwise. """ return _pyupm_mcp2515.MCP2515_isTXBufferFree(self, bufnum)
[docs] def findFreeTXBuffer(self): """ MCP2515_TX_BUFFER_T findFreeTXBuffer() Find a free TX buffer and return it. One of the MCP2515_TX_BUFFER_T values. If no buffers are available, MCP2515_TX_NO_BUFFERS will be returned. """ return _pyupm_mcp2515.MCP2515_findFreeTXBuffer(self)
[docs] def setTXBufferPriority(self, bufnum, priority): """ void setTXBufferPriority(MCP2515_TX_BUFFER_T bufnum, MCP2515_TXP_T priority) Set the transmit priority of a TX buffer. Higher priority buffers are always transmitted before lower priority buffers. This function can be called on a buffer at any time prior to actual transmission. Parameters: ----------- bufnum: The buffer to set priority for. One of the MCP2515_TX_BUFFER_T values. priority: The priority to set for the buffer. One of the MCP2515_TXP_T values. """ return _pyupm_mcp2515.MCP2515_setTXBufferPriority(self, bufnum, priority)
[docs] def abortTX(self, bufnum): """ void abortTX(MCP2515_TX_BUFFER_T bufnum) Abort a transmission that has been queued, but not yet completed. This will also free up the TX buffer for future use. Note, if you abort a transmission, but transmission has already started, this call will have no effect, and the buffer will complete transmission. Parameters: ----------- bufnum: The buffer to abort. One of the MCP2515_TX_BUFFER_T values. """ return _pyupm_mcp2515.MCP2515_abortTX(self, bufnum)
[docs] def setRXBufferMode(self, bufnum, rxm): """ void setRXBufferMode(MCP2515_RX_BUFFER_T bufnum, MCP2515_RXMODE_T rxm) Set the mode for an RX buffer. The mode specifies, at a high level, what packets should be captured from the bus and placed into an RX buffer. See the datasheet for details, but the default, MCP2515_RXMODE_ANY_FILTER, should be sufficient in most cases. It is also possible to use this to restrict the types of CAN ids accepted (extended only, standard only) as well as a debug ANY_NOFILTER mode. Parameters: ----------- bufnum: The buffer to set the mode for. One of the MCP2515_RX_BUFFER_T values. rxm: The mode to set. One of the MCP2515_RXMODE_T values. """ return _pyupm_mcp2515.MCP2515_setRXBufferMode(self, bufnum, rxm)
[docs] def rxStatusMsgs(self): """ MCP2515_RXMSG_T rxStatusMsgs() Return a bitmask indicating which of the 2 RX buffers have packets waiting in them. This can be 0 (no packets), 1(RXB0), 2(RXB1), or 3 (RXB0 and RXB1). This information is retrieved using the MCP2515_CMD_RX_STATUS command. A bitmask indicating which RX buffers (if any) have packets in them. One of the MCP2515_RXMSG_T values. """ return _pyupm_mcp2515.MCP2515_rxStatusMsgs(self)
[docs] def rxStatusMsgType(self): """ MCP2515_MSGTYPE_T rxStatusMsgType() Return the message type present in one of the RX buffers. RXB0 has the highest priority, so if both RX buffers are full, this function will only return data for the packet in RXB0. This information is retrieved using the MCP2515_CMD_RX_STATUS command. One of the MCP2515_MSGTYPE_T values. """ return _pyupm_mcp2515.MCP2515_rxStatusMsgType(self)
[docs] def rxStatusFiltermatch(self): """ MCP2515_FILTERMATCH_T rxStatusFiltermatch() Return the filter that matched an RX buffer. RXB0 has the highest priority, so if both RX buffers are full, this function will only return data for the packet in RXB0. This information is retrieved using the MCP2515_CMD_RX_STATUS command. One of the MCP2515_FILTERMATCH_T values. """ return _pyupm_mcp2515.MCP2515_rxStatusFiltermatch(self)
[docs] def getRXMsg(self, bufnum): """ upm_result_t getRXMsg(MCP2515_RX_BUFFER_T bufnum) This function retrieves a message from the specified RX buffer. The message ( MCP2515_MSG_T) contains all of the data in the packet, including id, rtr, ext, payload and payload length. In addition, after retrieving the message, the RX buffer is freed to receive further data from the CAN bus. The message is stored within the class. Parameters: ----------- bufnum: The buffer to retrieve. One of the MCP2515_RX_BUFFER_T values. """ return _pyupm_mcp2515.MCP2515_getRXMsg(self, bufnum)
[docs] def printMsg(self): """ void printMsg() This is a utility function prints the current (last received) messages decoded contents. This is of primary importance for debugging, and to simplify the examples somewhat. The output will look similar to: id 00000000 ext 0 rtr 0 filt 0 len 8 payload: 0xc8 0x01 0x02 0x03 0x04 0x05 0x06 0x07 """ return _pyupm_mcp2515.MCP2515_printMsg(self)
[docs] def msgGetID(self): """ int msgGetID() This method returns the id of a received message. It will only be valid after a successful completion of rxGetMsg(). ID of the last received message. """ return _pyupm_mcp2515.MCP2515_msgGetID(self)
[docs] def msgGetRTR(self): """ bool msgGetRTR() This method returns the RTR flag of a received message. It will only be valid after a successful completion of rxGetMsg(). True if the message has the RTR flag set, false otherwise. """ return _pyupm_mcp2515.MCP2515_msgGetRTR(self)
[docs] def msgGetEXT(self): """ bool msgGetEXT() This method returns the EXT (extended ID) flag of a received message. It will only be valid after a successful completion of rxGetMsg(). True if the message has an extended ID, false otherwise. """ return _pyupm_mcp2515.MCP2515_msgGetEXT(self)
[docs] def msgGetFilterNum(self): """ int msgGetFilterNum() This method returns the filter number that caused the message to be stored in the RX buffer. It will only be valid after a successful completion of rxGetMsg(). The filter number that was matched. """ return _pyupm_mcp2515.MCP2515_msgGetFilterNum(self)
[docs] def msgGetPayloadLen(self): """ int msgGetPayloadLen() This method returns the length of the payload of the RX buffer. It will only be valid after a successful completion of rxGetMsg(). Length of the payload in bytes, max 8. """ return _pyupm_mcp2515.MCP2515_msgGetPayloadLen(self)
[docs] def msgGetPayload(self): """ std::string msgGetPayload() This method returns the contents of the payload in the last received message. It will only be valid after a successful completion of rxGetMsg(). String containing the payload. """ return _pyupm_mcp2515.MCP2515_msgGetPayload(self)
[docs] def installISR(self, pin, isr, arg): """ void installISR(int pin, void(*isr)(void *), void *arg) Installs an interrupt service routine (ISR) to be called when an interrupt occurs. Parameters: ----------- pin: GPIO pin to use as the interrupt pin. isr: Pointer to a function to be called on interrupt. arg: Pointer to an object to be supplied as an argument to the ISR. """ return _pyupm_mcp2515.MCP2515_installISR(self, pin, isr, arg)
[docs] def uninstallISR(self): """ void uninstallISR() Uninstalls the previously installed ISR Parameters: ----------- dev: Device context. """ return _pyupm_mcp2515.MCP2515_uninstallISR(self)
[docs] def setIntrEnables(self, enables): """ void setIntrEnables(uint8_t enables) Set the interrupt enables register. Parameters: ----------- enables: A bitmask of interrupts to enable from MCP2515_CANINT_BITS_T. """ return _pyupm_mcp2515.MCP2515_setIntrEnables(self, enables)
[docs] def getIntrFlags(self): """ uint8_t getIntrFlags() Retrieve the interrupt flags register. A bitmask that will be filled with values from MCP2515_CANINT_BITS_T, indicating which interrupt flags are set. """ return _pyupm_mcp2515.MCP2515_getIntrFlags(self)
[docs] def setIntrFlags(self, flags): """ void setIntrFlags(uint8_t flags) This function allows you to set specific interrupt flags. If the corresponding interrupt enable is set, an interrupt will be generated. Parameters: ----------- flags: A bitmask of interrupt flags to set, from MCP2515_CANINT_BITS_T values. """ return _pyupm_mcp2515.MCP2515_setIntrFlags(self, flags)
[docs] def clearIntrFlags(self, flags): """ void clearIntrFlags(uint8_t flags) This function allows you to clear specific interrupt flags. See the datasheet. Some flags cannot be cleared until the underlying cause has been corrected. Parameters: ----------- flags: A bitmask of interrupt flags to clear, from MCP2515_CANINT_BITS_T values. """ return _pyupm_mcp2515.MCP2515_clearIntrFlags(self, flags)
[docs] def getErrorFlags(self): """ uint8_t getErrorFlags() Retrieve the error flags register A bitmask that will be filled with values from MCP2515_EFLG_BITS_T, indicating which error flags are set. """ return _pyupm_mcp2515.MCP2515_getErrorFlags(self)
[docs] def clearErrorFlags(self, flags): """ void clearErrorFlags(uint8_t flags) Clear error flags. Note, some flags cannot be cleared until the underlying issues is resolved. A bitmask of values from MCP2515_EFLG_BITS_T, indicating which error flags to clear. """ return _pyupm_mcp2515.MCP2515_clearErrorFlags(self, flags)
[docs] def setFilter(self, filter, ext, id): """ void setFilter(MCP2515_RX_FILTER_T filter, bool ext, int id) This function allows you to set one of the 6 RX filters available. Filters 0 and 1 are for RXB0 only, while filters 2-5 are for RXB1. See the datasheet for details on how these filters (along with the masks) are used to select candidate CAN bus data for retrieval from the CAN bus. These can only be set when the device is in CONFIG mode. Parameters: ----------- filter: One of the 6 MCP2515_RX_FILTER_T values. ext: True if the id is extended, false for standard. id: Integer representation of a CAN bus ID. """ return _pyupm_mcp2515.MCP2515_setFilter(self, filter, ext, id)
[docs] def setMask(self, mask, ext, id): """ void setMask(MCP2515_RX_MASK_T mask, bool ext, int id) This function allows you to set one of the 2 RX masks. Mask 0 is for RXB0, mask 1 is for RXB1. The masks specify which bits in the filters are used for matching CAN bus data. See the datasheet for details on how these masks (along with the filters) are used to select candidate CAN bus data for retrieval from the CAN bus. These can only be set when the device is in CONFIG mode. Parameters: ----------- mask: One of the 2 MCP2515_RX_MASK_T values. ext: True if the id is extended, false for standard. id: Integer representation of a CAN bus ID. """ return _pyupm_mcp2515.MCP2515_setMask(self, mask, ext, id)
MCP2515_swigregister = _pyupm_mcp2515.MCP2515_swigregister MCP2515_swigregister(MCP2515) # This file is compatible with both classic and new-style classes.