pub struct ProfileSerializer { /* private fields */ }
Expand description
Represents a means of serializing a DDS profile for writing to a stream.
Implementations§
Source§impl ProfileSerializer
impl ProfileSerializer
Sourcepub fn push(
&mut self,
channels: Channel,
ftw: Option<u32>,
pow: Option<u14>,
acr: Option<Acr>,
)
pub fn push( &mut self, channels: Channel, ftw: Option<u32>, pow: Option<u14>, acr: Option<Acr>, )
Update a number of channels with the requested profile.
§Args
channels
- A set of channels to apply the configuration to.ftw
- If provided, indicates a frequency tuning word for the channels.pow
- If provided, indicates a phase offset word for the channels.acr
- If provided, indicates the amplitude control register for the channels. The ACR should be stored in the 3 LSB of the word. Note that if amplitude scaling is to be used, the “Amplitude multiplier enable” bit must be set.
Auto Trait Implementations§
impl Freeze for ProfileSerializer
impl RefUnwindSafe for ProfileSerializer
impl Send for ProfileSerializer
impl Sync for ProfileSerializer
impl Unpin for ProfileSerializer
impl UnwindSafe for ProfileSerializer
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