Struct rk3399_pac::Vdpu
source · pub struct Vdpu { /* private fields */ }
Expand description
Video Processor Unit (VPU) Decoder Registers
Implementations§
source§impl Vdpu
impl Vdpu
sourcepub const PTR: *const RegisterBlock = {0xff650400 as *const vdpu::RegisterBlock}
pub const PTR: *const RegisterBlock = {0xff650400 as *const vdpu::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 swreg18(&self) -> &Swreg18
pub fn swreg18(&self) -> &Swreg18
0x48 - base address for reading post-processing input picture uminan
sourcepub fn swreg19(&self) -> &Swreg19
pub fn swreg19(&self) -> &Swreg19
0x4c - Base address for reading post-processing input picture Cb/Ch
sourcepub fn swreg21(&self) -> &Swreg21
pub fn swreg21(&self) -> &Swreg21
0x54 - Base address for writing post-processed picture luminance/RGB
sourcepub fn swreg26(&self) -> &Swreg26
pub fn swreg26(&self) -> &Swreg26
0x68 - x-coordinate of mask area 1 for Horizontal start pixel
sourcepub fn swreg27(&self) -> &Swreg27
pub fn swreg27(&self) -> &Swreg27
0x6c - y-coordinate of mask area 1 for Horizontal start pixel
sourcepub fn swreg28(&self) -> &Swreg28
pub fn swreg28(&self) -> &Swreg28
0x70 - x-coordinate of mask area 2 for Horizontal start pixel
sourcepub fn swreg29(&self) -> &Swreg29
pub fn swreg29(&self) -> &Swreg29
0x74 - y-coordinate of mask area 2 for Horizontal start pixel
sourcepub fn swreg33(&self) -> &Swreg33
pub fn swreg33(&self) -> &Swreg33
0x84 - Synthesis configuration register post-processor (read only)
sourcepub fn swreg67(&self) -> &Swreg67
pub fn swreg67(&self) -> &Swreg67
0x10c - Synthesis configuration register decoder 1(read only)
sourcepub fn swreg70(&self) -> &Swreg70
pub fn swreg70(&self) -> &Swreg70
0x118 - sum of the decoded motion vector y-components(read only)
sourcepub fn swreg164_perf_latency_ctrl0(&self) -> &Swreg164PerfLatencyCtrl0
pub fn swreg164_perf_latency_ctrl0(&self) -> &Swreg164PerfLatencyCtrl0
0x290 - Axi performance latency module contrl register0
sourcepub fn swreg165_perf_latency_ctrl1(&self) -> &Swreg165PerfLatencyCtrl1
pub fn swreg165_perf_latency_ctrl1(&self) -> &Swreg165PerfLatencyCtrl1
0x294 - PERF_LATENCY_CTRL1
sourcepub fn swreg166_perf_rd_max_latency_num0(&self) -> &Swreg166PerfRdMaxLatencyNum0
pub fn swreg166_perf_rd_max_latency_num0(&self) -> &Swreg166PerfRdMaxLatencyNum0
0x298 - Read max latency number
sourcepub fn swreg167_perf_rd_latency_samp_num(&self) -> &Swreg167PerfRdLatencySampNum
pub fn swreg167_perf_rd_latency_samp_num(&self) -> &Swreg167PerfRdLatencySampNum
0x29c - The number of bigger than configed threshold value
sourcepub fn swreg168_perf_rd_latency_acc_sum(&self) -> &Swreg168PerfRdLatencyAccSum
pub fn swreg168_perf_rd_latency_acc_sum(&self) -> &Swreg168PerfRdLatencyAccSum
0x2a0 - Total sample number
sourcepub fn swreg169_perf_rd_axi_total_byte(&self) -> &Swreg169PerfRdAxiTotalByte
pub fn swreg169_perf_rd_axi_total_byte(&self) -> &Swreg169PerfRdAxiTotalByte
0x2a4 - perf_rd_axi_total_byte
sourcepub fn swreg170_perf_wr_axi_total_byte(&self) -> &Swreg170PerfWrAxiTotalByte
pub fn swreg170_perf_wr_axi_total_byte(&self) -> &Swreg170PerfWrAxiTotalByte
0x2a8 - perf_wr_axi_total_byte
sourcepub fn swreg171_perf_working_cnt(&self) -> &Swreg171PerfWorkingCnt
pub fn swreg171_perf_working_cnt(&self) -> &Swreg171PerfWorkingCnt
0x2ac - perf_working_cnt