SourceBuilder

Struct SourceBuilder 

Source
pub struct SourceBuilder<const N: u8, const IS_FAST: bool> { /* private fields */ }

Implementations§

Source§

impl<const N: u8, const IS_FAST: bool> SourceBuilder<N, IS_FAST>

Source

pub unsafe fn new(src_bits: u8) -> Self

§Safety

Caller needs to ensure that src_bits is a valid bit pattern for eeXsrc bits in eecr1/2 registers for the intended input

Source§

impl<const N: u8> SourceBuilder<N, false>

Source

pub fn edge_or_polarity(self, edge_or_polarity: EdgeOrPolarity) -> Self

Source§

impl<const N: u8> SourceBuilder<N, true>

Source

pub fn polarity(self, polarity: Polarity) -> Self

Edge sensitivity not available in fast mode

Source§

impl<const N: u8> SourceBuilder<N, false>

Source

pub fn filter(self, filter: EevSamplingFilter) -> Self

Source§

impl SourceBuilder<1, false>

Source

pub fn fast(self) -> SourceBuilder<1, true>

Source§

impl SourceBuilder<2, false>

Source

pub fn fast(self) -> SourceBuilder<2, true>

Source§

impl SourceBuilder<3, false>

Source

pub fn fast(self) -> SourceBuilder<3, true>

Source§

impl SourceBuilder<4, false>

Source

pub fn fast(self) -> SourceBuilder<4, true>

Source§

impl SourceBuilder<5, false>

Source

pub fn fast(self) -> SourceBuilder<5, true>

Trait Implementations§

Source§

impl<const IS_FAST: bool> ToExternalEventSource<1, IS_FAST> for SourceBuilder<1, IS_FAST>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<1, IS_FAST>

Source§

impl ToExternalEventSource<10, false> for SourceBuilder<10, false>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<10, false>

Source§

impl<const IS_FAST: bool> ToExternalEventSource<2, IS_FAST> for SourceBuilder<2, IS_FAST>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<2, IS_FAST>

Source§

impl<const IS_FAST: bool> ToExternalEventSource<3, IS_FAST> for SourceBuilder<3, IS_FAST>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<3, IS_FAST>

Source§

impl<const IS_FAST: bool> ToExternalEventSource<4, IS_FAST> for SourceBuilder<4, IS_FAST>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<4, IS_FAST>

Source§

impl<const IS_FAST: bool> ToExternalEventSource<5, IS_FAST> for SourceBuilder<5, IS_FAST>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<5, IS_FAST>

Source§

impl ToExternalEventSource<6, false> for SourceBuilder<6, false>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<6, false>

Source§

impl ToExternalEventSource<7, false> for SourceBuilder<7, false>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<7, false>

Source§

impl ToExternalEventSource<8, false> for SourceBuilder<8, false>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<8, false>

Source§

impl ToExternalEventSource<9, false> for SourceBuilder<9, false>

Source§

fn finalize( self, _calibrated: &mut HrTimCalibrated, ) -> ExternalEventSource<9, false>

Source§

impl<const IS_FAST: bool> ExternalEventBuilder1To5 for SourceBuilder<1, IS_FAST>

Source§

impl<const IS_FAST: bool> ExternalEventBuilder1To5 for SourceBuilder<2, IS_FAST>

Source§

impl<const IS_FAST: bool> ExternalEventBuilder1To5 for SourceBuilder<3, IS_FAST>

Source§

impl<const IS_FAST: bool> ExternalEventBuilder1To5 for SourceBuilder<4, IS_FAST>

Source§

impl<const IS_FAST: bool> ExternalEventBuilder1To5 for SourceBuilder<5, IS_FAST>

Source§

impl ExternalEventBuilder6To10 for SourceBuilder<10, false>

Source§

impl ExternalEventBuilder6To10 for SourceBuilder<6, false>

Source§

impl ExternalEventBuilder6To10 for SourceBuilder<7, false>

Source§

impl ExternalEventBuilder6To10 for SourceBuilder<8, false>

Source§

impl ExternalEventBuilder6To10 for SourceBuilder<9, false>

Auto Trait Implementations§

§

impl<const N: u8, const IS_FAST: bool> Freeze for SourceBuilder<N, IS_FAST>

§

impl<const N: u8, const IS_FAST: bool> RefUnwindSafe for SourceBuilder<N, IS_FAST>

§

impl<const N: u8, const IS_FAST: bool> Send for SourceBuilder<N, IS_FAST>

§

impl<const N: u8, const IS_FAST: bool> Sync for SourceBuilder<N, IS_FAST>

§

impl<const N: u8, const IS_FAST: bool> Unpin for SourceBuilder<N, IS_FAST>

§

impl<const N: u8, const IS_FAST: bool> UnwindSafe for SourceBuilder<N, IS_FAST>

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.