|
Open Model Railroad Network (OpenMRN)
|
#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 |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
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.
Definition in file MCP2515Can.hxx.
| #define MCP2515_DEBUG 0 |
Definition at line 48 of file MCP2515Can.hxx.
| #define MCP2515_NULL_TX 0 |
Definition at line 49 of file MCP2515Can.hxx.