-
Couldn't load subscription status.
- Fork 0
platform-independent and freestanding SPI-to-CAN library. (read-only mirror)
License
Couldn't load subscription status.
index-0/libmcp2515
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
libmcp2515 - MCP2515 CAN library ================================ A small, platform-independent C99 library for the MCP2515 CAN controller. Features -------- * Platform independent * Easy to port * Full error codes on every call * Tiny footprint * Freestanding Application Interface --------------------- * Setup - mcp2515_reset: Reset device - mcp2515_config: Set bit timing - mcp2515_mode: Change operation mode * Transfer - mcp2515_tx: Transmit a frame - mcp2515_rx: Receive a frame * Filter - mcp2515_filter: Configure filter - mcp2515_mask: Configure mask * Utility - mcp2515_prep_cnf1: Compute config value 1 - mcp2515_prep_cnf2: Compute config value 2 - mcp2515_prep_cnf3: Compute config value 3 SPI Interface ------------- This interface must be implemented by the user for their target platform. * Register Access - mcp2515_spi_write: Write one byte to a register - mcp2515_spi_write_buf: Write multiple bytes starting at a register - mcp2515_spi_read: Read one byte from a register - mcp2515_spi_read_buf: Read multiple bytes starting at a register - mcp2515_spi_bitmod: Bit-modify a register * Transfer - mcp2515_spi_load_tx_buf: Load transmit buffer - mcp2515_spi_rts: Request to send - mcp2515_spi_read_rx_buf: Read receive buffer * Status Queries - mcp2515_spi_status: Read status - mcp2515_spi_rx_status: Read RX status * Reset - mcp2515_spi_reset: Send reset command Ports ----- The `port` directory contains platform-specific SPI backends and build systems. * esp-idf * libfe310 License ------- See LICENSE file for copyright and license details.
About
platform-independent and freestanding SPI-to-CAN library. (read-only mirror)