Skip to content

SNS - ADC Mux#41

Open
Vlad118 wants to merge 23 commits into
mainfrom
hype-29-implement-adc-mux
Open

SNS - ADC Mux#41
Vlad118 wants to merge 23 commits into
mainfrom
hype-29-implement-adc-mux

Conversation

@Vlad118

@Vlad118 Vlad118 commented Oct 29, 2024

Copy link
Copy Markdown

No description provided.

@linear

linear Bot commented Oct 29, 2024

Copy link
Copy Markdown

@davidbeechey davidbeechey left a comment

Copy link
Copy Markdown
Collaborator

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

@davidbeechey davidbeechey left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Few changes needed + update the comments accordingly

Comment thread lib/io/src/adc_mux.rs Outdated
Comment thread lib/io/src/adc_mux.rs Outdated
Comment thread boards/stm32l476rg/src/io.rs Outdated
Co-authored-by: David Beechey <david@dtbeechey.dev>
@davidbeechey davidbeechey added the needs testing Needs testing in the lab before merging label Nov 16, 2024
@davidbeechey davidbeechey added the needs reviews Needs reviews, otherwise finished label Nov 17, 2024

@TomLonergan03 TomLonergan03 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you might need to make some changes in this depending what happens with #49

@davidbeechey davidbeechey removed the needs reviews Needs reviews, otherwise finished label Nov 21, 2024
@davidbeechey davidbeechey added the blocked Something else is blocking progress label Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Something else is blocking progress needs testing Needs testing in the lab before merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants