We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I would like to read internal Vref channel using DMA but seems currently I cannot enable aux channels on ADC1 via API.
Vref
As a workaround I used dirty hack to get access to ADC1 registers and enable it:
ADC1
unsafe { &*(&adc as *const _ as *const ADC1) }.cr2.modify(|_, w| w.tsvrefe().set_bit());
As a simple solution I could add functions for testing and changing corresponding bit like the following:
impl Adc<ADC1> { pub fn aux_enabled(&self) -> bool; pub fn enable_aux(&mut self); pub fn disable_aux(&mut self); }
Have anybody any suggestions about API design?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like to read internal
Vref
channel using DMA but seems currently I cannot enable aux channels on ADC1 via API.As a workaround I used dirty hack to get access to
ADC1
registers and enable it:As a simple solution I could add functions for testing and changing corresponding bit like the following:
Have anybody any suggestions about API design?
The text was updated successfully, but these errors were encountered: