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

stm32/usart: configurable readback for half-duplex to support 1-wire + ds18b20 example #3679

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

trnila
Copy link
Contributor

@trnila trnila commented Dec 22, 2024

The 1-Wire bus requires the ability to read data while transmission is in progress to detect if a sensor pulls the bus to a low level (logic 0).
This pull request adds a new enum HalfDuplexReadback with Readback variant that keeps receiver enabled during transmission. Half duplex can be newly created with BufferedUart (#3278). A simplified example, based on the RP example, has been added to demonstrate how to use this feature with the DS18B20 temperature sensor.

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