# 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_mcp2515
else:
    import _pyupm_mcp2515

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_mcp2515.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_mcp2515.uint8Array_swiginit(self, _pyupm_mcp2515.new_uint8Array(nelements))
    __swig_destroy__ = _pyupm_mcp2515.delete_uint8Array

    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)

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

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

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


def new_floatp():
    return _pyupm_mcp2515.new_floatp()

def copy_floatp(value):
    return _pyupm_mcp2515.copy_floatp(value)

def delete_floatp(obj):
    return _pyupm_mcp2515.delete_floatp(obj)

def floatp_assign(obj, value):
    return _pyupm_mcp2515.floatp_assign(obj, value)

def floatp_value(obj):
    return _pyupm_mcp2515.floatp_value(obj)
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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    data = property(_pyupm_mcp2515.MCP2515_ID_T_data_get, _pyupm_mcp2515.MCP2515_ID_T_data_set)

    def __init__(self):
        _pyupm_mcp2515.MCP2515_ID_T_swiginit(self, _pyupm_mcp2515.new_MCP2515_ID_T())
    __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_ID_T

# Register MCP2515_ID_T in _pyupm_mcp2515:
_pyupm_mcp2515.MCP2515_ID_T_swigregister(MCP2515_ID_T)

class MCP2515_PKT_T(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    data = property(_pyupm_mcp2515.MCP2515_PKT_T_data_get, _pyupm_mcp2515.MCP2515_PKT_T_data_set)

    def __init__(self):
        _pyupm_mcp2515.MCP2515_PKT_T_swiginit(self, _pyupm_mcp2515.new_MCP2515_PKT_T())
    __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_PKT_T

# Register MCP2515_PKT_T in _pyupm_mcp2515:
_pyupm_mcp2515.MCP2515_PKT_T_swigregister(MCP2515_PKT_T)

class MCP2515_MSG_T(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    id = property(_pyupm_mcp2515.MCP2515_MSG_T_id_get, _pyupm_mcp2515.MCP2515_MSG_T_id_set)
    rtr = property(_pyupm_mcp2515.MCP2515_MSG_T_rtr_get, _pyupm_mcp2515.MCP2515_MSG_T_rtr_set)
    ext = property(_pyupm_mcp2515.MCP2515_MSG_T_ext_get, _pyupm_mcp2515.MCP2515_MSG_T_ext_set)
    filter_num = property(_pyupm_mcp2515.MCP2515_MSG_T_filter_num_get, _pyupm_mcp2515.MCP2515_MSG_T_filter_num_set)
    len = property(_pyupm_mcp2515.MCP2515_MSG_T_len_get, _pyupm_mcp2515.MCP2515_MSG_T_len_set)
    pkt = property(_pyupm_mcp2515.MCP2515_MSG_T_pkt_get, _pyupm_mcp2515.MCP2515_MSG_T_pkt_set)

    def __init__(self):
        _pyupm_mcp2515.MCP2515_MSG_T_swiginit(self, _pyupm_mcp2515.new_MCP2515_MSG_T())
    __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515_MSG_T

# Register MCP2515_MSG_T in _pyupm_mcp2515:
_pyupm_mcp2515.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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, bus, csPin):
        _pyupm_mcp2515.MCP2515_swiginit(self, _pyupm_mcp2515.new_MCP2515(bus, csPin))
    __swig_destroy__ = _pyupm_mcp2515.delete_MCP2515

    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)

# Register MCP2515 in _pyupm_mcp2515:
_pyupm_mcp2515.MCP2515_swigregister(MCP2515)



