Skip to content

These module docs are in beta and may be incomplete.

modm:driver:mcp2515: MPC2515 External CAN Controller

Options

clock

Used clock for the MCP2515. The device configuration is selected according to the clock speed.: 16MHz{ 16MHz, 20MHz }

Content

// Class
class modm::CanBitTimingMcp2515< int32_t Clk, int32_t Bitrate >;
class modm::Mcp2515< typename SPI , typename CS , typename INT  >;

// Struct
struct modm::CanBitTimingMcp2515::CanBitTimingConfiguration;

// Enum
enum BFPCTRL;
enum CANCTRL;
enum CANINTE;
enum CANINTF;
enum CANSTAT;
enum CNF1;
enum CNF2;
enum CNF3;
enum EFLG;
enum RXB0CTRL;
enum RXB1CTRL;
enum RXBnDLC;
enum RXBnSIDL;
enum Register;
enum RxStatus;
enum Status;
enum TXBnCTRL;
enum TXBnSIDL;
enum TXRTSCTRL;

// Define
#define MCP2515_FILTER(id)
#define MCP2515_FILTER_EXTENDED(id)
#define MCP2515_MASK(id)
#define MCP2515_MASK_EXTENDED(id)

Dependencies

modm:driver:mcp2515 modm_driver_mcp2515 modm: driver: mcp2515 modm_architecture_accessor modm: architecture: accessor modm_driver_mcp2515->modm_architecture_accessor modm_architecture_assert modm: architecture: assert modm_driver_mcp2515->modm_architecture_assert modm_architecture_can modm: architecture: can modm_driver_mcp2515->modm_architecture_can modm_architecture_clock modm: architecture: clock modm_driver_mcp2515->modm_architecture_clock modm_architecture_delay modm: architecture: delay modm_driver_mcp2515->modm_architecture_delay modm_debug modm: debug modm_driver_mcp2515->modm_debug modm_driver modm: driver modm_driver_mcp2515->modm_driver