Enum stm32_hal2::sai::OversamplingRatio
source · [−]#[repr(u8)]
pub enum OversamplingRatio {
FMul256,
FMul512,
}
Expand description
Oversampling ratio for master clock. You may have to choose the one used by your SAI device. Sets xCR1 register, OSR field.
Variants
FMul256
Master clock frequency = F_FS x 256
FMul512
Master clock frequency = F_FS x 512
Trait Implementations
sourceimpl Clone for OversamplingRatio
impl Clone for OversamplingRatio
sourcefn clone(&self) -> OversamplingRatio
fn clone(&self) -> OversamplingRatio
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for OversamplingRatio
Auto Trait Implementations
impl RefUnwindSafe for OversamplingRatio
impl Send for OversamplingRatio
impl Sync for OversamplingRatio
impl Unpin for OversamplingRatio
impl UnwindSafe for OversamplingRatio
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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