pub struct PartialCascadeControl<const MASK: u32>(/* private fields */);Expand description
Partial builder struct
Implementations§
Source§impl PartialCascadeControl<0>
impl PartialCascadeControl<0>
Sourcepub const fn with_trigger2(&self, value: bool) -> PartialCascadeControl<1024>
pub const fn with_trigger2(&self, value: bool) -> PartialCascadeControl<1024>
The counter is automatically disabled if the corresponding Cascade 2 level-sensitive input souce is active when the count reaches 0. If the counter is not 0, the cascade control is ignored.
Source§impl PartialCascadeControl<1024>
impl PartialCascadeControl<1024>
pub const fn with_inv2( &self, value: CascadeInvert, ) -> PartialCascadeControl<1536>
Source§impl PartialCascadeControl<1536>
impl PartialCascadeControl<1536>
Sourcepub const fn with_en2(&self, value: bool) -> PartialCascadeControl<1792>
pub const fn with_en2(&self, value: bool) -> PartialCascadeControl<1792>
Enable Cascade 2 signal active as a requirement to stop counting. This mode is similar to the REQ_STOP control bit, but signalled by a Cascade source.
Source§impl PartialCascadeControl<1792>
impl PartialCascadeControl<1792>
Sourcepub const fn with_trigger1(&self, value: bool) -> PartialCascadeControl<1920>
pub const fn with_trigger1(&self, value: bool) -> PartialCascadeControl<1920>
Same as the trigger field for Cascade 0.
Source§impl PartialCascadeControl<1920>
impl PartialCascadeControl<1920>
Sourcepub const fn with_trigger0(&self, value: bool) -> PartialCascadeControl<1984>
pub const fn with_trigger0(&self, value: bool) -> PartialCascadeControl<1984>
Enable trigger mode for Cascade 0. In trigger mode, couting will start with the selected cascade signal active, but once the counter is active, cascade control will be ignored.
Source§impl PartialCascadeControl<1984>
impl PartialCascadeControl<1984>
Sourcepub const fn with_dual_cascade_op(
&self,
value: DualCascadeOp,
) -> PartialCascadeControl<2000>
pub const fn with_dual_cascade_op( &self, value: DualCascadeOp, ) -> PartialCascadeControl<2000>
Specify required operation if both Cascade 0 and Cascade 1 are active. 0 is a logical AND of both cascade signals, 1 is a logical OR.
Source§impl PartialCascadeControl<2000>
impl PartialCascadeControl<2000>
Sourcepub const fn with_inv1(
&self,
value: CascadeInvert,
) -> PartialCascadeControl<2008>
pub const fn with_inv1( &self, value: CascadeInvert, ) -> PartialCascadeControl<2008>
Inversion bit for Cascade 1
Source§impl PartialCascadeControl<2008>
impl PartialCascadeControl<2008>
Sourcepub const fn with_en1(&self, value: bool) -> PartialCascadeControl<2012>
pub const fn with_en1(&self, value: bool) -> PartialCascadeControl<2012>
Enable Cascade 1 signal active as a requirement for counting.
Source§impl PartialCascadeControl<2012>
impl PartialCascadeControl<2012>
Sourcepub const fn with_inv0(
&self,
value: CascadeInvert,
) -> PartialCascadeControl<2014>
pub const fn with_inv0( &self, value: CascadeInvert, ) -> PartialCascadeControl<2014>
Inversion bit for Cascade 0.
Source§impl PartialCascadeControl<2014>
impl PartialCascadeControl<2014>
Sourcepub const fn with_en0(&self, value: bool) -> PartialCascadeControl<2015>
pub const fn with_en0(&self, value: bool) -> PartialCascadeControl<2015>
Enable Cascade 0 signal active as a requirement for counting.
Source§impl PartialCascadeControl<2015>
impl PartialCascadeControl<2015>
Sourcepub const fn build(&self) -> CascadeControl
pub const fn build(&self) -> CascadeControl
Builds the bitfield from the values passed into this builder