pub trait ChannelIFace<'a, S: TimerSpeed + 'a>{
// Required methods
fn configure(&mut self, config: Config<'a, S>) -> Result<(), Error>;
fn set_duty(&self, duty_pct: u8) -> Result<(), Error>;
fn start_duty_fade(
&self,
start_duty_pct: u8,
end_duty_pct: u8,
duration_ms: u16,
) -> Result<(), Error>;
fn is_duty_fade_running(&self) -> bool;
}
Available on crate feature
unstable
only.Expand description
Channel interface
Required Methods§
Sourcefn start_duty_fade(
&self,
start_duty_pct: u8,
end_duty_pct: u8,
duration_ms: u16,
) -> Result<(), Error>
fn start_duty_fade( &self, start_duty_pct: u8, end_duty_pct: u8, duration_ms: u16, ) -> Result<(), Error>
Start a duty-cycle fade
Sourcefn is_duty_fade_running(&self) -> bool
fn is_duty_fade_running(&self) -> bool
Check whether a duty-cycle fade is running