pub struct PCNT { /* private fields */ }Expand description
Represents a virtual peripheral with no associated hardware.
This struct is generated by the create_peripheral! macro when the peripheral
is defined as virtual.
Implementations§
Methods from Deref<Target = RegisterBlock>§
Sourcepub fn unit(&self, n: usize) -> &UNIT
pub fn unit(&self, n: usize) -> &UNIT
0x00..0x30 - Cluster UNIT%s, containing U?_CONF0, U?_CONF1, U?_CONF2
Sourcepub fn unit_iter(&self) -> impl Iterator<Item = &UNIT>
pub fn unit_iter(&self) -> impl Iterator<Item = &UNIT>
Iterator for array of: 0x00..0x30 - Cluster UNIT%s, containing U?_CONF0, U?_CONF1, U?_CONF2
Sourcepub fn u_cnt(&self, n: usize) -> &Reg<U_CNT_SPEC>
pub fn u_cnt(&self, n: usize) -> &Reg<U_CNT_SPEC>
0x30..0x40 - Counter value for unit %s
Sourcepub fn u_cnt_iter(&self) -> impl Iterator<Item = &Reg<U_CNT_SPEC>>
pub fn u_cnt_iter(&self) -> impl Iterator<Item = &Reg<U_CNT_SPEC>>
Iterator for array of: 0x30..0x40 - Counter value for unit %s
Sourcepub fn u0_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u0_cnt(&self) -> &Reg<U_CNT_SPEC>
0x30 - Counter value for unit 0
Sourcepub fn u1_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u1_cnt(&self) -> &Reg<U_CNT_SPEC>
0x34 - Counter value for unit 1
Sourcepub fn u2_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u2_cnt(&self) -> &Reg<U_CNT_SPEC>
0x38 - Counter value for unit 2
Sourcepub fn u3_cnt(&self) -> &Reg<U_CNT_SPEC>
pub fn u3_cnt(&self) -> &Reg<U_CNT_SPEC>
0x3c - Counter value for unit 3
Sourcepub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
pub fn int_raw(&self) -> &Reg<INT_RAW_SPEC>
0x40 - Interrupt raw status register
Sourcepub fn int_st(&self) -> &Reg<INT_ST_SPEC>
pub fn int_st(&self) -> &Reg<INT_ST_SPEC>
0x44 - Interrupt status register
Sourcepub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
pub fn int_ena(&self) -> &Reg<INT_ENA_SPEC>
0x48 - Interrupt enable register
Sourcepub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
pub fn int_clr(&self) -> &Reg<INT_CLR_SPEC>
0x4c - Interrupt clear register
Sourcepub fn u_status(&self, n: usize) -> &Reg<U_STATUS_SPEC>
pub fn u_status(&self, n: usize) -> &Reg<U_STATUS_SPEC>
0x50..0x60 - PNCT UNIT%s status register
Sourcepub fn u_status_iter(&self) -> impl Iterator<Item = &Reg<U_STATUS_SPEC>>
pub fn u_status_iter(&self) -> impl Iterator<Item = &Reg<U_STATUS_SPEC>>
Iterator for array of: 0x50..0x60 - PNCT UNIT%s status register
Sourcepub fn u0_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u0_status(&self) -> &Reg<U_STATUS_SPEC>
0x50 - PNCT UNIT0 status register
Sourcepub fn u1_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u1_status(&self) -> &Reg<U_STATUS_SPEC>
0x54 - PNCT UNIT1 status register
Sourcepub fn u2_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u2_status(&self) -> &Reg<U_STATUS_SPEC>
0x58 - PNCT UNIT2 status register
Sourcepub fn u3_status(&self) -> &Reg<U_STATUS_SPEC>
pub fn u3_status(&self) -> &Reg<U_STATUS_SPEC>
0x5c - PNCT UNIT3 status register