#[non_exhaustive]pub enum Family {
Imxrt1010,
Imxrt1015,
Imxrt1020,
Imxrt1040,
Imxrt1050,
Imxrt1060,
Imxrt1064,
Imxrt1160,
Imxrt1170,
Imxrt1180,
}Expand description
i.MX RT chip family.
Chip families are designed by reference manuals and produce categories.
Supply this to a RuntimeBuilder in order to check runtime configurations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Imxrt1010
Imxrt1015
Imxrt1020
Imxrt1040
Imxrt1050
Imxrt1060
Imxrt1064
Imxrt1160
Imxrt1170
Imxrt1180
Implementations§
Source§impl Family
impl Family
Sourcepub const fn flexram_bank_count(self) -> u32
pub const fn flexram_bank_count(self) -> u32
How many FlexRAM banks are available?
Sourcepub fn default_flexram_banks(self) -> FlexRamBanks
pub fn default_flexram_banks(self) -> FlexRamBanks
Returns the default FlexRAM bank allocations for this chip.
The default values represent the all-zero fuse values.
Sourcepub fn flexspi_start_addr(self, flexspi: FlexSpi) -> Option<u32>
pub fn flexspi_start_addr(self, flexspi: FlexSpi) -> Option<u32>
Returns the starting address for the given flexspi instance.
If a FlexSPI instance isn’t available for this family, the return
is None. Otherwise, the return is the starting address in the
MCU’s memory map.
use imxrt_rt::{Family::*, FlexSpi::*};
assert_eq!(Imxrt1060.flexspi_start_addr(FlexSpi1), Some(0x6000_0000));
assert!(Imxrt1010.flexspi_start_addr(FlexSpi2).is_none());Trait Implementations§
impl Copy for Family
impl Eq for Family
impl StructuralPartialEq for Family
Auto Trait Implementations§
impl Freeze for Family
impl RefUnwindSafe for Family
impl Send for Family
impl Sync for Family
impl Unpin for Family
impl UnwindSafe for Family
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