pub struct HyperdebugGpioBitbanging { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl GpioBitbanging for HyperdebugGpioBitbanging
impl GpioBitbanging for HyperdebugGpioBitbanging
Source§fn start<'a>(
&self,
pins: &[&dyn GpioPin],
clock_tick: Duration,
waveform: Box<[BitbangEntry<'a, 'a>]>,
) -> Result<Box<dyn GpioBitbangOperation<'a, 'a> + 'a>>
fn start<'a>( &self, pins: &[&dyn GpioPin], clock_tick: Duration, waveform: Box<[BitbangEntry<'a, 'a>]>, ) -> Result<Box<dyn GpioBitbangOperation<'a, 'a> + 'a>>
Apply the given sequence of values to the given set of GPIO pins, by each tick of a clock
with the given period. This function does not change the mode of any pins, they must
already be put into
PushPull
, OpenDrain
or Input
mode as appropriate. (In the
latter case, the specified waveform data does not matter, as the pin is not driving, and
would be included in the set of pins only in order to have it sampled at each clock tick.)
Returns a GpioBitbangOperation
which must be continuously polled, to know when the
waveform is complete.Source§fn dac_start(
&self,
pins: &[&dyn GpioPin],
clock_tick: Duration,
waveform: Box<[DacBangEntry<'_>]>,
) -> Result<Box<dyn GpioDacBangOperation>>
fn dac_start( &self, pins: &[&dyn GpioPin], clock_tick: Duration, waveform: Box<[DacBangEntry<'_>]>, ) -> Result<Box<dyn GpioDacBangOperation>>
Apply given sequence of voltage values to the given set of pins assumed to already be in
AnalogOutput mode.
Source§fn run<'a>(
&self,
pins: &[&dyn GpioPin],
clock_tick: Duration,
waveform: Box<[BitbangEntry<'a, 'a>]>,
) -> Result<Box<[BitbangEntry<'a, 'a>]>>
fn run<'a>( &self, pins: &[&dyn GpioPin], clock_tick: Duration, waveform: Box<[BitbangEntry<'a, 'a>]>, ) -> Result<Box<[BitbangEntry<'a, 'a>]>>
Convenience method which starts the bitbanging operation, and blocks until it is complete.
Auto Trait Implementations§
impl Freeze for HyperdebugGpioBitbanging
impl !RefUnwindSafe for HyperdebugGpioBitbanging
impl !Send for HyperdebugGpioBitbanging
impl !Sync for HyperdebugGpioBitbanging
impl Unpin for HyperdebugGpioBitbanging
impl !UnwindSafe for HyperdebugGpioBitbanging
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