Skip to main content

Cache

Struct Cache 

Source
pub struct Cache { /* private fields */ }
Expand description

This is the CACHE Controller

Implementations§

Source§

impl Cache

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn mode(self) -> Reg<Mode, RW>

CACHE MODE register.

Source

pub const fn spi_bank(self) -> Reg<u32, RW>

CSPI Bank. This is ORed into the access address from the processor to create the address sent over to the SPI Flash.

Source

pub const fn tag_vldt(self) -> Reg<TagVldt, W>

CACHE TAG VALIDATE register.

Source

pub const fn tag_vldt_addr(self) -> Reg<u32, RW>

Tag Force Address. This is the address that will be stored in the Tag Line and accessed over SPI if a Tag Force is issued. This address is still used in conjunction with the Cache SPI Bank.This is meant to be an address from the processors perspective. 4 Byte Boundary aligned

Source

pub const fn sts(self) -> Reg<Sts, RW>

CACHE STATUS register

Source

pub const fn hit_hi(self) -> Reg<u32, RW>

Hit count Hi. Stores the Hit Count [63:32] of the Cache

Source

pub const fn hit_low(self) -> Reg<u32, RW>

Hit count low. Stores the Hit Count [31:0] of the Cache

Source

pub const fn miss_hi(self) -> Reg<u32, RW>

Miss count Hi. Stores the Miss Count [63:32] of the Cache

Source

pub const fn miss_low(self) -> Reg<u32, RW>

Miss count low. Stores the Miss Count [31:0] of the Cache

Source

pub const fn fill_hi(self) -> Reg<u32, RW>

Fill count Hi. Stores the Fill Count [63:32] of the Cache

Source

pub const fn fill_low(self) -> Reg<u32, RW>

Fill count low. Stores the Fill Count [31:0] of the Cache

Source

pub const fn rx_buffer(self, n: usize) -> Reg<u32, W>

Rx Buffer0.

Source

pub const fn tag_lock0(self) -> Reg<u32, RW>

Tag Lock0. 0: Tag is not Locked. 1: Tag is Locked.

Source

pub const fn tag_lock1(self) -> Reg<u32, RW>

Tag Lock1. 0: Tag is not Locked. 1: Tag is Locked.

Source

pub const fn tag_valid0(self) -> Reg<u32, R>

Tag Valid0. Tells Line has valid data in the cache. 0: Line is empty. 1: Line is full.

Source

pub const fn tag_valid1(self) -> Reg<u32, R>

Tag Valid1. Tells Line has valid data in the cache. 0: Line is empty. 1: Line is full.

Source

pub const fn tag_addr(self, n: usize) -> Reg<u32, R>

Tag Address0.

Trait Implementations§

Source§

impl Clone for Cache

Source§

fn clone(&self) -> Cache

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Cache

Source§

impl Eq for Cache

Source§

impl PartialEq for Cache

Source§

fn eq(&self, other: &Cache) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Send for Cache

Source§

impl StructuralPartialEq for Cache

Source§

impl Sync for Cache

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.