Open Model Railroad Network (OpenMRN)
Loading...
Searching...
No Matches
MCP2515Can.hxx File Reference
#include <unistd.h>
#include <cstddef>
#include "Can.hxx"
#include "SPI.hxx"
#include "os/Gpio.hxx"
#include "os/OS.hxx"
#include "can_ioctl.h"

Go to the source code of this file.

Classes

class  MCP2515Can
 Specialization of CAN driver for Tiva CAN. More...
 
struct  MCP2515Can::Config1
 Configuration resgister 1 structure. More...
 
struct  MCP2515Can::Config2
 Configuration resgister 2 structure. More...
 
struct  MCP2515Can::Config3
 Configuration resgister 3 structure. More...
 
struct  MCP2515Can::MCP2515Baud
 Baud rate table entry. More...
 
class  MCP2515Can::Buffer
 CAN TX and RX buffer structure. More...
 
class  MCP2515Can::BufferRead
 Setup a buffer read transfer structure. More...
 
class  MCP2515Can::BufferWrite
 Setup a buffer read transfer structure. More...
 
class  MCP2515GPO
 General Purpose Output (GPO) instance on the MCP2515. More...
 
class  MCP2515GPI
 General Purpose Input (GPI) instance on the MCP2515. More...
 

Macros

#define MCP2515_DEBUG   0
 
#define MCP2515_NULL_TX   0
 

Detailed Description

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

This file implements the CAN driver for the MCP2515 CAN Controller.

Author
Stuart W. Baker
Date
3 January 2017

Definition in file MCP2515Can.hxx.

Macro Definition Documentation

◆ MCP2515_DEBUG

#define MCP2515_DEBUG   0

Definition at line 48 of file MCP2515Can.hxx.

◆ MCP2515_NULL_TX

#define MCP2515_NULL_TX   0

Definition at line 49 of file MCP2515Can.hxx.