Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Make termination u16 and add set_termination#64

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpagliughi merged 2 commits intosocketcan-rs:masterfrompoeschel:termination
Apr 10, 2024

Conversation

poeschel
Copy link
Contributor

This fixestermination in the user facing api to be anu16 like it is in the kernel and then adds a set_termination function to set the internal termination resistor, for can interfaces that support it.

As the linux kernel stores (and transmits) can termination as an u16, weshould give that out to users as u16 also.https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/linux/can/dev.h?h=v6.9-rc2#n63Otherwise bad things can happen. It was an u32 previously.
Add a set_termination function to CanInterface, so one is able to setinternal termination resistor on interfaces, that support this.
Copy link
Collaborator

@fpagliughifpagliughi left a comment

Choose a reason for hiding this comment

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

LGTM

@fpagliughifpagliughi merged commita2f9427 intosocketcan-rs:masterApr 10, 2024
@fpagliughi
Copy link
Collaborator

Thanks for the PR!

@poeschelpoeschel deleted the termination branchSeptember 17, 2024 06:58
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fpagliughifpagliughifpagliughi approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@poeschel@fpagliughi

[8]ページ先頭

©2009-2025 Movatter.jp