Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: STM32 Allow to modify the receiver filters from BufferedCan, CanRx, and BufferedCanRx #3733

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

tdittr
Copy link
Contributor

@tdittr tdittr commented Jan 7, 2025

I want to split up my CAN interface on my STM32 to handle sending and receiving in different tasks. However I also want to be able to change the receive filters while the peripheral is split. Currently the modify_filters method is only available on the combined struct. This PR also makes it available on BufferedCan, CanRx, and BufferedCanRx.

From what I could tell from the reference manual and implementation, the filter registers are only used from the MasterFilter struct. So I think it should be fine to make them also accessible from the split off Rx half, since there is still only one struct that can access them.

Copy link
Member

@Dirbaio Dirbaio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@Dirbaio Dirbaio added this pull request to the merge queue Jan 7, 2025
Merged via the queue into embassy-rs:main with commit 4790f8f Jan 7, 2025
10 checks passed
@tdittr tdittr deleted the stm32-can-rx-filters branch January 8, 2025 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants