Skip to content

How to obtain frame id and data in a TWAI EspTwaiFrame? #3059

Closed Answered by MabezDev
aidengk-iris asked this question in Q&A
Discussion options

You must be logged in to vote

We should probably have some inherent methods on the frame itself, but you can get the ID and data from the embedded-can trait which it implements: https://docs.esp-rs.org/esp-hal/esp-hal/0.23.1/esp32c6/esp_hal/twai/struct.EspTwaiFrame.html#impl-Frame-for-EspTwaiFrame

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aidengk-iris
Comment options

Answer selected by aidengk-iris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants