pub struct DdsOutput { /* private fields */ }
Expand description

The DDS profile update stream.

Implementations§

source§

impl DdsOutput

source

pub fn new( qspi: QspiInterface, io_update_trigger: HighResTimerE, mode: Mode ) -> Self

Construct a new DDS output stream.

§Note

It is assumed that the QSPI stream and the IO_Update trigger timer have been configured in a way such that the profile has sufficient time to be written before the IO_Update signal is generated.

§Args
  • qspi - The QSPI interface to the run the stream on.
  • io_update_trigger - The HighResTimerE used to generate IO_Update pulses.
  • config - The frozen DDS configuration.
source

pub fn builder(&mut self) -> ProfileBuilder<'_>

Get a builder for serializing a Pounder DDS profile.

source

pub fn write(&mut self, profile: &[u32])

Write a profile to the stream.

§Note:

If a profile of more than 8 words is provided, the QSPI interface will likely stall execution. If there are still bytes pending in the FIFO, the write will certainly stall.

§Args
  • profile - The serialized DDS profile to write.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.