pub struct SocFpga<M: MemoryMapper> {
pub memory: M,
}Fields§
§memory: MImplementations§
Source§impl<M: MemoryMapper> SocFpga<M>
impl<M: MemoryMapper> SocFpga<M>
pub fn new(memory: M) -> Self
Sourcepub unsafe fn base_ptr(&self) -> *const u8
pub unsafe fn base_ptr(&self) -> *const u8
The base location of the memory pointed to with the memory mapper.
Sourcepub unsafe fn base_ptr_mut(&mut self) -> *mut u8
pub unsafe fn base_ptr_mut(&mut self) -> *mut u8
The base location of the memory pointed to with the memory mapper.
Sourcepub fn base_mut(&mut self) -> &u8
pub fn base_mut(&mut self) -> &u8
The base location of the memory pointed to with the memory mapper.
Sourcepub unsafe fn host_memory_ptr(&self) -> *const u8
pub unsafe fn host_memory_ptr(&self) -> *const u8
The accessible host memory from and to the core.
Sourcepub unsafe fn host_memory_ptr_mut(&mut self) -> *mut u8
pub unsafe fn host_memory_ptr_mut(&mut self) -> *mut u8
The accessible host memory from and to the core.
Sourcepub fn host_memory(&self) -> &u8
pub fn host_memory(&self) -> &u8
The accessible host memory from and to the core.
Sourcepub fn host_memory_mut(&mut self) -> &u8
pub fn host_memory_mut(&mut self) -> &u8
The accessible host memory from and to the core.
Sourcepub fn regs(&self) -> &FpgaManagerRegs
pub fn regs(&self) -> &FpgaManagerRegs
The FPGA Manager registers.
Sourcepub fn regs_mut(&mut self) -> &mut FpgaManagerRegs
pub fn regs_mut(&mut self) -> &mut FpgaManagerRegs
The FPGA Manager registers.
Sourcepub unsafe fn data_ptr_mut(&mut self) -> *mut u8
pub unsafe fn data_ptr_mut(&mut self) -> *mut u8
The FPGA Manager data.
Sourcepub fn rstmgr(&self) -> &ResetManager
pub fn rstmgr(&self) -> &ResetManager
The Reset Manager.
Sourcepub fn rstmgr_mut(&mut self) -> &mut ResetManager
pub fn rstmgr_mut(&mut self) -> &mut ResetManager
The Reset Manager.
Sourcepub fn l3regs_mut(&mut self) -> &mut L3Regs
pub fn l3regs_mut(&mut self) -> &mut L3Regs
Registers to control L3 interconnect settings.
Sourcepub fn sysmgr(&self) -> &SystemManagerModule
pub fn sysmgr(&self) -> &SystemManagerModule
System Manager Module
Sourcepub fn sysmgr_mut(&mut self) -> &mut SystemManagerModule
pub fn sysmgr_mut(&mut self) -> &mut SystemManagerModule
System Manager Module
Source§impl SocFpga<BufferMemoryMapper>
impl SocFpga<BufferMemoryMapper>
pub fn create_for_test() -> Self
Trait Implementations§
Source§impl Default for SocFpga<DevMemMemoryMapper>
Available on crate feature std only.
impl Default for SocFpga<DevMemMemoryMapper>
Available on crate feature
std only.impl<M: Copy + MemoryMapper> Copy for SocFpga<M>
Auto Trait Implementations§
impl<M> Freeze for SocFpga<M>where
M: Freeze,
impl<M> RefUnwindSafe for SocFpga<M>where
M: RefUnwindSafe,
impl<M> Send for SocFpga<M>where
M: Send,
impl<M> Sync for SocFpga<M>where
M: Sync,
impl<M> Unpin for SocFpga<M>where
M: Unpin,
impl<M> UnwindSafe for SocFpga<M>where
M: UnwindSafe,
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