Enum nrf52840_pac::spim0::frequency::FREQUENCY_A
source · #[repr(u32)]pub enum FREQUENCY_A {
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,
M16 = 167_772_160,
M32 = 335_544_320,
}
Expand description
SPI master data rate
Value on reset: 67108864
Variants§
K125 = 33_554_432
33554432: 125 kbps
K250 = 67_108_864
67108864: 250 kbps
K500 = 134_217_728
134217728: 500 kbps
M1 = 268_435_456
268435456: 1 Mbps
M2 = 536_870_912
536870912: 2 Mbps
M4 = 1_073_741_824
1073741824: 4 Mbps
M8 = 2_147_483_648
2147483648: 8 Mbps
M16 = 167_772_160
167772160: 16 Mbps
M32 = 335_544_320
335544320: 32 Mbps
Trait Implementations§
source§impl Clone for FREQUENCY_A
impl Clone for FREQUENCY_A
source§fn clone(&self) -> FREQUENCY_A
fn clone(&self) -> FREQUENCY_A
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FREQUENCY_A
impl Debug for FREQUENCY_A
source§impl From<FREQUENCY_A> for u32
impl From<FREQUENCY_A> for u32
source§fn from(variant: FREQUENCY_A) -> Self
fn from(variant: FREQUENCY_A) -> Self
Converts to this type from the input type.
source§impl PartialEq for FREQUENCY_A
impl PartialEq for FREQUENCY_A
impl Copy for FREQUENCY_A
impl StructuralPartialEq for FREQUENCY_A
Auto Trait Implementations§
impl Freeze for FREQUENCY_A
impl RefUnwindSafe for FREQUENCY_A
impl Send for FREQUENCY_A
impl Sync for FREQUENCY_A
impl Unpin for FREQUENCY_A
impl UnwindSafe for FREQUENCY_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
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
)