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
Auto Trait Implementations§
impl Freeze for Channel
impl RefUnwindSafe for Channel
impl Send for Channel
impl Sync for Channel
impl Unpin for Channel
impl UnwindSafe for Channel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more