Struct cortex_m::peripheral::CPUID

source ·
pub struct CPUID { /* private fields */ }
Expand description

CPUID

Implementations§

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.

Returns the number of sets and ways in the selected cache

Returns log2 of the number of words in the smallest cache line of all the data cache and unified caches that are controlled by the processor.

This is the DminLine field of the CTR register.

Returns log2 of the number of words in the smallest cache line of all the instruction caches that are controlled by the processor.

This is the IminLine field of the CTR register.

Pointer to the register block

👎Deprecated since 0.7.5: Use the associated constant PTR instead

Returns a pointer to the register block

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.

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 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.