Trait HrSlaveTimer

Source
pub trait HrSlaveTimer: HrTimer {
    type CptCh1;
    type CptCh2;

    // Required methods
    fn enable_reset_event<E: TimerResetEventSource<Self::Timer, Self::Prescaler>>(
        &mut self,
        _event: &E,
    );
    fn disable_reset_event<E: TimerResetEventSource<Self::Timer, Self::Prescaler>>(
        &mut self,
        _event: &E,
    );
    unsafe fn swap_outputs(&self, _hr_control: &mut HrPwmCtrl, swap: SwapPins);
}

Required Associated Types§

Required Methods§

Source

fn enable_reset_event<E: TimerResetEventSource<Self::Timer, Self::Prescaler>>( &mut self, _event: &E, )

Start listening to the specified event

Source

fn disable_reset_event<E: TimerResetEventSource<Self::Timer, Self::Prescaler>>( &mut self, _event: &E, )

Stop listening to the specified event

Source

unsafe fn swap_outputs(&self, _hr_control: &mut HrPwmCtrl, swap: SwapPins)

This is only allowed while having register preload enabled (PREEN is set to 1)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<TIM: InstanceX, PSCL: HrtimPrescaler, CPT1, CPT2, DacRst> HrSlaveTimer for HrTim<TIM, PSCL, CPT1, CPT2, DacRst>
where DacRst: DacResetTrigger,

Source§

type CptCh1 = HrCapt<<HrTim<TIM, PSCL, CPT1, CPT2, DacRst> as HrTimer>::Timer, <HrTim<TIM, PSCL, CPT1, CPT2, DacRst> as HrTimer>::Prescaler, Ch1, NoDma>

Source§

type CptCh2 = HrCapt<<HrTim<TIM, PSCL, CPT1, CPT2, DacRst> as HrTimer>::Timer, <HrTim<TIM, PSCL, CPT1, CPT2, DacRst> as HrTimer>::Prescaler, Ch2, NoDma>