Struct PPA

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

PPA Peripheral

Implementations§

Source§

impl PPA

Source

pub const PTR: *const RegisterBlock = {0x50087000 as *const ppa::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 blend0_clut_data(&self) -> &BLEND0_CLUT_DATA

0x00 - CLUT sram data read/write register in background plane of blender

Source

pub fn blend1_clut_data(&self) -> &BLEND1_CLUT_DATA

0x04 - CLUT sram data read/write register in foreground plane of blender

Source

pub fn clut_conf(&self) -> &CLUT_CONF

0x0c - CLUT configure register

Source

pub fn int_raw(&self) -> &INT_RAW

0x10 - Raw status interrupt

Source

pub fn int_st(&self) -> &INT_ST

0x14 - Masked interrupt

Source

pub fn int_ena(&self) -> &INT_ENA

0x18 - Interrupt enable bits

Source

pub fn int_clr(&self) -> &INT_CLR

0x1c - Interrupt clear bits

Source

pub fn sr_color_mode(&self) -> &SR_COLOR_MODE

0x20 - Scaling and rotating engine color mode register

Source

pub fn blend_color_mode(&self) -> &BLEND_COLOR_MODE

0x24 - blending engine color mode register

Source

pub fn sr_byte_order(&self) -> &SR_BYTE_ORDER

0x28 - Scaling and rotating engine byte order register

Source

pub fn blend_byte_order(&self) -> &BLEND_BYTE_ORDER

0x2c - Blending engine byte order register

Source

pub fn blend_trans_mode(&self) -> &BLEND_TRANS_MODE

0x34 - Blending engine mode configure register

Source

pub fn sr_fix_alpha(&self) -> &SR_FIX_ALPHA

0x38 - Scaling and rotating engine alpha override register

Source

pub fn blend_tx_size(&self) -> &BLEND_TX_SIZE

0x3c - Fix pixel filling mode image size register

Source

pub fn blend_fix_alpha(&self) -> &BLEND_FIX_ALPHA

0x40 - Blending engine alpha override register

Source

pub fn blend_rgb(&self) -> &BLEND_RGB

0x48 - RGB color register

Source

pub fn blend_fix_pixel(&self) -> &BLEND_FIX_PIXEL

0x4c - Blending engine fix pixel register

Source

pub fn ck_fg_low(&self) -> &CK_FG_LOW

0x50 - foreground color key lower threshold

Source

pub fn ck_fg_high(&self) -> &CK_FG_HIGH

0x54 - foreground color key higher threshold

Source

pub fn ck_bg_low(&self) -> &CK_BG_LOW

0x58 - background color key lower threshold

Source

pub fn ck_bg_high(&self) -> &CK_BG_HIGH

0x5c - background color key higher threshold

Source

pub fn ck_default(&self) -> &CK_DEFAULT

0x60 - default value when foreground and background both in color key range

Source

pub fn sr_scal_rotate(&self) -> &SR_SCAL_ROTATE

0x64 - Scaling and rotating coefficient register

Source

pub fn sr_mem_pd(&self) -> &SR_MEM_PD

0x68 - SR memory power done register

Source

pub fn reg_conf(&self) -> &REG_CONF

0x6c - Register clock enable register

Source

pub fn clut_cnt(&self) -> &CLUT_CNT

0x70 - BLEND CLUT write counter register

Source

pub fn blend_st(&self) -> &BLEND_ST

0x74 - Blending engine status register

Source

pub fn sr_param_err_st(&self) -> &SR_PARAM_ERR_ST

0x78 - Scaling and rotating coefficient error register

Source

pub fn sr_status(&self) -> &SR_STATUS

0x7c - SR FSM register

Source

pub fn eco_low(&self) -> &ECO_LOW

0x80 - Reserved.

Source

pub fn eco_high(&self) -> &ECO_HIGH

0x84 - Reserved.

Source

pub fn eco_cell_ctrl(&self) -> &ECO_CELL_CTRL

0x88 - Reserved.

Source

pub fn sram_ctrl(&self) -> &SRAM_CTRL

0x8c - PPA SRAM Control Register

Source

pub fn date(&self) -> &DATE

0x100 - PPA Version register

Trait Implementations§

Source§

impl Debug for PPA

Source§

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

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

impl Deref for PPA

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for PPA

Auto Trait Implementations§

§

impl Freeze for PPA

§

impl RefUnwindSafe for PPA

§

impl !Sync for PPA

§

impl Unpin for PPA

§

impl UnwindSafe for PPA

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.