Struct stabilizer::hardware::pounder::timestamp::Timestamper
source · pub struct Timestamper { /* private fields */ }
Expand description
Software unit to timestamp stabilizer ADC samples using an external pounder reference clock.
Implementations§
source§impl Timestamper
impl Timestamper
sourcepub fn new(
timestamp_timer: PounderTimestampTimer,
capture_channel: Channel1,
sampling_timer: &mut SamplingTimer,
_clock_input: PA0<Alternate<3>>,
batch_size: usize
) -> Self
pub fn new( timestamp_timer: PounderTimestampTimer, capture_channel: Channel1, sampling_timer: &mut SamplingTimer, _clock_input: PA0<Alternate<3>>, batch_size: usize ) -> Self
Construct the pounder sample timestamper.
§Args
timestamp_timer
- The timer peripheral used for capturing timestamps from.capture_channel
- The input capture channel for collecting timestamps.sampling_timer
- The stabilizer ADC sampling timer._clock_input
- The input pin for the external clock from Pounder.batch_size
- The number of samples in each batch.
§Returns
The new pounder timestamper in an operational state.
sourcepub fn update_period(&mut self, period: u16)
pub fn update_period(&mut self, period: u16)
Update the period of the underlying timestamp timer.
Auto Trait Implementations§
impl Freeze for Timestamper
impl RefUnwindSafe for Timestamper
impl Send for Timestamper
impl !Sync for Timestamper
impl Unpin for Timestamper
impl UnwindSafe for Timestamper
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