|
piMCP2515
A library for controlling an MCP2515 on the Raspberry Pi and Raspberry Pi Pico
|
These functions handle filter functionality. More...
Functions | |
| int | mcp2515_filter (pi_mcp2515_t *pi_mcp2515, const mcp2515_rxf_t filter, const uint32_t id, const bool extended_id) |
| Set one of the filters specified by its register. | |
| int | mcp2515_filter_mask (pi_mcp2515_t *pi_mcp2515, const mcp2515_rxm_t filter_mask, const uint32_t id_mask, const bool extended_id) |
| Set the filter mask. The MCP2515 must be in config mode to use this (see mcp2515_reqop/mcp2515_reqop_get). | |
| int | mcp2515_filter_enable (pi_mcp2515_t *pi_mcp2515, const bool enable) |
| int | mcp2515_filter_enable_rxb (pi_mcp2515_t *pi_mcp2515, const mcp2515_rxb_t index, const bool enable) |
These functions handle filter functionality.
| int mcp2515_filter | ( | pi_mcp2515_t * | pi_mcp2515, |
| const mcp2515_rxf_t | filter, | ||
| const uint32_t | id, | ||
| const bool | extended_id ) |
Set one of the filters specified by its register.
The MCP2515 must be in config mode to use this (see mcp2515_reqop and mcp2515_reqop_get).
| pi_mcp2515 | the piMCP2515 handle. |
| filter | the filter to configure. |
| id | |
| extended_id |
| int mcp2515_filter_mask | ( | pi_mcp2515_t * | pi_mcp2515, |
| const mcp2515_rxm_t | filter_mask, | ||
| const uint32_t | id_mask, | ||
| const bool | extended_id ) |
Set the filter mask. The MCP2515 must be in config mode to use this (see mcp2515_reqop/mcp2515_reqop_get).
| pi_mcp2515 | the piMCP2515 handle. |
| filter_mask | the filter mask register to use. |
| id_mask | the ID mask to use. |
| extended_id | if the ID is extended. |