Skip to content

Support a "silent mode" with no "gpio_tx" line#82

Open
KevinOConnor wants to merge 1 commit intomasterfrom
work-monitor-mode-20260226
Open

Support a "silent mode" with no "gpio_tx" line#82
KevinOConnor wants to merge 1 commit intomasterfrom
work-monitor-mode-20260226

Conversation

@KevinOConnor
Copy link
Owner

@KevinOConnor KevinOConnor commented Feb 26, 2026

This PR makes it possible to call can2040_start() with gpio_tx=-1 . In this situation, the gpio_tx pin will not be configured and it will not be possible to transmit messages.

It should still be possible to receive messages however. This may be useful to implement a "silent mode" (aka "listen only" mode).

I don't immediately have a good setup to test this, so it would be great if others would be able to check if it behaves as expected.

Cheers,
-Kevin

Allow users to call can2040_start() with gpio_tx=-1 .  In this
situation, the gpio_tx pin will not be configured and it will not be
possible to transmit messages.  It should still be possible to receive
messages however.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
@KevinOConnor KevinOConnor force-pushed the work-monitor-mode-20260226 branch from e2fc27f to 2988d4f Compare February 26, 2026 17:56
@KevinOConnor KevinOConnor changed the title Support a "monitor mode" with no "gpio_tx" line Support a "silent mode" with no "gpio_tx" line Feb 26, 2026
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.

1 participant