pub struct PPA { /* private fields */ }
Expand description
PPA Peripheral
Implementations§
Source§impl PPA
impl PPA
Sourcepub const PTR: *const RegisterBlock = {0x50087000 as *const ppa::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x50087000 as *const ppa::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 blend0_clut_data(&self) -> &BLEND0_CLUT_DATA
pub fn blend0_clut_data(&self) -> &BLEND0_CLUT_DATA
0x00 - CLUT sram data read/write register in background plane of blender
Sourcepub fn blend1_clut_data(&self) -> &BLEND1_CLUT_DATA
pub fn blend1_clut_data(&self) -> &BLEND1_CLUT_DATA
0x04 - CLUT sram data read/write register in foreground plane of blender
Sourcepub fn sr_color_mode(&self) -> &SR_COLOR_MODE
pub fn sr_color_mode(&self) -> &SR_COLOR_MODE
0x20 - Scaling and rotating engine color mode register
Sourcepub fn blend_color_mode(&self) -> &BLEND_COLOR_MODE
pub fn blend_color_mode(&self) -> &BLEND_COLOR_MODE
0x24 - blending engine color mode register
Sourcepub fn sr_byte_order(&self) -> &SR_BYTE_ORDER
pub fn sr_byte_order(&self) -> &SR_BYTE_ORDER
0x28 - Scaling and rotating engine byte order register
Sourcepub fn blend_byte_order(&self) -> &BLEND_BYTE_ORDER
pub fn blend_byte_order(&self) -> &BLEND_BYTE_ORDER
0x2c - Blending engine byte order register
Sourcepub fn blend_trans_mode(&self) -> &BLEND_TRANS_MODE
pub fn blend_trans_mode(&self) -> &BLEND_TRANS_MODE
0x34 - Blending engine mode configure register
Sourcepub fn sr_fix_alpha(&self) -> &SR_FIX_ALPHA
pub fn sr_fix_alpha(&self) -> &SR_FIX_ALPHA
0x38 - Scaling and rotating engine alpha override register
Sourcepub fn blend_tx_size(&self) -> &BLEND_TX_SIZE
pub fn blend_tx_size(&self) -> &BLEND_TX_SIZE
0x3c - Fix pixel filling mode image size register
Sourcepub fn blend_fix_alpha(&self) -> &BLEND_FIX_ALPHA
pub fn blend_fix_alpha(&self) -> &BLEND_FIX_ALPHA
0x40 - Blending engine alpha override register
Sourcepub fn blend_fix_pixel(&self) -> &BLEND_FIX_PIXEL
pub fn blend_fix_pixel(&self) -> &BLEND_FIX_PIXEL
0x4c - Blending engine fix pixel register
Sourcepub fn ck_fg_high(&self) -> &CK_FG_HIGH
pub fn ck_fg_high(&self) -> &CK_FG_HIGH
0x54 - foreground color key higher threshold
Sourcepub fn ck_bg_high(&self) -> &CK_BG_HIGH
pub fn ck_bg_high(&self) -> &CK_BG_HIGH
0x5c - background color key higher threshold
Sourcepub fn ck_default(&self) -> &CK_DEFAULT
pub fn ck_default(&self) -> &CK_DEFAULT
0x60 - default value when foreground and background both in color key range
Sourcepub fn sr_scal_rotate(&self) -> &SR_SCAL_ROTATE
pub fn sr_scal_rotate(&self) -> &SR_SCAL_ROTATE
0x64 - Scaling and rotating coefficient register
Sourcepub fn sr_param_err_st(&self) -> &SR_PARAM_ERR_ST
pub fn sr_param_err_st(&self) -> &SR_PARAM_ERR_ST
0x78 - Scaling and rotating coefficient error register
Sourcepub fn eco_cell_ctrl(&self) -> &ECO_CELL_CTRL
pub fn eco_cell_ctrl(&self) -> &ECO_CELL_CTRL
0x88 - Reserved.