#[repr(u32)]pub enum Frequency {
K125 = 33_554_432,
K250 = 67_108_864,
K500 = 134_217_728,
M1 = 268_435_456,
M2 = 536_870_912,
M4 = 1_073_741_824,
M8 = 2_147_483_648,
}
Expand description
An enum representing all allowable frequency
register values.
Variants§
K125 = 33_554_432
K250 = 67_108_864
K500 = 134_217_728
M1 = 268_435_456
M2 = 536_870_912
M4 = 1_073_741_824
M8 = 2_147_483_648
Implementations§
source§impl Frequency
impl Frequency
pub fn from_register(reg: u32) -> Option<Frequency>
pub fn into_spi_rate(&self) -> u32
pub fn from_spi_rate(freq: u32) -> Frequency
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnwindSafe for Frequency
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)