embassy_stm32_plus/traits/adc/
mod.rs

1use embassy_stm32::adc::{Adc, Instance};
2
3/// adc trait
4pub trait AdcTrait: Instance {
5    /// create adc, more see [Adc::new]
6    fn build(self) -> Adc<'static, Self> {
7        Adc::new(self)
8    }
9}
10
11/// any adc support adc trait
12impl<T: Instance> AdcTrait for T {}