81 void *buf, uint8_t len);
109 void *buf, uint8_t len);
Definition of the implementation of the CAN controller driver.
int mcp2515_spi_read(const candev_mcp2515_t *dev, uint8_t addr, uint8_t *buf, unsigned int len)
Read the register value corresponding to addr.
int mcp2515_spi_write_txbuf(const candev_mcp2515_t *dev, uint8_t mailbox, void *buf, uint8_t len)
Send the can data to the tx mailbox.
uint8_t mcp2515_spi_read_status(const candev_mcp2515_t *dev)
Read MCP2515 status over SPI interface.
int mcp2515_spi_reset(const candev_mcp2515_t *dev)
Reset MCP2515 device though SPI interface.
int mcp2515_spi_read_rxbuf(const candev_mcp2515_t *dev, uint8_t mailbox, void *buf, uint8_t len)
Read the can data received in the rx mailbox.
int mcp2515_spi_write(const candev_mcp2515_t *dev, uint8_t addr, uint8_t *buf, unsigned int len)
Send the register value corresponding to addr.
int mcp2515_spi_rts(const candev_mcp2515_t *dev, uint8_t mailbox)
Initiate message transmission.
int mcp2515_spi_init(const candev_mcp2515_t *dev)
Initialize SPI interface.
int mcp2515_spi_rx_status(const candev_mcp2515_t *dev)
Read MCP2515 receive status over SPI interface.
int mcp2515_spi_bitmod(const candev_mcp2515_t *dev, uint8_t addr, uint8_t mask, uint8_t buf)
Bit modify instruction.
MCP2515 device descriptor.