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

onewire: Implement scan for multiple devices #139

Merged
merged 6 commits into from
Sep 28, 2022
Merged

onewire: Implement scan for multiple devices #139

merged 6 commits into from
Sep 28, 2022

Commits on Sep 27, 2022

  1. onewire: Implement scan for multiple devices

    The former `scan` command only worked with a single 1-wire device attached.
    However, the 1-wire bus is ment as a bus, so there might be several devices
    connected to the bus. In that case, there is a suggested bus scanning scheme
    (cf. https://www.maximintegrated.com/en/design/technical-documents/app-notes/1/187.html)
    that makes clever use of pull-down collisions that will occur in such a
    situation. This allows to scan for all devices by basically doing a tree
    search. (The algorithm avoids recursion by using a few house-keeping variables
    to keep search state while discovering all devices ROM addresses.)
    jbglaw committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    3261efb View commit details
    Browse the repository at this point in the history
  2. Reformat code

    The file was given to `astyle -t --style=linux --lineend=linux hydrabus_mode_onewire.c`.
    However, the crc constants array was left untouched to keep the commas aligned.
    jbglaw committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    2799fcd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    74a3033 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    52b2715 View commit details
    Browse the repository at this point in the history
  5. Another missed whitespace

    jbglaw committed Sep 27, 2022
    Configuration menu
    Copy the full SHA
    5fe82c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 28, 2022

  1. Fix missed variable rename

    jbglaw committed Sep 28, 2022
    Configuration menu
    Copy the full SHA
    263eba3 View commit details
    Browse the repository at this point in the history