#[repr(u8)]pub enum SCALE_A {
VALUE1 = 0,
VALUE2 = 1,
VALUE3 = 2,
VALUE4 = 3,
VALUE5 = 4,
VALUE6 = 5,
VALUE7 = 6,
VALUE8 = 7,
}
Expand description
Scale value for up- or downscale of the DAC1 input data in steps by the power of 2 (=shift operation)
Value on reset: 0
Variants§
VALUE1 = 0
0: no shift = multiplication/division by 1
VALUE2 = 1
1: shift by 1 = multiplication/division by 2
VALUE3 = 2
2: shift by 2 = multiplication/division by 4
VALUE4 = 3
3: shift left by 3 = multiplication/division by 8
VALUE5 = 4
4: shift left by 4 = multiplication/division by 16
VALUE6 = 5
5: shift left by 5 = multiplication/division by 32
VALUE7 = 6
6: shift left by 6 = multiplication/division by 64
VALUE8 = 7
7: shift left by 7 = multiplication/division by 128
Trait Implementations§
source§impl PartialEq for SCALE_A
impl PartialEq for SCALE_A
impl Copy for SCALE_A
impl Eq for SCALE_A
impl IsEnum for SCALE_A
impl StructuralPartialEq for SCALE_A
Auto Trait Implementations§
impl Freeze for SCALE_A
impl RefUnwindSafe for SCALE_A
impl Send for SCALE_A
impl Sync for SCALE_A
impl Unpin for SCALE_A
impl UnwindSafe for SCALE_A
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