pub struct Pi { /* private fields */ }Expand description
The PI register file and DMA state.
Implementations§
Source§impl Pi
impl Pi
Sourcepub const fn write(&mut self, addr: u32, val: u32) -> Option<Transfer>
pub const fn write(&mut self, addr: u32, val: u32) -> Option<Transfer>
Write a PI register, returning a Transfer if the write started one.
The transfer is returned rather than performed because the PI does not own RDRAM — the Bus does. Performing it here would need the engine to hold a reference back to the Bus that owns it, which is the cycle the whole architecture is built to avoid.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Pi
impl<'de> Deserialize<'de> for Pi
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Pi
impl Eq for Pi
impl StructuralPartialEq for Pi
Auto Trait Implementations§
impl Freeze for Pi
impl RefUnwindSafe for Pi
impl Send for Pi
impl Sync for Pi
impl Unpin for Pi
impl UnsafeUnpin for Pi
impl UnwindSafe for Pi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more