Skip to main content

load

Function load 

Source
pub fn load(chip: &str) -> Result<ChipDatabase, DataError>
Expand description

Resolves and parses the chip-family database for a chip part number.

The lookup is a case-insensitive prefix match: stm32mp257fak3 resolves to the stm32mp25 family. Common i.MX aliases (imx95, imx93) are accepted in addition to the canonical mimx* names.

ยงErrors

Returns DataError::UnknownChip if no family matches, or DataError::DatabaseParse if the bundled YAML fails to deserialize.