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

SNS - ADC Mux #41

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

SNS - ADC Mux #41

wants to merge 2 commits into from

Conversation

Vlad118
Copy link

@Vlad118 Vlad118 commented Oct 29, 2024

No description provided.

Copy link

linear bot commented Oct 29, 2024

Copy link
Collaborator

@davidbeechey davidbeechey left a comment

Choose a reason for hiding this comment

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

Looks good, would be good to have a function for just reading a single channel of the mux. To do so it'd be best to have the channel addresses as an enum, so that'll require modification to the read_data function too.

Edit: actually, it would be really good if we had something like AdcMuxChannel which implemented the HypedAdc trait from PR #41. That would mean we don't need to care whether an ADC sensor is plugged into the ADC on the ST board or into the mux, the sensor can just use anything that implements HypedAdc. It would need to take in a shared I2C instance (using Mutex like in the I2C mux PR #14), the mux address and the channel address.

@davidbeechey davidbeechey changed the title SNS - ADC Mux (HYPE-29) SNS - ADC Mux Oct 31, 2024
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.

2 participants