#[repr(transparent)]pub struct Intctrl(pub u16);Expand description
Interrupt Control Register.
Tuple Fields§
§0: u16Implementations§
Source§impl Intctrl
impl Intctrl
Sourcepub const fn sabie(&self) -> bool
pub const fn sabie(&self) -> bool
Simultaneous PHASEA and PHASEB Change Interrupt Enable. Raw bit values: false (0) = Sabie0: Disabled.; true (1) = Sabie1: Enabled.
Sourcepub const fn set_sabie(&mut self, val: bool)
pub const fn set_sabie(&mut self, val: bool)
Simultaneous PHASEA and PHASEB Change Interrupt Enable. Raw bit values: false (0) = Sabie0: Disabled.; true (1) = Sabie1: Enabled.
Sourcepub const fn sabirq(&self) -> bool
pub const fn sabirq(&self) -> bool
Simultaneous PHASEA and PHASEB Change Interrupt Request. Raw bit values: false (0) = Sabirq0: No simultaneous change of PHASEA and PHASEB has occurred.; true (1) = Sabirq1: A simultaneous change of PHASEA and PHASEB has occurred.
Sourcepub const fn set_sabirq(&mut self, val: bool)
pub const fn set_sabirq(&mut self, val: bool)
Simultaneous PHASEA and PHASEB Change Interrupt Request. Raw bit values: false (0) = Sabirq0: No simultaneous change of PHASEA and PHASEB has occurred.; true (1) = Sabirq1: A simultaneous change of PHASEA and PHASEB has occurred.
Sourcepub const fn dirie(&self) -> bool
pub const fn dirie(&self) -> bool
Count direction change interrupt enable. Raw bit values: false (0) = Dirie0: Disabled.; true (1) = Dirie1: Enabled.
Sourcepub const fn set_dirie(&mut self, val: bool)
pub const fn set_dirie(&mut self, val: bool)
Count direction change interrupt enable. Raw bit values: false (0) = Dirie0: Disabled.; true (1) = Dirie1: Enabled.
Sourcepub const fn dirirq(&self) -> bool
pub const fn dirirq(&self) -> bool
Count direction change interrupt. Raw bit values: false (0) = Dirirq0: Count direction unchanged.; true (1) = Dirirq1: Count direction changed.
Sourcepub const fn set_dirirq(&mut self, val: bool)
pub const fn set_dirirq(&mut self, val: bool)
Count direction change interrupt. Raw bit values: false (0) = Dirirq0: Count direction unchanged.; true (1) = Dirirq1: Count direction changed.
Sourcepub const fn ruie(&self) -> bool
pub const fn ruie(&self) -> bool
Roll-under Interrupt Enable. Raw bit values: false (0) = Ruie0: Disabled.; true (1) = Ruie1: Enabled.
Sourcepub const fn set_ruie(&mut self, val: bool)
pub const fn set_ruie(&mut self, val: bool)
Roll-under Interrupt Enable. Raw bit values: false (0) = Ruie0: Disabled.; true (1) = Ruie1: Enabled.
Sourcepub const fn ruirq(&self) -> bool
pub const fn ruirq(&self) -> bool
Roll-under Interrupt Request. Raw bit values: false (0) = Ruirq0: No roll-under has occurred.; true (1) = Ruirq1: Roll-under has occurred.
Sourcepub const fn set_ruirq(&mut self, val: bool)
pub const fn set_ruirq(&mut self, val: bool)
Roll-under Interrupt Request. Raw bit values: false (0) = Ruirq0: No roll-under has occurred.; true (1) = Ruirq1: Roll-under has occurred.
Sourcepub const fn roie(&self) -> bool
pub const fn roie(&self) -> bool
Roll-over Interrupt Enable. Raw bit values: false (0) = Roie: Disabled.; true (1) = Roie1: Enabled.
Sourcepub const fn set_roie(&mut self, val: bool)
pub const fn set_roie(&mut self, val: bool)
Roll-over Interrupt Enable. Raw bit values: false (0) = Roie: Disabled.; true (1) = Roie1: Enabled.
Sourcepub const fn roirq(&self) -> bool
pub const fn roirq(&self) -> bool
Roll-over Interrupt Request. Raw bit values: false (0) = Roirq0: No roll-over has occurred.; true (1) = Roirq1: Roll-over has occurred.
Sourcepub const fn set_roirq(&mut self, val: bool)
pub const fn set_roirq(&mut self, val: bool)
Roll-over Interrupt Request. Raw bit values: false (0) = Roirq0: No roll-over has occurred.; true (1) = Roirq1: Roll-over has occurred.
Sourcepub const fn cmp0ie(&self) -> bool
pub const fn cmp0ie(&self) -> bool
Compare 0 Interrupt Enable. Raw bit values: false (0) = Cmp0ie0: Disabled.; true (1) = Cmp0ie1: Enabled.
Sourcepub const fn set_cmp0ie(&mut self, val: bool)
pub const fn set_cmp0ie(&mut self, val: bool)
Compare 0 Interrupt Enable. Raw bit values: false (0) = Cmp0ie0: Disabled.; true (1) = Cmp0ie1: Enabled.
Sourcepub const fn cmp0irq(&self) -> bool
pub const fn cmp0irq(&self) -> bool
Compare 0 Interrupt Request. Raw bit values: false (0) = Cmp0irq0: No match has occurred (the position counter does not match the COMP0 value).; true (1) = Cmp0irq1: COMP match has occurred (the position counter matches the COMP0 value).
Sourcepub const fn set_cmp0irq(&mut self, val: bool)
pub const fn set_cmp0irq(&mut self, val: bool)
Compare 0 Interrupt Request. Raw bit values: false (0) = Cmp0irq0: No match has occurred (the position counter does not match the COMP0 value).; true (1) = Cmp0irq1: COMP match has occurred (the position counter matches the COMP0 value).
Sourcepub const fn cmp1ie(&self) -> bool
pub const fn cmp1ie(&self) -> bool
Compare1 Interrupt Enable. Raw bit values: false (0) = Cmp1ie0: Disabled.; true (1) = Cmp1ie1: Enabled.
Sourcepub const fn set_cmp1ie(&mut self, val: bool)
pub const fn set_cmp1ie(&mut self, val: bool)
Compare1 Interrupt Enable. Raw bit values: false (0) = Cmp1ie0: Disabled.; true (1) = Cmp1ie1: Enabled.
Sourcepub const fn cmp1irq(&self) -> bool
pub const fn cmp1irq(&self) -> bool
Compare1 Interrupt Request. Raw bit values: false (0) = Cmp1irq0: No match has occurred (the position counter does not match the COMP1 value).; true (1) = Cmp1irq1: COMP1 match has occurred (the position counter matches the COMP1 value).
Sourcepub const fn set_cmp1irq(&mut self, val: bool)
pub const fn set_cmp1irq(&mut self, val: bool)
Compare1 Interrupt Request. Raw bit values: false (0) = Cmp1irq0: No match has occurred (the position counter does not match the COMP1 value).; true (1) = Cmp1irq1: COMP1 match has occurred (the position counter matches the COMP1 value).
Sourcepub const fn cmp2ie(&self) -> bool
pub const fn cmp2ie(&self) -> bool
Compare2 Interrupt Enable. Raw bit values: false (0) = Cmp2ie0: Disabled.; true (1) = Cmp2ie1: Enabled.
Sourcepub const fn set_cmp2ie(&mut self, val: bool)
pub const fn set_cmp2ie(&mut self, val: bool)
Compare2 Interrupt Enable. Raw bit values: false (0) = Cmp2ie0: Disabled.; true (1) = Cmp2ie1: Enabled.
Sourcepub const fn cmp2irq(&self) -> bool
pub const fn cmp2irq(&self) -> bool
Compare2 Interrupt Request. Raw bit values: false (0) = Cmp2irq0: No match has occurred (the position counter does not match the COMP2 value).; true (1) = Cmp2irq1: COMP2 match has occurred (the position counter matches the COMP2 value).
Sourcepub const fn set_cmp2irq(&mut self, val: bool)
pub const fn set_cmp2irq(&mut self, val: bool)
Compare2 Interrupt Request. Raw bit values: false (0) = Cmp2irq0: No match has occurred (the position counter does not match the COMP2 value).; true (1) = Cmp2irq1: COMP2 match has occurred (the position counter matches the COMP2 value).
Sourcepub const fn cmp3ie(&self) -> bool
pub const fn cmp3ie(&self) -> bool
Compare3 Interrupt Enable. Raw bit values: false (0) = Cmp3ie0: Disabled.; true (1) = Cmp3ie1: Enabled.
Sourcepub const fn set_cmp3ie(&mut self, val: bool)
pub const fn set_cmp3ie(&mut self, val: bool)
Compare3 Interrupt Enable. Raw bit values: false (0) = Cmp3ie0: Disabled.; true (1) = Cmp3ie1: Enabled.
Sourcepub const fn cmp3irq(&self) -> bool
pub const fn cmp3irq(&self) -> bool
Compare3 Interrupt Request. Raw bit values: false (0) = Cmp3irq0: No match has occurred (the position counter does not match the COMP3 value).; true (1) = Cmp3irq1: COMP3 match has occurred (the position counter matches the COMP3 value).
Sourcepub const fn set_cmp3irq(&mut self, val: bool)
pub const fn set_cmp3irq(&mut self, val: bool)
Compare3 Interrupt Request. Raw bit values: false (0) = Cmp3irq0: No match has occurred (the position counter does not match the COMP3 value).; true (1) = Cmp3irq1: COMP3 match has occurred (the position counter matches the COMP3 value).