pub struct Psram<'d> { /* private fields */ }Expand description
PSRAM driver.
Implementations§
Source§impl<'d> Psram<'d>
impl<'d> Psram<'d>
Sourcepub fn new(qmi_cs1: QmiCs1<'d>, config: Config) -> Result<Self, Error>
pub fn new(qmi_cs1: QmiCs1<'d>, config: Config) -> Result<Self, Error>
Create a new PSRAM driver instance.
This will detect the PSRAM device and configure it for memory-mapped access.
Sourcepub fn base_address(&self) -> *mut u8
pub fn base_address(&self) -> *mut u8
Get the base address for memory-mapped access.
After initialization, PSRAM can be accessed directly through memory mapping. The base address for CS1 is typically 0x11000000.
Auto Trait Implementations§
impl<'d> !UnwindSafe for Psram<'d>
impl<'d> Freeze for Psram<'d>
impl<'d> RefUnwindSafe for Psram<'d>
impl<'d> Send for Psram<'d>
impl<'d> Sync for Psram<'d>
impl<'d> Unpin for Psram<'d>
impl<'d> UnsafeUnpin for Psram<'d>
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