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 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