pub struct Chip {
    pub name: String,
    pub part: Option<u16>,
    pub cores: Vec<Core>,
    pub memory_map: Vec<MemoryRegion>,
    pub flash_algorithms: Vec<String>,
}
Expand description

A single chip variant.

This describes an exact chip variant, including the cores, flash and memory size. For example, the nRF52832 chip has two variants, nRF52832_xxAA and nRF52832_xxBB. For this case, the struct will correspond to one of the variants, e.g. nRF52832_xxAA.

Fields

name: String

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

part: Option<u16>

The PART register of the chip. This value can be determined via the cli info command.

cores: Vec<Core>

The cores available on the chip.

memory_map: Vec<MemoryRegion>

The memory regions available on the chip.

flash_algorithms: Vec<String>

Names of all flash algorithms available for this chip.

This can be used to look up the flash algorithm in the ChipFamily::flash_algorithms field.

Implementations

Create a generic chip with the given name, a single core, and no flash algorithm or memory map. Used to create generic targets.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.