Type Alias rp2040_pac::busctrl::perfsel2::W

source ·
pub type W = W<PERFSEL2_SPEC>;
Expand description

Register PERFSEL2 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn perfsel2(&mut self) -> PERFSEL2_W<'_, PERFSEL2_SPEC>

Bits 0:4 - Select an event for PERFCTR2. Count either contested accesses, or all accesses, on a downstream port of the main crossbar.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

§Safety

Passing incorrect value can cause undefined behaviour. See reference manual