pub struct BUSCTRL { /* private fields */ }Expand description
Register block for busfabric control signals and performance counters
Implementations§
Source§impl BUSCTRL
impl BUSCTRL
Sourcepub const PTR: *const RegisterBlock = {0x40068000 as *const rp235x_hal::rp235x_pac::busctrl::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x40068000 as *const rp235x_hal::rp235x_pac::busctrl::RegisterBlock}
Pointer to the register block
Sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Sourcepub unsafe fn steal() -> BUSCTRL
pub unsafe fn steal() -> BUSCTRL
Steal an instance of this peripheral
§Safety
Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.
Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn bus_priority(&self) -> &Reg<BUS_PRIORITY_SPEC>
pub fn bus_priority(&self) -> &Reg<BUS_PRIORITY_SPEC>
0x00 - Set the priority of each master for bus arbitration.
Sourcepub fn bus_priority_ack(&self) -> &Reg<BUS_PRIORITY_ACK_SPEC>
pub fn bus_priority_ack(&self) -> &Reg<BUS_PRIORITY_ACK_SPEC>
0x04 - Bus priority acknowledge
Sourcepub fn perfctr_en(&self) -> &Reg<PERFCTR_EN_SPEC>
pub fn perfctr_en(&self) -> &Reg<PERFCTR_EN_SPEC>
0x08 - Enable the performance counters. If 0, the performance counters do not increment. This can be used to precisely start/stop event sampling around the profiled section of code. The performance counters are initially disabled, to save energy.
Sourcepub fn perfctr0(&self) -> &Reg<PERFCTR0_SPEC>
pub fn perfctr0(&self) -> &Reg<PERFCTR0_SPEC>
0x0c - Bus fabric performance counter 0
Sourcepub fn perfsel0(&self) -> &Reg<PERFSEL0_SPEC>
pub fn perfsel0(&self) -> &Reg<PERFSEL0_SPEC>
0x10 - Bus fabric performance event select for PERFCTR0
Sourcepub fn perfctr1(&self) -> &Reg<PERFCTR1_SPEC>
pub fn perfctr1(&self) -> &Reg<PERFCTR1_SPEC>
0x14 - Bus fabric performance counter 1
Sourcepub fn perfsel1(&self) -> &Reg<PERFSEL1_SPEC>
pub fn perfsel1(&self) -> &Reg<PERFSEL1_SPEC>
0x18 - Bus fabric performance event select for PERFCTR1
Sourcepub fn perfctr2(&self) -> &Reg<PERFCTR2_SPEC>
pub fn perfctr2(&self) -> &Reg<PERFCTR2_SPEC>
0x1c - Bus fabric performance counter 2
Sourcepub fn perfsel2(&self) -> &Reg<PERFSEL2_SPEC>
pub fn perfsel2(&self) -> &Reg<PERFSEL2_SPEC>
0x20 - Bus fabric performance event select for PERFCTR2
Sourcepub fn perfctr3(&self) -> &Reg<PERFCTR3_SPEC>
pub fn perfctr3(&self) -> &Reg<PERFCTR3_SPEC>
0x24 - Bus fabric performance counter 3
Sourcepub fn perfsel3(&self) -> &Reg<PERFSEL3_SPEC>
pub fn perfsel3(&self) -> &Reg<PERFSEL3_SPEC>
0x28 - Bus fabric performance event select for PERFCTR3
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BUSCTRL
impl RefUnwindSafe for BUSCTRL
impl !Sync for BUSCTRL
impl Unpin for BUSCTRL
impl UnwindSafe for BUSCTRL
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more