pub struct Psram { /* private fields */ }Expand description
Enables externally-connected Pseudo-static RAM.
Implementations§
Source§impl Psram
impl Psram
Sourcepub fn new(peri: PSRAM<'static>, config: PsramConfig) -> Self
pub fn new(peri: PSRAM<'static>, config: PsramConfig) -> Self
Initializes PSRAM.
Sourcepub fn raw_parts(&self) -> (*mut u8, usize)
pub fn raw_parts(&self) -> (*mut u8, usize)
Returns the address and size of the available in external memory.
Sourcepub fn size(&self) -> usize
Available on crate feature unstable only.
pub fn size(&self) -> usize
unstable only.Returns the size of PSRAM in bytes: the detected size, or the size that the configuration sets. Returns 0 if PSRAM did not start.
§Stability
This API is marked as unstable and is only available when the unstable
crate feature is enabled. This comes with no stability guarantees, and could be changed
or removed at any time.