Open
Conversation
sabanekko3
reviewed
Jan 27, 2024
stm32/about_STM32_CAN.md
Outdated
| ### IDについて | ||
|
|
||
| IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。~~1700個以上機器を繋ぐなら別だけど~~ | ||
| IDは11bitの標準IDもしくは29bitの拡張IDを使用することができる。ロボコンでは標準IDで十二分だと思われます。拡張IDは動作確認が取れていないため非推奨です。 |
sabanekko3
reviewed
Jan 27, 2024
stm32/about_STM32_CAN.md
Outdated
| ((0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdHigh) << 16U) | | ||
| (0x0000FFFFU & (uint32_t)sFilterConfig->FilterIdLow); | ||
| ``` | ||
| **下位3ビットのことを考えていねえ!** |
Contributor
There was a problem hiding this comment.
この下位3bitをいじればリモートフレームだけ受け取ったりできると思う
Contributor
There was a problem hiding this comment.
確かにIDの部分だけ考えるなら面倒な処理になるけどフレームの種類もフィルタリングしたいなら必要だよねーという感じ
Contributor
Author
There was a problem hiding this comment.
確かにリファレンスマニュアル眺める感じでは、リモートフレームorデータフレームかの情報がここに置かれそうですね
Contributor
Author
There was a problem hiding this comment.
これ1個のフィルタバンクはリモートフレームかデータフレームかのどちらかしか受信しないという認識でよいのだろうか
Contributor
There was a problem hiding this comment.
マスクモードならマスクのRTRを0にしとけば両方受け取れるようになると思うけど
Contributor
Author
There was a problem hiding this comment.
これ標準IDor拡張IDもフィルタ出来そうですけどどうなんですかね?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CANの資料を書いていたことを思い出したので