pub struct SunxiRsb { /* private fields */ }Implementations§
Source§impl SunxiRsb
impl SunxiRsb
Sourcepub fn set_clock_freq(&mut self, freq: u32)
pub fn set_clock_freq(&mut self, freq: u32)
Sets clock freq.
Sourcepub fn set_runtime_address(
&self,
hwaddr: u16,
rtaddr: u8,
) -> Result<(), BusError>
pub fn set_runtime_address( &self, hwaddr: u16, rtaddr: u8, ) -> Result<(), BusError>
Sets runtime address.
Sourcepub fn init_device_mode(&self) -> Result<(), BusError>
pub fn init_device_mode(&self) -> Result<(), BusError>
Initializes device mode.
Sourcepub fn write8(&self, rtaddr: u8, reg: u8, val: u8) -> Result<(), BusError>
pub fn write8(&self, rtaddr: u8, reg: u8, val: u8) -> Result<(), BusError>
Performs the write8 operation.
Sourcepub fn read16(&self, rtaddr: u8, reg: u8) -> Result<u16, BusError>
pub fn read16(&self, rtaddr: u8, reg: u8) -> Result<u16, BusError>
Performs the read16 operation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SunxiRsb
impl RefUnwindSafe for SunxiRsb
impl Send for SunxiRsb
impl Sync for SunxiRsb
impl Unpin for SunxiRsb
impl UnsafeUnpin for SunxiRsb
impl UnwindSafe for SunxiRsb
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