Definition of the implementation of the CAN controller driver. More...
Definition of the implementation of the CAN controller driver.
Definition in file candev_mcp2515.h.
#include <stdbool.h>
#include "can/candev.h"
#include "cpu_conf.h"
#include "periph/gpio.h"
#include "periph/spi.h"
#include "mutex.h"
#include "xtimer.h"
Go to the source code of this file.
Data Structures | |
struct | candev_mcp2515_conf |
MCP2515 configuration descriptor. More... | |
struct | candev_mcp2515 |
MCP2515 device descriptor. More... | |
Macros | |
#define | CANDEV_MCP2515_DEFAULT_BITRATE 125000 |
Default CAN bitrate. | |
#define | CANDEV_MCP2515_DEFAULT_SPT 875 |
Default sampling point setup. | |
#define | MCP2515_TX_MAILBOXES 3 |
Number of transmit mailboxes. | |
Typedefs | |
typedef struct candev_mcp2515 | candev_mcp2515_t |
MCP2515 candev descriptor. | |
typedef struct candev_mcp2515_conf | candev_mcp2515_conf_t |
MCP2515 configuration descriptor. | |
Functions | |
void | candev_mcp2515_init (candev_mcp2515_t *dev, const candev_mcp2515_conf_t *conf) |
Initialize a mcp2515 device by assigning a timing and an SPI configuration conf . More... | |