pub struct OneShot;Expand description
Type State for an Adc ready to be used for the embedded_hal::adc::OneShot trait.
To convert an Adc into that state, use Adc::into_oneshot.
§Note
This ensure the most efficient implementation for this trait and is inteded to be used, when passing the peripheral to drivers erxpecting that mode to be configured.
Nothing else can be done with the peripheral in that mode though. Converting
the peripheral back can be done via Adc::into_enabled.
Auto Trait Implementations§
impl Freeze for OneShot
impl RefUnwindSafe for OneShot
impl Send for OneShot
impl Sync for OneShot
impl Unpin for OneShot
impl UnwindSafe for OneShot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more