[][src]Trait autd::prelude::Gain

pub trait Gain: Send {
    fn build(&mut self, geometry: &Geometry);
fn get_data(&self) -> &[u8]; }

Gain contains amplitude and phase of each transducer in the AUTD. Note that the amplitude and phase mean duty ratio and shift duration of Pulse Width Modulation, respectively.

Required methods

fn build(&mut self, geometry: &Geometry)

Calculate amplitude and phase of each transducers.

fn get_data(&self) -> &[u8]

Get amplitude and phase data of all transducers. The data must be [0-th transducer's phase, 0-th transducer's amplitude, 1-th transducer's phase, ...].

Loading content...

Implementors

impl Gain for BesselBeamGain[src]

impl Gain for FocalPointGain[src]

impl Gain for NullGain[src]

impl Gain for PlaneWaveGain[src]

Loading content...