#[repr(transparent)]pub struct Cppre(pub u32);Expand description
Pre-scale register
Tuple Fields§
§0: u32Implementations§
Source§impl Cppre
impl Cppre
Sourcepub const fn set_cppre_in(&mut self, val: u8)
pub const fn set_cppre_in(&mut self, val: u8)
co-processor scaling of input
Sourcepub const fn set_cppre_out(&mut self, val: u8)
pub const fn set_cppre_out(&mut self, val: u8)
co-processor fixed point output
Sourcepub const fn set_cppre_sat(&mut self, val: bool)
pub const fn set_cppre_sat(&mut self, val: bool)
1 : forces sub-32 bit saturation
Sourcepub const fn cppre_sat8(&self) -> bool
pub const fn cppre_sat8(&self) -> bool
0 = 8bits, 1 = 16bits
Sourcepub const fn set_cppre_sat8(&mut self, val: bool)
pub const fn set_cppre_sat8(&mut self, val: bool)
0 = 8bits, 1 = 16bits
Trait Implementations§
impl Copy for Cppre
impl Eq for Cppre
impl StructuralPartialEq for Cppre
Auto Trait Implementations§
impl Freeze for Cppre
impl RefUnwindSafe for Cppre
impl Send for Cppre
impl Sync for Cppre
impl Unpin for Cppre
impl UnwindSafe for Cppre
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