# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_pyupm_mcp2515')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_mcp2515')
    _pyupm_mcp2515 = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_pyupm_mcp2515', [dirname(__file__)])
        except ImportError:
            import _pyupm_mcp2515
            return _pyupm_mcp2515
        try:
            _mod = imp.load_module('_pyupm_mcp2515', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_mcp2515 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_mcp2515
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


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

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


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

    def __init__(self, nelements):
        this = _pyupm_mcp2515.new_uint8Array(nelements)
        try:
            self.this.append(this)
        except __builtin__.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)

    def cast(self):
        return _pyupm_mcp2515.uint8Array_cast(self)
    if _newclass:
        frompointer = staticmethod(_pyupm_mcp2515.uint8Array_frompointer)
    else:
        frompointer = _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
MCP2515_MAX_PAYLOAD_DATA = _pyupm_mcp2515.MCP2515_MAX_PAYLOAD_DATA
MCP2515_MAX_PKT_DATA = _pyupm_mcp2515.MCP2515_MAX_PKT_DATA
MCP2515_PKT_SIDH = _pyupm_mcp2515.MCP2515_PKT_SIDH
MCP2515_PKT_SIDL = _pyupm_mcp2515.MCP2515_PKT_SIDL
MCP2515_PKT_EID8 = _pyupm_mcp2515.MCP2515_PKT_EID8
MCP2515_PKT_EID0 = _pyupm_mcp2515.MCP2515_PKT_EID0
MCP2515_PKT_DLC = _pyupm_mcp2515.MCP2515_PKT_DLC
MCP2515_PKT_D0 = _pyupm_mcp2515.MCP2515_PKT_D0
MCP2515_PKT_D1 = _pyupm_mcp2515.MCP2515_PKT_D1
MCP2515_PKT_D2 = _pyupm_mcp2515.MCP2515_PKT_D2
MCP2515_PKT_D3 = _pyupm_mcp2515.MCP2515_PKT_D3
MCP2515_PKT_D4 = _pyupm_mcp2515.MCP2515_PKT_D4
MCP2515_PKT_D5 = _pyupm_mcp2515.MCP2515_PKT_D5
MCP2515_PKT_D6 = _pyupm_mcp2515.MCP2515_PKT_D6
MCP2515_PKT_D7 = _pyupm_mcp2515.MCP2515_PKT_D7
MCP2515_MAX_ID_BYTES = _pyupm_mcp2515.MCP2515_MAX_ID_BYTES
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 __builtin__.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)

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 __builtin__.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)

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 __builtin__.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)

MCP2515_REG_FILTER0 = _pyupm_mcp2515.MCP2515_REG_FILTER0
MCP2515_REG_FILTER1 = _pyupm_mcp2515.MCP2515_REG_FILTER1
MCP2515_REG_FILTER2 = _pyupm_mcp2515.MCP2515_REG_FILTER2
MCP2515_REG_FILTER3 = _pyupm_mcp2515.MCP2515_REG_FILTER3
MCP2515_REG_FILTER4 = _pyupm_mcp2515.MCP2515_REG_FILTER4
MCP2515_REG_FILTER5 = _pyupm_mcp2515.MCP2515_REG_FILTER5
MCP2515_REG_MASK0 = _pyupm_mcp2515.MCP2515_REG_MASK0
MCP2515_REG_MASK1 = _pyupm_mcp2515.MCP2515_REG_MASK1
MCP2515_REG_BFPCTL = _pyupm_mcp2515.MCP2515_REG_BFPCTL
MCP2515_REG_TXRTSCTRL = _pyupm_mcp2515.MCP2515_REG_TXRTSCTRL
MCP2515_REG_CANSTAT = _pyupm_mcp2515.MCP2515_REG_CANSTAT
MCP2515_REG_CANSTAT_0 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_0
MCP2515_REG_CANSTAT_1 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_1
MCP2515_REG_CANSTAT_2 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_2
MCP2515_REG_CANSTAT_3 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_3
MCP2515_REG_CANSTAT_4 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_4
MCP2515_REG_CANSTAT_5 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_5
MCP2515_REG_CANSTAT_6 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_6
MCP2515_REG_CANSTAT_7 = _pyupm_mcp2515.MCP2515_REG_CANSTAT_7
MCP2515_REG_CANCTRL = _pyupm_mcp2515.MCP2515_REG_CANCTRL
MCP2515_REG_CANCTRL_0 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_0
MCP2515_REG_CANCTRL_1 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_1
MCP2515_REG_CANCTRL_2 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_2
MCP2515_REG_CANCTRL_3 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_3
MCP2515_REG_CANCTRL_4 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_4
MCP2515_REG_CANCTRL_5 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_5
MCP2515_REG_CANCTRL_6 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_6
MCP2515_REG_CANCTRL_7 = _pyupm_mcp2515.MCP2515_REG_CANCTRL_7
MCP2515_REG_TEC = _pyupm_mcp2515.MCP2515_REG_TEC
MCP2515_REG_REC = _pyupm_mcp2515.MCP2515_REG_REC
MCP2515_REG_CNF3 = _pyupm_mcp2515.MCP2515_REG_CNF3
MCP2515_REG_CNF2 = _pyupm_mcp2515.MCP2515_REG_CNF2
MCP2515_REG_CNF1 = _pyupm_mcp2515.MCP2515_REG_CNF1
MCP2515_REG_CANINTE = _pyupm_mcp2515.MCP2515_REG_CANINTE
MCP2515_REG_CANINTF = _pyupm_mcp2515.MCP2515_REG_CANINTF
MCP2515_REG_EFLG = _pyupm_mcp2515.MCP2515_REG_EFLG
MCP2515_REG_TXB0CTRL = _pyupm_mcp2515.MCP2515_REG_TXB0CTRL
MCP2515_REG_TXB1CTRL = _pyupm_mcp2515.MCP2515_REG_TXB1CTRL
MCP2515_REG_TXB2CTRL = _pyupm_mcp2515.MCP2515_REG_TXB2CTRL
MCP2515_REG_RXB0CTRL = _pyupm_mcp2515.MCP2515_REG_RXB0CTRL
MCP2515_REG_RXB1CTRL = _pyupm_mcp2515.MCP2515_REG_RXB1CTRL
MCP2515_CANCTRL_CLKPRE0 = _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE0
MCP2515_CANCTRL_CLKPRE1 = _pyupm_mcp2515.MCP2515_CANCTRL_CLKPRE1
_MCP2515_CANCTRL_CLKPRE_MASK = _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_MASK
_MCP2515_CANCTRL_CLKPRE_SHIFT = _pyupm_mcp2515._MCP2515_CANCTRL_CLKPRE_SHIFT
MCP2515_CANCTRL_CLKEN = _pyupm_mcp2515.MCP2515_CANCTRL_CLKEN
MCP2515_CANCTRL_OSM = _pyupm_mcp2515.MCP2515_CANCTRL_OSM
MCP2515_CANCTRL_ABAT = _pyupm_mcp2515.MCP2515_CANCTRL_ABAT
MCP2515_CANCTRL_REQOP0 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP0
MCP2515_CANCTRL_REQOP1 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP1
MCP2515_CANCTRL_REQOP2 = _pyupm_mcp2515.MCP2515_CANCTRL_REQOP2
_MCP2515_CANCTRL_REQOP_MASK = _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_MASK
_MCP2515_CANCTRL_REQOP_SHIFT = _pyupm_mcp2515._MCP2515_CANCTRL_REQOP_SHIFT
MCP2515_CLKPRE_DIV1 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV1
MCP2515_CLKPRE_DIV2 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV2
MCP2515_CLKPRE_DIV4 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV4
MCP2515_CLKPRE_DIV8 = _pyupm_mcp2515.MCP2515_CLKPRE_DIV8
MCP2515_OPMODE_NORMAL = _pyupm_mcp2515.MCP2515_OPMODE_NORMAL
MCP2515_OPMODE_SLEEP = _pyupm_mcp2515.MCP2515_OPMODE_SLEEP
MCP2515_OPMODE_LOOPBACK = _pyupm_mcp2515.MCP2515_OPMODE_LOOPBACK
MCP2515_OPMODE_LISTENONLY = _pyupm_mcp2515.MCP2515_OPMODE_LISTENONLY
MCP2515_OPMODE_CONFIG = _pyupm_mcp2515.MCP2515_OPMODE_CONFIG
MCP2515_CANSTAT_ICOD0 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD0
MCP2515_CANSTAT_ICOD1 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD1
MCP2515_CANSTAT_ICOD2 = _pyupm_mcp2515.MCP2515_CANSTAT_ICOD2
_MCP2515_CANSTAT_ICOD_MASK = _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_MASK
_MCP2515_CANSTAT_ICOD_SHIFT = _pyupm_mcp2515._MCP2515_CANSTAT_ICOD_SHIFT
MCP2515_CANSTAT_OPMODE0 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE0
MCP2515_CANSTAT_OPMODE1 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE1
MCP2515_CANSTAT_OPMODE2 = _pyupm_mcp2515.MCP2515_CANSTAT_OPMODE2
_MCP2515_CANSTAT_OPMODE_MASK = _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_MASK
_MCP2515_CANSTAT_OPMODE_SHIFT = _pyupm_mcp2515._MCP2515_CANSTAT_OPMODE_SHIFT
MCP2515_BFPCTL_B0BFM = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFM
MCP2515_BFPCTL_B1BFM = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFM
MCP2515_BFPCTL_B0BFE = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFE
MCP2515_BFPCTL_B1BFE = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFE
MCP2515_BFPCTL_B0BFS = _pyupm_mcp2515.MCP2515_BFPCTL_B0BFS
MCP2515_BFPCTL_B1BFS = _pyupm_mcp2515.MCP2515_BFPCTL_B1BFS
MCP2515_TXRTSCTRL_B0RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTSM
MCP2515_TXRTSCTRL_B1RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTSM
MCP2515_TXRTSCTRL_B2RTSM = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTSM
MCP2515_TXRTSCTRL_B0RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B0RTS
MCP2515_TXRTSCTRL_B1RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B1RTS
MCP2515_TXRTSCTRL_B2RTS = _pyupm_mcp2515.MCP2515_TXRTSCTRL_B2RTS
MCP2515_EFLG_EWARN = _pyupm_mcp2515.MCP2515_EFLG_EWARN
MCP2515_EFLG_RXWAR = _pyupm_mcp2515.MCP2515_EFLG_RXWAR
MCP2515_EFLG_TXWAR = _pyupm_mcp2515.MCP2515_EFLG_TXWAR
MCP2515_EFLG_RXEP = _pyupm_mcp2515.MCP2515_EFLG_RXEP
MCP2515_EFLG_TXEP = _pyupm_mcp2515.MCP2515_EFLG_TXEP
MCP2515_EFLG_TXBO = _pyupm_mcp2515.MCP2515_EFLG_TXBO
MCP2515_EFLG_RX0OVR = _pyupm_mcp2515.MCP2515_EFLG_RX0OVR
MCP2515_EFLG_RX1OVR = _pyupm_mcp2515.MCP2515_EFLG_RX1OVR
MCP2515_CANINT_RX0I = _pyupm_mcp2515.MCP2515_CANINT_RX0I
MCP2515_CANINT_RX1I = _pyupm_mcp2515.MCP2515_CANINT_RX1I
MCP2515_CANINT_TX0I = _pyupm_mcp2515.MCP2515_CANINT_TX0I
MCP2515_CANINT_TX1I = _pyupm_mcp2515.MCP2515_CANINT_TX1I
MCP2515_CANINT_TX2I = _pyupm_mcp2515.MCP2515_CANINT_TX2I
MCP2515_CANINT_ERRI = _pyupm_mcp2515.MCP2515_CANINT_ERRI
MCP2515_CANINT_WAKI = _pyupm_mcp2515.MCP2515_CANINT_WAKI
MCP2515_CANINT_MERR = _pyupm_mcp2515.MCP2515_CANINT_MERR
MCP2515_TXBCTRL_TXP0 = _pyupm_mcp2515.MCP2515_TXBCTRL_TXP0
MCP2515_TXBCTRL_TXP1 = _pyupm_mcp2515.MCP2515_TXBCTRL_TXP1
_MCP2515_TXBCTRL_TXP_MASK = _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_MASK
_MCP2515_TXBCTRL_TXP_SHIFT = _pyupm_mcp2515._MCP2515_TXBCTRL_TXP_SHIFT
MCP2515_TXBCTRL_TXREQ = _pyupm_mcp2515.MCP2515_TXBCTRL_TXREQ
MCP2515_TXBCTRL_TXERR = _pyupm_mcp2515.MCP2515_TXBCTRL_TXERR
MCP2515_TXBCTRL_MLOA = _pyupm_mcp2515.MCP2515_TXBCTRL_MLOA
MCP2515_TXBCTRL_ABTF = _pyupm_mcp2515.MCP2515_TXBCTRL_ABTF
MCP2515_TXP_LOWEST = _pyupm_mcp2515.MCP2515_TXP_LOWEST
MCP2515_TXP_LOW = _pyupm_mcp2515.MCP2515_TXP_LOW
MCP2515_TXP_HIGH = _pyupm_mcp2515.MCP2515_TXP_HIGH
MCP2515_TXP_HIGHEST = _pyupm_mcp2515.MCP2515_TXP_HIGHEST
MCP2515_TXBDLC_DLC0 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC0
MCP2515_TXBDLC_DLC1 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC1
MCP2515_TXBDLC_DLC2 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC2
MCP2515_TXBDLC_DLC3 = _pyupm_mcp2515.MCP2515_TXBDLC_DLC3
_MCP2515_TXBDLC_MASK = _pyupm_mcp2515._MCP2515_TXBDLC_MASK
_MCP2515_TXBDLC_SHIFT = _pyupm_mcp2515._MCP2515_TXBDLC_SHIFT
MCP2515_TXBDLC_RTR = _pyupm_mcp2515.MCP2515_TXBDLC_RTR
MCP2515_RXB0CTRL_FILHIT = _pyupm_mcp2515.MCP2515_RXB0CTRL_FILHIT
MCP2515_RXB0CTRL_BUKT1 = _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT1
MCP2515_RXB0CTRL_BUKT = _pyupm_mcp2515.MCP2515_RXB0CTRL_BUKT
MCP2515_RXB0CTRL_RXRTR = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXRTR
MCP2515_RXB0CTRL_RXMODE0 = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE0
MCP2515_RXB0CTRL_RXMODE1 = _pyupm_mcp2515.MCP2515_RXB0CTRL_RXMODE1
_MCP2515_RXB0CTRL_RXMODE_MASK = _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_MASK
_MCP2515_RXB0CTRL_RXMODE_SHIFT = _pyupm_mcp2515._MCP2515_RXB0CTRL_RXMODE_SHIFT
MCP2515_RXMODE_ANY_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_ANY_FILTER
MCP2515_RXMODE_STANDARD_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_STANDARD_FILTER
MCP2515_RXMODE_EXTENDED_FILTER = _pyupm_mcp2515.MCP2515_RXMODE_EXTENDED_FILTER
MCP2515_RXMODE_ANY_NOFILTER = _pyupm_mcp2515.MCP2515_RXMODE_ANY_NOFILTER
MCP2515_RXB1CTRL_FILHIT0 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT0
MCP2515_RXB1CTRL_FILHIT1 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT1
MCP2515_RXB1CTRL_FILHIT2 = _pyupm_mcp2515.MCP2515_RXB1CTRL_FILHIT2
_MCP2515_RXB1CTRL_FILHIT_MASK = _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_MASK
_MCP2515_RXB1CTRL_FILHIT_SHIFT = _pyupm_mcp2515._MCP2515_RXB1CTRL_FILHIT_SHIFT
MCP2515_RXB1CTRL_RXRTR = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXRTR
MCP2515_RXB1CTRL_RXMODE0 = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE0
MCP2515_RXB1CTRL_RXMODE1 = _pyupm_mcp2515.MCP2515_RXB1CTRL_RXMODE1
_MCP2515_RXB1CTRL_RXMODE_MASK = _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_MASK
_MCP2515_RXB1CTRL_RXMODE_SHIFT = _pyupm_mcp2515._MCP2515_RXB1CTRL_RXMODE_SHIFT
MCP2515_FILHIT_F0 = _pyupm_mcp2515.MCP2515_FILHIT_F0
MCP2515_FILHIT_F1 = _pyupm_mcp2515.MCP2515_FILHIT_F1
MCP2515_FILHIT_F2 = _pyupm_mcp2515.MCP2515_FILHIT_F2
MCP2515_FILHIT_F3 = _pyupm_mcp2515.MCP2515_FILHIT_F3
MCP2515_FILHIT_F4 = _pyupm_mcp2515.MCP2515_FILHIT_F4
MCP2515_FILHIT_F5 = _pyupm_mcp2515.MCP2515_FILHIT_F5
MCP2515_SPEED_5KBPS = _pyupm_mcp2515.MCP2515_SPEED_5KBPS
MCP2515_SPEED_10KBPS = _pyupm_mcp2515.MCP2515_SPEED_10KBPS
MCP2515_SPEED_20KBPS = _pyupm_mcp2515.MCP2515_SPEED_20KBPS
MCP2515_SPEED_25KBPS = _pyupm_mcp2515.MCP2515_SPEED_25KBPS
MCP2515_SPEED_31_25KBPS = _pyupm_mcp2515.MCP2515_SPEED_31_25KBPS
MCP2515_SPEED_33KBPS = _pyupm_mcp2515.MCP2515_SPEED_33KBPS
MCP2515_SPEED_40KBPS = _pyupm_mcp2515.MCP2515_SPEED_40KBPS
MCP2515_SPEED_50KBPS = _pyupm_mcp2515.MCP2515_SPEED_50KBPS
MCP2515_SPEED_80KBPS = _pyupm_mcp2515.MCP2515_SPEED_80KBPS
MCP2515_SPEED_83KBPS = _pyupm_mcp2515.MCP2515_SPEED_83KBPS
MCP2515_SPEED_95KBPS = _pyupm_mcp2515.MCP2515_SPEED_95KBPS
MCP2515_SPEED_100KBPS = _pyupm_mcp2515.MCP2515_SPEED_100KBPS
MCP2515_SPEED_125KBPS = _pyupm_mcp2515.MCP2515_SPEED_125KBPS
MCP2515_SPEED_200KBPS = _pyupm_mcp2515.MCP2515_SPEED_200KBPS
MCP2515_SPEED_250KBPS = _pyupm_mcp2515.MCP2515_SPEED_250KBPS
MCP2515_SPEED_500KBPS = _pyupm_mcp2515.MCP2515_SPEED_500KBPS
MCP2515_SPEED_666KBPS = _pyupm_mcp2515.MCP2515_SPEED_666KBPS
MCP2515_SPEED_1000KBPS = _pyupm_mcp2515.MCP2515_SPEED_1000KBPS
MCP2515_RXBDLC_DLC0 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC0
MCP2515_RXBDLC_DLC1 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC1
MCP2515_RXBDLC_DLC2 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC2
MCP2515_RXBDLC_DLC3 = _pyupm_mcp2515.MCP2515_RXBDLC_DLC3
_MCP2515_RXBDLC_MASK = _pyupm_mcp2515._MCP2515_RXBDLC_MASK
_MCP2515_RXBDLC_SHIFT = _pyupm_mcp2515._MCP2515_RXBDLC_SHIFT
MCP2515_RXBDLC_RTR = _pyupm_mcp2515.MCP2515_RXBDLC_RTR
MCP2515_CMD_RESET = _pyupm_mcp2515.MCP2515_CMD_RESET
MCP2515_CMD_READ = _pyupm_mcp2515.MCP2515_CMD_READ
MCP2515_CMD_READ_RXBUF_RXB0SIDH = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0SIDH
MCP2515_CMD_READ_RXBUF_RXB0D0 = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB0D0
MCP2515_CMD_READ_RXBUF_RXB1SIDH = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1SIDH
MCP2515_CMD_READ_RXBUF_RXB1D0 = _pyupm_mcp2515.MCP2515_CMD_READ_RXBUF_RXB1D0
MCP2515_CMD_WRITE = _pyupm_mcp2515.MCP2515_CMD_WRITE
MCP2515_CMD_LOAD_TXBUF_TXB0SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0SIDH
MCP2515_CMD_LOAD_TXBUF_TXB0D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB0D0
MCP2515_CMD_LOAD_TXBUF_TXB1SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1SIDH
MCP2515_CMD_LOAD_TXBUF_TXB1D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB1D0
MCP2515_CMD_LOAD_TXBUF_TXB2SIDH = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2SIDH
MCP2515_CMD_LOAD_TXBUF_TXB2D0 = _pyupm_mcp2515.MCP2515_CMD_LOAD_TXBUF_TXB2D0
MCP2515_CMD_RTS = _pyupm_mcp2515.MCP2515_CMD_RTS
MCP2515_CMD_RTS_BUFFER0 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER0
MCP2515_CMD_RTS_BUFFER1 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER1
MCP2515_CMD_RTS_BUFFER2 = _pyupm_mcp2515.MCP2515_CMD_RTS_BUFFER2
MCP2515_CMD_READ_STATUS = _pyupm_mcp2515.MCP2515_CMD_READ_STATUS
MCP2515_CMD_RX_STATUS = _pyupm_mcp2515.MCP2515_CMD_RX_STATUS
MCP2515_CMD_BIT_MODIFY = _pyupm_mcp2515.MCP2515_CMD_BIT_MODIFY
MCP2515_RDSTATUS_RX0IF = _pyupm_mcp2515.MCP2515_RDSTATUS_RX0IF
MCP2515_RDSTATUS_RX1IF = _pyupm_mcp2515.MCP2515_RDSTATUS_RX1IF
MCP2515_RDSTATUS_TXB0REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0REQ
MCP2515_RDSTATUS_TXB0IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB0IF
MCP2515_RDSTATUS_TXB1REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1REQ
MCP2515_RDSTATUS_TXB1IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB1IF
MCP2515_RDSTATUS_TXB2REQ = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2REQ
MCP2515_RDSTATUS_TXB2IF = _pyupm_mcp2515.MCP2515_RDSTATUS_TXB2IF
MCP2515_RXSTATUS_FILTERMATCH0 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH0
MCP2515_RXSTATUS_FILTERMATCH1 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH1
MCP2515_RXSTATUS_FILTERMATCH2 = _pyupm_mcp2515.MCP2515_RXSTATUS_FILTERMATCH2
_MCP2515_RXSTATUS_FILTERMATCH_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_MASK
_MCP2515_RXSTATUS_FILTERMATCH_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_FILTERMATCH_SHIFT
MCP2515_RXSTATUS_MSGTYPE0 = _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE0
MCP2515_RXSTATUS_MSGTYPE1 = _pyupm_mcp2515.MCP2515_RXSTATUS_MSGTYPE1
_MCP2515_RXSTATUS_MSGTYPE_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_MASK
_MCP2515_RXSTATUS_MSGTYPE_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_MSGTYPE_SHIFT
MCP2515_RXSTATUS_RXMSG0 = _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG0
MCP2515_RXSTATUS_RXMSG1 = _pyupm_mcp2515.MCP2515_RXSTATUS_RXMSG1
_MCP2515_RXSTATUS_RXMSG_MASK = _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_MASK
_MCP2515_RXSTATUS_RXMSG_SHIFT = _pyupm_mcp2515._MCP2515_RXSTATUS_RXMSG_SHIFT
MCP2515_FILTERMATCH_RXF0 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0
MCP2515_FILTERMATCH_RXF1 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1
MCP2515_FILTERMATCH_RXF2 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF2
MCP2515_FILTERMATCH_RXF3 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF3
MCP2515_FILTERMATCH_RXF4 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF4
MCP2515_FILTERMATCH_RXF5 = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF5
MCP2515_FILTERMATCH_RXF0_ROLLOVER = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF0_ROLLOVER
MCP2515_FILTERMATCH_RXF1_ROLLOVER = _pyupm_mcp2515.MCP2515_FILTERMATCH_RXF1_ROLLOVER
MCP2515_MSGTYPE_STD = _pyupm_mcp2515.MCP2515_MSGTYPE_STD
MCP2515_MSGTYPE_STDRF = _pyupm_mcp2515.MCP2515_MSGTYPE_STDRF
MCP2515_MSGTYPE_EXT = _pyupm_mcp2515.MCP2515_MSGTYPE_EXT
MCP2515_MSGTYPE_EXTRF = _pyupm_mcp2515.MCP2515_MSGTYPE_EXTRF
MCP2515_RXMSG_NONE = _pyupm_mcp2515.MCP2515_RXMSG_NONE
MCP2515_RXMSG_RXB0 = _pyupm_mcp2515.MCP2515_RXMSG_RXB0
MCP2515_RXMSG_RXB1 = _pyupm_mcp2515.MCP2515_RXMSG_RXB1
MCP2515_RXMSG_BOTH = _pyupm_mcp2515.MCP2515_RXMSG_BOTH
MCP2515_SIDL_EID16 = _pyupm_mcp2515.MCP2515_SIDL_EID16
MCP2515_SIDL_EID17 = _pyupm_mcp2515.MCP2515_SIDL_EID17
MCP2515_SIDL_EXIDE = _pyupm_mcp2515.MCP2515_SIDL_EXIDE
MCP2515_SIDL_SID0 = _pyupm_mcp2515.MCP2515_SIDL_SID0
MCP2515_SIDL_SID1 = _pyupm_mcp2515.MCP2515_SIDL_SID1
MCP2515_SIDL_SID2 = _pyupm_mcp2515.MCP2515_SIDL_SID2
MCP2515_TX_BUFFER0 = _pyupm_mcp2515.MCP2515_TX_BUFFER0
MCP2515_TX_BUFFER1 = _pyupm_mcp2515.MCP2515_TX_BUFFER1
MCP2515_TX_BUFFER2 = _pyupm_mcp2515.MCP2515_TX_BUFFER2
MCP2515_TX_NO_BUFFERS = _pyupm_mcp2515.MCP2515_TX_NO_BUFFERS
MCP2515_RX_BUFFER0 = _pyupm_mcp2515.MCP2515_RX_BUFFER0
MCP2515_RX_BUFFER1 = _pyupm_mcp2515.MCP2515_RX_BUFFER1
MCP2515_RX_FILTER0 = _pyupm_mcp2515.MCP2515_RX_FILTER0
MCP2515_RX_FILTER1 = _pyupm_mcp2515.MCP2515_RX_FILTER1
MCP2515_RX_FILTER2 = _pyupm_mcp2515.MCP2515_RX_FILTER2
MCP2515_RX_FILTER3 = _pyupm_mcp2515.MCP2515_RX_FILTER3
MCP2515_RX_FILTER4 = _pyupm_mcp2515.MCP2515_RX_FILTER4
MCP2515_RX_FILTER5 = _pyupm_mcp2515.MCP2515_RX_FILTER5
MCP2515_RX_MASK0 = _pyupm_mcp2515.MCP2515_RX_MASK0
MCP2515_RX_MASK1 = _pyupm_mcp2515.MCP2515_RX_MASK1
class MCP2515(_object):
    __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):
        this = _pyupm_mcp2515.new_MCP2515(bus, csPin)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515
    __del__ = lambda self: None

    def reset(self):
        return _pyupm_mcp2515.MCP2515_reset(self)

    def setOpmode(self, opmode):
        return _pyupm_mcp2515.MCP2515_setOpmode(self, opmode)

    def setSpeed(self, speed):
        return _pyupm_mcp2515.MCP2515_setSpeed(self, speed)

    def loadTXBuffer(self, bufnum, id, ext, rtr, payload):
        return _pyupm_mcp2515.MCP2515_loadTXBuffer(self, bufnum, id, ext, rtr, payload)

    def transmitBuffer(self, bufnum, wait):
        return _pyupm_mcp2515.MCP2515_transmitBuffer(self, bufnum, wait)

    def isTXBufferFree(self, bufnum):
        return _pyupm_mcp2515.MCP2515_isTXBufferFree(self, bufnum)

    def findFreeTXBuffer(self):
        return _pyupm_mcp2515.MCP2515_findFreeTXBuffer(self)

    def setTXBufferPriority(self, bufnum, priority):
        return _pyupm_mcp2515.MCP2515_setTXBufferPriority(self, bufnum, priority)

    def abortTX(self, bufnum):
        return _pyupm_mcp2515.MCP2515_abortTX(self, bufnum)

    def setRXBufferMode(self, bufnum, rxm):
        return _pyupm_mcp2515.MCP2515_setRXBufferMode(self, bufnum, rxm)

    def rxStatusMsgs(self):
        return _pyupm_mcp2515.MCP2515_rxStatusMsgs(self)

    def rxStatusMsgType(self):
        return _pyupm_mcp2515.MCP2515_rxStatusMsgType(self)

    def rxStatusFiltermatch(self):
        return _pyupm_mcp2515.MCP2515_rxStatusFiltermatch(self)

    def getRXMsg(self, bufnum):
        return _pyupm_mcp2515.MCP2515_getRXMsg(self, bufnum)

    def printMsg(self):
        return _pyupm_mcp2515.MCP2515_printMsg(self)

    def msgGetID(self):
        return _pyupm_mcp2515.MCP2515_msgGetID(self)

    def msgGetRTR(self):
        return _pyupm_mcp2515.MCP2515_msgGetRTR(self)

    def msgGetEXT(self):
        return _pyupm_mcp2515.MCP2515_msgGetEXT(self)

    def msgGetFilterNum(self):
        return _pyupm_mcp2515.MCP2515_msgGetFilterNum(self)

    def msgGetPayloadLen(self):
        return _pyupm_mcp2515.MCP2515_msgGetPayloadLen(self)

    def msgGetPayload(self):
        return _pyupm_mcp2515.MCP2515_msgGetPayload(self)

    def installISR(self, pin, isr, arg):
        return _pyupm_mcp2515.MCP2515_installISR(self, pin, isr, arg)

    def uninstallISR(self):
        return _pyupm_mcp2515.MCP2515_uninstallISR(self)

    def setIntrEnables(self, enables):
        return _pyupm_mcp2515.MCP2515_setIntrEnables(self, enables)

    def getIntrFlags(self):
        return _pyupm_mcp2515.MCP2515_getIntrFlags(self)

    def setIntrFlags(self, flags):
        return _pyupm_mcp2515.MCP2515_setIntrFlags(self, flags)

    def clearIntrFlags(self, flags):
        return _pyupm_mcp2515.MCP2515_clearIntrFlags(self, flags)

    def getErrorFlags(self):
        return _pyupm_mcp2515.MCP2515_getErrorFlags(self)

    def clearErrorFlags(self, flags):
        return _pyupm_mcp2515.MCP2515_clearErrorFlags(self, flags)

    def setFilter(self, filter, ext, id):
        return _pyupm_mcp2515.MCP2515_setFilter(self, filter, ext, id)

    def setMask(self, mask, ext, 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.


