pub struct Bt1Apb { /* private fields */ }Implementations§
Source§impl Bt1Apb
impl Bt1Apb
Sourcepub fn init_nodev_region(&mut self, base: usize, size: usize)
pub fn init_nodev_region(&mut self, base: usize, size: usize)
Initializes nodev region.
Sourcepub fn set_clock_rate(&mut self, rate: u64)
pub fn set_clock_rate(&mut self, rate: u64)
Sets clock rate.
Sourcepub fn timeout_cycles_to_us(&self, n: u32) -> u64
pub fn timeout_cycles_to_us(&self, n: u32) -> u64
Performs the timeout cycles to us operation.
Sourcepub fn timeout_us_to_cycles(&self, timeout_us: u64) -> u32
pub fn timeout_us_to_cycles(&self, timeout_us: u64) -> u32
Performs the timeout us to cycles operation.
Sourcepub fn get_timeout_us(&self) -> u64
pub fn get_timeout_us(&self) -> u64
Returns timeout us.
Sourcepub fn set_timeout_us(&self, timeout_us: u64)
pub fn set_timeout_us(&self, timeout_us: u64)
Sets timeout us.
Sourcepub fn read_fault_address(&self) -> u32
pub fn read_fault_address(&self) -> u32
Reads fault address.
Sourcepub fn enable_irq(&self)
pub fn enable_irq(&self)
Enables irq.
Sourcepub fn disable_irq(&self)
pub fn disable_irq(&self)
Disables irq.
Sourcepub fn clear_pending(&self)
pub fn clear_pending(&self)
Performs the clear pending operation.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Bt1Apb
impl RefUnwindSafe for Bt1Apb
impl Send for Bt1Apb
impl Sync for Bt1Apb
impl Unpin for Bt1Apb
impl UnsafeUnpin for Bt1Apb
impl UnwindSafe for Bt1Apb
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