Struct rk3399_pac::Rga2
source · pub struct Rga2 { /* private fields */ }
Expand description
Rockchip Graphics Accelerator 2 (RGA2) Registers
Implementations§
source§impl Rga2
impl Rga2
sourcepub const PTR: *const RegisterBlock = {0xff680000 as *const rga2::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff680000 as *const rga2::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
sourcepub unsafe fn steal() -> Self
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>§
sourcepub fn mmu_cmd_base(&self) -> &MmuCmdBase
pub fn mmu_cmd_base(&self) -> &MmuCmdBase
0x18 - Register0000 Abstract
sourcepub fn version_info(&self) -> &VersionInfo
pub fn version_info(&self) -> &VersionInfo
0x28 - Version number for rga
sourcepub fn perf_latency_ctrl0(&self) -> &PerfLatencyCtrl0
pub fn perf_latency_ctrl0(&self) -> &PerfLatencyCtrl0
0x40 - Axi performance latency module contrl register0
sourcepub fn perf_latency_ctrl1(&self) -> &PerfLatencyCtrl1
pub fn perf_latency_ctrl1(&self) -> &PerfLatencyCtrl1
0x44 - PERF_LATENCY_CTRL1
sourcepub fn perf_rd_max_latency_num0(&self) -> &PerfRdMaxLatencyNum0
pub fn perf_rd_max_latency_num0(&self) -> &PerfRdMaxLatencyNum0
0x48 - Read max latency number
sourcepub fn perf_rd_latency_samp_num(&self) -> &PerfRdLatencySampNum
pub fn perf_rd_latency_samp_num(&self) -> &PerfRdLatencySampNum
0x4c - The number of bigger than configed threshold value
sourcepub fn perf_rd_latency_acc_sum(&self) -> &PerfRdLatencyAccSum
pub fn perf_rd_latency_acc_sum(&self) -> &PerfRdLatencyAccSum
0x50 - Total sample number
sourcepub fn perf_rd_axi_total_byte(&self) -> &PerfRdAxiTotalByte
pub fn perf_rd_axi_total_byte(&self) -> &PerfRdAxiTotalByte
0x54 - perf_rd_axi_total_byte
sourcepub fn perf_wr_axi_total_byte(&self) -> &PerfWrAxiTotalByte
pub fn perf_wr_axi_total_byte(&self) -> &PerfWrAxiTotalByte
0x58 - perf_wr_axi_total_byte
sourcepub fn perf_working_cnt(&self) -> &PerfWorkingCnt
pub fn perf_working_cnt(&self) -> &PerfWorkingCnt
0x5c - perf_working_cnt
sourcepub fn src_vir_info(&self) -> &SrcVirInfo
pub fn src_vir_info(&self) -> &SrcVirInfo
0x118 - RGA source image virtual stride / RGA source image tile number
sourcepub fn src_act_info(&self) -> &SrcActInfo
pub fn src_act_info(&self) -> &SrcActInfo
0x11c - RGA source image active width/height register
sourcepub fn src_x_factor(&self) -> &SrcXFactor
pub fn src_x_factor(&self) -> &SrcXFactor
0x120 - RGA source image horizontal scaling factor
sourcepub fn src_y_factor(&self) -> &SrcYFactor
pub fn src_y_factor(&self) -> &SrcYFactor
0x124 - RGA source image vertical scaling factor
sourcepub fn src_bg_color(&self) -> &SrcBgColor
pub fn src_bg_color(&self) -> &SrcBgColor
0x128 - RGA source image background color
sourcepub fn src_fg_color(&self) -> &SrcFgColor
pub fn src_fg_color(&self) -> &SrcFgColor
0x12c - RGA source image foreground color
sourcepub fn src_tr_color0(&self) -> &SrcTrColor0
pub fn src_tr_color0(&self) -> &SrcTrColor0
0x130 - RGA source image transparency color min value
sourcepub fn src_tr_color1(&self) -> &SrcTrColor1
pub fn src_tr_color1(&self) -> &SrcTrColor1
0x134 - Register0000 Abstract
sourcepub fn dst_vir_info(&self) -> &DstVirInfo
pub fn dst_vir_info(&self) -> &DstVirInfo
0x148 - RGA destination image virtual width/height register
sourcepub fn dst_act_info(&self) -> &DstActInfo
pub fn dst_act_info(&self) -> &DstActInfo
0x14c - RGA destination image active width/height register
sourcepub fn alpha_ctrl0(&self) -> &AlphaCtrl0
pub fn alpha_ctrl0(&self) -> &AlphaCtrl0
0x150 - Alpha control register 0
sourcepub fn alpha_ctrl1(&self) -> &AlphaCtrl1
pub fn alpha_ctrl1(&self) -> &AlphaCtrl1
0x154 - Register0000 Abstract
sourcepub fn fading_ctrl(&self) -> &FadingCtrl
pub fn fading_ctrl(&self) -> &FadingCtrl
0x158 - Fading control register
sourcepub fn cp_gr_g(&self) -> &CpGrG
pub fn cp_gr_g(&self) -> &CpGrG
0x160 - RGA color gradient fill step register (color fill mode)
sourcepub fn cp_gr_r(&self) -> &CpGrR
pub fn cp_gr_r(&self) -> &CpGrR
0x164 - RGA color gradient fill step register (color fill mode)
sourcepub fn mmu_src_base(&self) -> &MmuSrcBase
pub fn mmu_src_base(&self) -> &MmuSrcBase
0x170 - RGA source MMU TLB base address
sourcepub fn mmu_src1_base(&self) -> &MmuSrc1Base
pub fn mmu_src1_base(&self) -> &MmuSrc1Base
0x174 - RGA source1 MMU TLB base address
sourcepub fn mmu_dst_base(&self) -> &MmuDstBase
pub fn mmu_dst_base(&self) -> &MmuDstBase
0x178 - RGA destination MMU TLB base address
sourcepub fn mmu_els_base(&self) -> &MmuElsBase
pub fn mmu_els_base(&self) -> &MmuElsBase
0x17c - RGA ELSE MMU TLB base address