pub struct HisiLpc { /* private fields */ }Implementations§
Source§impl HisiLpc
impl HisiLpc
Sourcepub fn lpc_read(&self, addr: u32, width: u32) -> Result<u32, BusError>
pub fn lpc_read(&self, addr: u32, width: u32) -> Result<u32, BusError>
Performs the lpc read operation.
Sourcepub fn lpc_write(
&self,
addr: u32,
width: u32,
data: u32,
) -> Result<(), BusError>
pub fn lpc_write( &self, addr: u32, width: u32, data: u32, ) -> Result<(), BusError>
Performs the lpc write operation.
Sourcepub fn io_write8(&self, port: u16, val: u8) -> Result<(), BusError>
pub fn io_write8(&self, port: u16, val: u8) -> Result<(), BusError>
Performs the io write8 operation.
Sourcepub fn io_write16(&self, port: u16, val: u16) -> Result<(), BusError>
pub fn io_write16(&self, port: u16, val: u16) -> Result<(), BusError>
Performs the io write16 operation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for HisiLpc
impl RefUnwindSafe for HisiLpc
impl Send for HisiLpc
impl Sync for HisiLpc
impl Unpin for HisiLpc
impl UnsafeUnpin for HisiLpc
impl UnwindSafe for HisiLpc
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