make AdcChannel required for InternalChannel

This commit is contained in:
Univa 2024-05-21 19:08:01 -04:00
parent ddbb6c8c31
commit 41e11d86b9

View File

@ -128,7 +128,7 @@ pub trait Instance: SealedInstance + crate::Peripheral<P = Self> + crate::rcc::R
pub trait AdcPin<T: Instance>: AdcChannel<T> + SealedAdcPin<T> {} pub trait AdcPin<T: Instance>: AdcChannel<T> + SealedAdcPin<T> {}
/// ADC internal channel. /// ADC internal channel.
#[allow(private_bounds)] #[allow(private_bounds)]
pub trait InternalChannel<T>: SealedInternalChannel<T> {} pub trait InternalChannel<T>: AdcChannel<T> + SealedInternalChannel<T> {}
/// ADC channel. /// ADC channel.
#[allow(private_bounds)] #[allow(private_bounds)]
pub trait AdcChannel<T>: SealedAdcChannel<T> + Sized { pub trait AdcChannel<T>: SealedAdcChannel<T> + Sized {