pub enum CortexMVariant {
M3,
M4,
M4F,
M7,
M7DP,
M33,
M55,
}Expand description
ARM Cortex-M variants
Variants§
M3
Cortex-M3 (ARMv7-M)
M4
Cortex-M4 (ARMv7E-M)
M4F
Cortex-M4F (with FPU)
M7
Cortex-M7 (ARMv7E-M, high performance)
M7DP
Cortex-M7 with double-precision FPU
M33
Cortex-M33 (ARMv8-M Mainline with TrustZone)
M55
Cortex-M55 (ARMv8.1-M with Helium MVE)
Implementations§
Source§impl CortexMVariant
impl CortexMVariant
Sourcepub fn has_dsp(&self) -> bool
pub fn has_dsp(&self) -> bool
Returns whether this variant supports DSP instructions (SSAT, USAT, SMLAL, etc.) Only ARMv7E-M (Cortex-M4+) and above have DSP extensions.
Sourcepub fn has_single_precision_fpu(&self) -> bool
pub fn has_single_precision_fpu(&self) -> bool
Returns whether this variant has a single-precision FPU
Sourcepub fn has_double_precision_fpu(&self) -> bool
pub fn has_double_precision_fpu(&self) -> bool
Returns whether this variant has a double-precision FPU
Sourcepub fn has_trustzone(&self) -> bool
pub fn has_trustzone(&self) -> bool
Returns whether this variant supports TrustZone security extensions
Sourcepub fn has_helium(&self) -> bool
pub fn has_helium(&self) -> bool
Returns whether this variant supports Helium MVE (M-Profile Vector Extension)
Trait Implementations§
Source§impl Clone for CortexMVariant
impl Clone for CortexMVariant
Source§fn clone(&self) -> CortexMVariant
fn clone(&self) -> CortexMVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CortexMVariant
impl Debug for CortexMVariant
Source§impl<'de> Deserialize<'de> for CortexMVariant
impl<'de> Deserialize<'de> for CortexMVariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CortexMVariant
impl PartialEq for CortexMVariant
Source§fn eq(&self, other: &CortexMVariant) -> bool
fn eq(&self, other: &CortexMVariant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CortexMVariant
impl Serialize for CortexMVariant
impl Eq for CortexMVariant
impl StructuralPartialEq for CortexMVariant
Auto Trait Implementations§
impl Freeze for CortexMVariant
impl RefUnwindSafe for CortexMVariant
impl Send for CortexMVariant
impl Sync for CortexMVariant
impl Unpin for CortexMVariant
impl UnsafeUnpin for CortexMVariant
impl UnwindSafe for CortexMVariant
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.