|
piMCP2515
A library for controlling an MCP2515 on the Raspberry Pi and Raspberry Pi Pico
|
These functions handle CAN bus functionality. More...
Functions | |
| int | mcp2515_can_message_send (pi_mcp2515_t *pi_mcp2515, const pi_mcp2515_can_frame_t *can_frame) |
| Send a CAN bus message. | |
| int | mcp2515_can_message_read (pi_mcp2515_t *pi_mcp2515, pi_mcp2515_can_frame_t *can_frame) |
| Read a CAN bus message. | |
| int | mcp2515_can_message_read_rxb (pi_mcp2515_t *pi_mcp2515, mcp2515_rxb_t rxb, pi_mcp2515_can_frame_t *can_frame) |
| bool | mcp2515_can_message_received (pi_mcp2515_t *pi_mcp2515) |
| Check if there is a CAN bus message received. | |
These functions handle CAN bus functionality.
| int mcp2515_can_message_read | ( | pi_mcp2515_t * | pi_mcp2515, |
| pi_mcp2515_can_frame_t * | can_frame ) |
Read a CAN bus message.
| pi_mcp2515 | the piMCP2515 handle. |
| can_frame | a pointer to the structure to store the received CAN bus frame. |
| bool mcp2515_can_message_received | ( | pi_mcp2515_t * | pi_mcp2515 | ) |
Check if there is a CAN bus message received.
The message can then be read with mcp2515_can_message_read.
| pi_mcp2515 | the piMCP2515 handle. |
| int mcp2515_can_message_send | ( | pi_mcp2515_t * | pi_mcp2515, |
| const pi_mcp2515_can_frame_t * | can_frame ) |
Send a CAN bus message.
| pi_mcp2515 | the piMCP2515 handle. |
| can_frame | the CAN bus frame to send. |