pub struct Channel { /* private fields */ }
Implementations§
source§impl Channel
impl Channel
sourcepub fn configure(
&mut self,
ctrl_signal: PcntSource,
edge_signal: PcntSource,
config: Config
)
pub fn configure(
&mut self,
ctrl_signal: PcntSource,
edge_signal: PcntSource,
config: Config
)
Configure the channel
sourcepub fn set_ctrl_signal(&self, source: PcntSource, invert: bool) -> &Channel
pub fn set_ctrl_signal(&self, source: PcntSource, invert: bool) -> &Channel
Set the control signal (pin/high/low) for this channel
sourcepub fn set_edge_signal(&self, source: PcntSource, invert: bool) -> &Channel
pub fn set_edge_signal(&self, source: PcntSource, invert: bool) -> &Channel
Set the edge signal (pin/high/low) for this channel