Enum embassy_nrf::spim::Frequency
source ยท #[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
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
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 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> CheckedAs for T
impl<T> CheckedAs for T
sourceยงfn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
sourceยงfn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
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
)sourceยงimpl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
sourceยงfn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceยงimpl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
sourceยงfn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceยงimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourceยงfn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
sourceยงfn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceยงimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourceยงfn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
sourceยงfn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceยงimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourceยงfn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
sourceยงfn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourceยงimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourceยงfn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
sourceยงimpl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
sourceยงfn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.