Trait on_off_sequence_output::OutputUpdate[][src]

pub trait OutputUpdate {
    type Error;
    fn update(&mut self) -> Result<bool, Self::Error>;
}
Expand description

OutputUpdate Trait which provides an update() method

Associated Types

Required methods

fn update(&mut self) -> Result<bool, Self::Error>[src]

Updates the output logic and potentially switches the LED state

Returns

  • Error - if the hardware GPIO switch to on/off failed
  • true - if no further update repetitions are necessary to complete the the output
  • false - otherwise

Notes

  • Needs to be called periodically.
  • Side Effect: calls the aggregated GPIO pin to switch on/off

Implementors

impl<T: OutputPin> OutputUpdate for OnOffSequenceOutput<T>[src]

fn update(&mut self) -> Result<bool, Self::Error>[src]

Updates the output logic and potentially switches the LED state

type Error = T::Error