Trait autd3_driver::datagram::Modulation
source · pub trait Modulation: ModulationProperty {
// Required method
fn calc(
&self,
geometry: &Geometry
) -> Result<Vec<EmitIntensity>, AUTDInternalError>;
}Expand description
Modulation controls the amplitude modulation data.
Modulation has following restrictions:
- The buffer size is up to 65536.
- The sampling rate is [crate::firmware::fpga::fpga_clk_freq()]/N, where N is a 32-bit unsigned integer and must be at least [crate::fpga::SAMPLING_FREQ_DIV_MIN].