Struct probe_rs_target::ChipFamily [−][src]
pub struct ChipFamily { pub name: String, pub manufacturer: Option<JEP106Code>, pub variants: Vec<Chip>, pub flash_algorithms: Vec<RawFlashAlgorithm>, pub core: CoreType, pub source: TargetDescriptionSource, }
Expand description
This describes a chip family with all its variants.
This struct is usually read from a target description file.
Fields
name: String
This is the name of the chip family in base form.
E.g. nRF52832
.
manufacturer: Option<JEP106Code>
The JEP106 code of the manufacturer.
variants: Vec<Chip>
This vector holds all the variants of the family.
flash_algorithms: Vec<RawFlashAlgorithm>
This vector holds all available algorithms.
core: CoreType
The name of the core type.
E.g. M0
or M4
.
source: TargetDescriptionSource
Source of the target description, used for diagnostics
Implementations
impl ChipFamily
[src]
impl ChipFamily
[src]pub fn algorithms(&self) -> &[RawFlashAlgorithm]
[src]
pub fn algorithms(&self) -> &[RawFlashAlgorithm]
[src]Get all flash algorithms for this family of chips.
pub fn get_algorithm(&self, name: impl AsRef<str>) -> Option<&RawFlashAlgorithm>
[src]
pub fn get_algorithm(&self, name: impl AsRef<str>) -> Option<&RawFlashAlgorithm>
[src]Try to find a RawFlashAlgorithm with a given name.
Trait Implementations
impl Clone for ChipFamily
[src]
impl Clone for ChipFamily
[src]fn clone(&self) -> ChipFamily
[src]
fn clone(&self) -> ChipFamily
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ChipFamily
[src]
impl Debug for ChipFamily
[src]impl<'de> Deserialize<'de> for ChipFamily
[src]
impl<'de> Deserialize<'de> for ChipFamily
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ChipFamily
[src]
impl Serialize for ChipFamily
[src]Auto Trait Implementations
impl RefUnwindSafe for ChipFamily
impl Send for ChipFamily
impl Sync for ChipFamily
impl Unpin for ChipFamily
impl UnwindSafe for ChipFamily
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,