HrOutput

Trait HrOutput 

Source
pub trait HrOutput<TIM, PSCL> {
    // Required methods
    fn enable(&mut self);
    fn disable(&mut self);
    fn enable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES);
    fn disable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES);
    fn enable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES);
    fn disable_rst_event<ES: EventSource<TIM, PSCL>>(
        &mut self,
        reset_event: &ES,
    );
    fn get_state(&self) -> State;
}

Required Methods§

Source

fn enable(&mut self)

Enable this output

Source

fn disable(&mut self)

Disable this output

Source

fn enable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES)

Set this output to active every time the specified event occurs

NOTE: Enabling the same event for both SET and RESET will make that event TOGGLE the output

Source

fn disable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES)

Stop listening to the specified event

Source

fn enable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES)

Set this output to not active every time the specified event occurs

NOTE: Enabling the same event for both SET and RESET will make that event TOGGLE the output

Source

fn disable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES)

Stop listening to the specified event

Source

fn get_state(&self) -> State

Get current state of the output

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, CH: ChExt, R: DacResetTrigger, S: DacStepTrigger> HrOutput<TIM, PSCL> for HrOut<TIM, PSCL, CH, R, S>