PartialCascadeControl

Struct PartialCascadeControl 

Source
pub struct PartialCascadeControl<const MASK: u32>(/* private fields */);
Expand description

Partial builder struct

Implementations§

Source§

impl PartialCascadeControl<0>

Source

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>

Source

pub const fn with_inv2( &self, value: CascadeInvert, ) -> PartialCascadeControl<1536>

Source§

impl PartialCascadeControl<1536>

Source

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>

Source

pub const fn with_trigger1(&self, value: bool) -> PartialCascadeControl<1920>

Same as the trigger field for Cascade 0.

Source§

impl PartialCascadeControl<1920>

Source

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>

Source

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>

Source

pub const fn with_inv1( &self, value: CascadeInvert, ) -> PartialCascadeControl<2008>

Inversion bit for Cascade 1

Source§

impl PartialCascadeControl<2008>

Source

pub const fn with_en1(&self, value: bool) -> PartialCascadeControl<2012>

Enable Cascade 1 signal active as a requirement for counting.

Source§

impl PartialCascadeControl<2012>

Source

pub const fn with_inv0( &self, value: CascadeInvert, ) -> PartialCascadeControl<2014>

Inversion bit for Cascade 0.

Source§

impl PartialCascadeControl<2014>

Source

pub const fn with_en0(&self, value: bool) -> PartialCascadeControl<2015>

Enable Cascade 0 signal active as a requirement for counting.

Source§

impl PartialCascadeControl<2015>

Source

pub const fn build(&self) -> CascadeControl

Builds the bitfield from the values passed into this builder

Auto Trait Implementations§

§

impl<const MASK: u32> Freeze for PartialCascadeControl<MASK>

§

impl<const MASK: u32> RefUnwindSafe for PartialCascadeControl<MASK>

§

impl<const MASK: u32> Send for PartialCascadeControl<MASK>

§

impl<const MASK: u32> Sync for PartialCascadeControl<MASK>

§

impl<const MASK: u32> Unpin for PartialCascadeControl<MASK>

§

impl<const MASK: u32> UnwindSafe for PartialCascadeControl<MASK>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.