[][src]Struct probe_rs::config::ChipFamily

pub struct ChipFamily {
    pub name: Cow<'static, str>,
    pub manufacturer: Option<JEP106Code>,
    pub variants: Cow<'static, [Chip]>,
    pub flash_algorithms: Cow<'static, [RawFlashAlgorithm]>,
    pub core: Cow<'static, str>,
}

This describes a chip family with all its variants.

Fields

name: Cow<'static, str>

This is the name of the chip family in base form. E.g. nRF52832.

manufacturer: Option<JEP106Code>

The JEP106 code of the manufacturer.

variants: Cow<'static, [Chip]>

This vector holds all the variants of the family.

flash_algorithms: Cow<'static, [RawFlashAlgorithm]>

This vector holds all available algorithms.

core: Cow<'static, str>

The name of the core type. E.g. M0 or M4.

Implementations

impl ChipFamily[src]

pub fn from_yaml_reader<R: Read>(
    definition_reader: R
) -> Result<Self, TargetParseError>
[src]

pub fn variants(&self) -> &[Chip][src]

pub fn algorithms(&self) -> &[RawFlashAlgorithm][src]

pub fn get_algorithm(&self, name: impl AsRef<str>) -> Option<&RawFlashAlgorithm>[src]

Trait Implementations

impl Clone for ChipFamily[src]

impl Debug for ChipFamily[src]

impl<'de> Deserialize<'de> for ChipFamily[src]

impl Serialize for ChipFamily[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.