|
can_result_t | hal_can_init (can_handle_t *handle, const can_channel_attr_t attr) |
| Configure CAN channel with specific attributes.
|
|
can_result_t | hal_can_write (can_handle_t *handle, const uint32_t id, const can_frame_t frame, const uint8_t *tx_buffer, const size_t len) |
| Write data to CAN bus.
|
|
can_result_t | hal_can_read (can_handle_t *handle, uint32_t *id, can_frame_t *frame, uint8_t *rx_buffer, const size_t len) |
| Read data from CAN bus.
|
|
can_result_t | hal_can_stop (can_handle_t *handle) |
| Stop CAN bus operation.
|
|
can_result_t | hal_can_mutex_take (const uint8_t channel, const uint32_t timeout_ms) |
| Try acquire RTOS mutex for specified channel.
|
|
can_result_t | hal_can_mutex_give (const uint8_t channel) |
| Release RTOS mutex for specified channel.
|
|