Enum stm32l0xx_hal::adc::Error
source · [−]pub enum Error {
AdcOverrun,
BufferOverrun,
}
Expand description
Represents an ADC error
Variants
AdcOverrun
Indicates that converted data was not read in time
This happens if either the user or the DMA (depending on mode) did not read the converted value before another one was ready.
BufferOverrun
Indicates that values in the internal buffer have been overwritten
This is not a critical error, as a circular buffer is used, and the DMA just keeps writing more values. It does mean that some values in the buffer were overwritten though.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more