Enum stm32_metapac::cordic::vals::Scale
#[repr(u8)]pub enum Scale {
A1_R1 = 0,
A1O2_R2 = 1,
A1O4_R4 = 2,
A1O8_R8 = 3,
A1O16_R16 = 4,
A1O32_R32 = 5,
A1O64_R64 = 6,
A1O128_R128 = 7,
}
Variants§
A1_R1 = 0
Argument multiplied by 1, result multiplied by 1
A1O2_R2 = 1
Argument multiplied by 1/2, result multiplied by 2
A1O4_R4 = 2
Argument multiplied by 1/4, result multiplied by 4
A1O8_R8 = 3
Argument multiplied by 1/8, result multiplied by 8
A1O16_R16 = 4
Argument multiplied by 1/16, result multiplied by 16
A1O32_R32 = 5
Argument multiplied by 1/32, result multiplied by 32
A1O64_R64 = 6
Argument multiplied by 1/64, result multiplied by 64
A1O128_R128 = 7
Argument multiplied by 1/128, result multiplied by 128
Implementations§
Trait Implementations§
§impl Ord for Scale
impl Ord for Scale
§impl PartialOrd for Scale
impl PartialOrd for Scale
§fn partial_cmp(&self, other: &Scale) -> Option<Ordering>
fn partial_cmp(&self, other: &Scale) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Scale
impl Eq for Scale
impl StructuralEq for Scale
impl StructuralPartialEq for Scale
Auto Trait Implementations§
impl RefUnwindSafe for Scale
impl Send for Scale
impl Sync for Scale
impl Unpin for Scale
impl UnwindSafe for Scale
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