Struct rk3399_pac::DdrMon

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

DDR Monitor (DDR_MON) Registers

Implementations§

source§

impl DdrMon

source

pub const PTR: *const RegisterBlock = {0xff630000 as *const ddr_mon::RegisterBlock}

Pointer to the register block

source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

source

pub fn ip_version(&self) -> &IpVersion

0x00 - DDR Monitor IP Version

source

pub fn ctrl(&self) -> &Ctrl

0x04 - DDR Monitor Control Register

source

pub fn int_status(&self) -> &IntStatus

0x08 - Interrupt Status

source

pub fn int_mask(&self) -> &IntMask

0x0c - Interrupt mask control

source

pub fn timer_count(&self) -> &TimerCount

0x10 - The DFI Timer Threshold

source

pub fn floor_number(&self) -> &FloorNumber

0x14 - The Low Threshold in the Comparison of DDR Access

source

pub fn top_number(&self) -> &TopNumber

0x18 - The High Threshold in the Comparison of DDR Access

source

pub fn ch0_dfi_act_num(&self) -> &Ch0DfiActNum

0x1c - Channel 0 DFI Active Command Number

source

pub fn ch0_dfi_wr_num(&self) -> &Ch0DfiWrNum

0x20 - Channel 0 DFI write Command Number

source

pub fn ch0_dfi_rd_num(&self) -> &Ch0DfiRdNum

0x24 - Channel 0 DFI read Command Number

source

pub fn ch0_count_num(&self) -> &Ch0CountNum

0x28 - Channel 0 Timer Count Number

source

pub fn ch0_dfi_access_num(&self) -> &Ch0DfiAccessNum

0x2c - Channel 0 DFI Read and Write Command Number

source

pub fn ch1_dfi_act_num(&self) -> &Ch1DfiActNum

0x30 - Channel 1 DFI Active Command Number

source

pub fn ch1_dfi_wr_num(&self) -> &Ch1DfiWrNum

0x34 - Channel 1 DFI write Command Number

source

pub fn ch1_dfi_rd_num(&self) -> &Ch1DfiRdNum

0x38 - Channel 1 DFI read Command Number

source

pub fn ch1_count_num(&self) -> &Ch1CountNum

0x3c - Channel 1 Timer Count Number

source

pub fn ch1_dfi_access_num(&self) -> &Ch1DfiAccessNum

0x40 - Channel 1 DFI Read and Write Command Number

source

pub fn ddr_if_ctrl(&self) -> &DdrIfCtrl

0x200 - DDR interface Control Register

source

pub fn ch0_wr_start_addr(&self) -> &Ch0WrStartAddr

0x20c - Channel 0 Write Start Address

source

pub fn ch0_wr_end_addr(&self) -> &Ch0WrEndAddr

0x210 - Channel 0 Write End Address

source

pub fn ch0_rd_start_addr(&self) -> &Ch0RdStartAddr

0x214 - Channel 0 Read Start Address

source

pub fn ch0_rd_end_addr(&self) -> &Ch0RdEndAddr

0x218 - Channel 0 Read End Address

source

pub fn ch1_wr_start_addr(&self) -> &Ch1WrStartAddr

0x224 - Channel 1 Write Start Address

source

pub fn ch1_wr_end_addr(&self) -> &Ch1WrEndAddr

0x228 - Channel 1 Write End Address

source

pub fn ch1_rd_start_addr(&self) -> &Ch1RdStartAddr

0x22c - Channel 1 Read Start Address

source

pub fn ch1_rd_end_addr(&self) -> &Ch1RdEndAddr

0x230 - Channel 1 Read End Address

source

pub fn ch0_ddr_fifo0_addr(&self) -> &Ch0DdrFifo0Addr

0x240 - DDR Channel 0 Controller Interface Address FIFO0

source

pub fn ch0_ddr_fifo1_addr(&self) -> &Ch0DdrFifo1Addr

0x248 - DDR Channel 0 Controller Interface Address FIFO1

source

pub fn ch0_ddr_fifo2_addr(&self) -> &Ch0DdrFifo2Addr

0x250 - DDR Channel 0 Controller Interface Address FIFO2

source

pub fn ch0_ddr_fifo3_addr(&self) -> &Ch0DdrFifo3Addr

0x258 - DDR Channel 0 Controller Interface Address FIFO3

source

pub fn ch1_ddr_fifo0_addr(&self) -> &Ch1DdrFifo0Addr

0x260 - DDR Channel 1 Controller Interface Address FIFO0

source

pub fn ch1_ddr_fifo1_addr(&self) -> &Ch1DdrFifo1Addr

0x268 - DDR Channel 1 Controller Interface Address FIFO1

source

pub fn ch1_ddr_fifo2_addr(&self) -> &Ch1DdrFifo2Addr

0x270 - DDR Channel 1 Controller Interface Address FIFO2

source

pub fn ch1_ddr_fifo3_addr(&self) -> &Ch1DdrFifo3Addr

0x278 - DDR Channel 1 Controller Interface Address FIFO3

Trait Implementations§

source§

impl Debug for DdrMon

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Deref for DdrMon

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl Send for DdrMon

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

§

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

§

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.