pub struct Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,{ /* private fields */ }
Expand description
Channel struct
Implementations§
source§impl<'a, S, O> Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,
impl<'a, S, O> Channel<'a, S, O>where S: TimerSpeed, O: OutputPin,
sourcepub fn new(
number: Number,
output_pin: impl Peripheral<P = O> + 'a
) -> Channel<'a, S, O>
pub fn new( number: Number, output_pin: impl Peripheral<P = O> + 'a ) -> Channel<'a, S, O>
Return a new channel
Trait Implementations§
source§impl<'a, O> ChannelHW<O> for Channel<'a, HighSpeed, O>where
O: OutputPin,
impl<'a, O> ChannelHW<O> for Channel<'a, HighSpeed, O>where O: OutputPin,
Channel HW interface for HighSpeed channels
source§fn configure_hw(&mut self) -> Result<(), Error>
fn configure_hw(&mut self) -> Result<(), Error>
Configure Channel HW except for the duty which is set via
Self::set_duty_hw
.
source§fn set_duty_hw(&self, duty: u32)
fn set_duty_hw(&self, duty: u32)
Set duty in channel HW
source§impl<'a, O> ChannelHW<O> for Channel<'a, LowSpeed, O>where
O: OutputPin,
impl<'a, O> ChannelHW<O> for Channel<'a, LowSpeed, O>where O: OutputPin,
Channel HW interface for LowSpeed channels
source§fn set_duty_hw(&self, duty: u32)
fn set_duty_hw(&self, duty: u32)
Set duty in channel HW