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§
Sourcefn enable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES)
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
Sourcefn disable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES)
fn disable_set_event<ES: EventSource<TIM, PSCL>>(&mut self, set_event: &ES)
Stop listening to the specified event
Sourcefn enable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES)
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
Sourcefn disable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES)
fn disable_rst_event<ES: EventSource<TIM, PSCL>>(&mut self, reset_event: &ES)
Stop listening to the specified event
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.