Struct cortex_m::peripheral::CPUID [] [src]

#[repr(C)]
pub struct CPUID { pub base: RO<u32>, pub pfr: [RO<u32>; 2], pub dfr: RO<u32>, pub afr: RO<u32>, pub mmfr: [RO<u32>; 4], pub isar: [RO<u32>; 5], pub clidr: RO<u32>, pub ctr: RO<u32>, pub ccsidr: RO<u32>, pub csselr: RW<u32>, // some fields omitted }

CPUID register block

Fields

CPUID base

Processor Feature

Debug Feature

Auxiliary Feature

Memory Model Feature

Instruction Set Attribute

Cache Level ID

Cache Type

Cache Size ID

Cache Size Selection

Methods

impl CPUID
[src]

[src]

Selects the current CCSIDR

  • level: the required cache level minus 1, e.g. 0 for L1, 1 for L2
  • ind: select instruction cache or data/unified cache

level is masked to be between 0 and 7.

[src]

Returns the number of sets and ways in the selected cache