#[repr(transparent)]pub struct Cpsr(pub u32);
Expand description
Clock prescale register, SSPCPSR on page 3-8
Tuple Fields§
§0: u32
Implementations§
source§impl Cpsr
impl Cpsr
sourcepub const fn cpsdvsr(&self) -> u8
pub const fn cpsdvsr(&self) -> u8
Clock prescale divisor. Must be an even number from 2-254, depending on the frequency of SSPCLK. The least significant bit always returns zero on reads.
sourcepub fn set_cpsdvsr(&mut self, val: u8)
pub fn set_cpsdvsr(&mut self, val: u8)
Clock prescale divisor. Must be an even number from 2-254, depending on the frequency of SSPCLK. The least significant bit always returns zero on reads.
Trait Implementations§
impl Copy for Cpsr
impl Eq for Cpsr
impl StructuralPartialEq for Cpsr
Auto Trait Implementations§
impl Freeze for Cpsr
impl RefUnwindSafe for Cpsr
impl Send for Cpsr
impl Sync for Cpsr
impl Unpin for Cpsr
impl UnwindSafe for Cpsr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)