#[repr(transparent)]pub struct Pmcfg(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Pmcfg
impl Pmcfg
Sourcepub const fn prod_endpts(&self, n: usize) -> bool
pub const fn prod_endpts(&self, n: usize) -> bool
One ends a product term at slice n and starts a new term at slice n+1; that term’s match asserts interrupt n. Zero has no effect. Slice 7 is always an endpoint and has no programmable bit. Raw bit values: false (0) = NoEffect: No effect.; true (1) = Endpoint: Endpoint.
Sourcepub const fn set_prod_endpts(&mut self, n: usize, val: bool)
pub const fn set_prod_endpts(&mut self, n: usize, val: bool)
One ends a product term at slice n and starts a new term at slice n+1; that term’s match asserts interrupt n. Zero has no effect. Slice 7 is always an endpoint and has no programmable bit. Raw bit values: false (0) = NoEffect: No effect.; true (1) = Endpoint: Endpoint.
Sourcepub const fn cfg(&self, n: usize) -> MatchCondition
pub const fn cfg(&self, n: usize) -> MatchCondition
Match contribution for slice n. Writing PMCFG or PMSRC clears sticky history. For event encoding 7, the functional description says hardware clears detection after one clock, while the field text says “Write 0 to this field after one clock cycle”; this wording discrepancy is unresolved.
Sourcepub const fn set_cfg(&mut self, n: usize, val: MatchCondition)
pub const fn set_cfg(&mut self, n: usize, val: MatchCondition)
Match contribution for slice n. Writing PMCFG or PMSRC clears sticky history. For event encoding 7, the functional description says hardware clears detection after one clock, while the field text says “Write 0 to this field after one clock cycle”; this wording discrepancy is unresolved.