Trait autd3_driver::datagram::Modulation
source · pub trait Modulation: ModulationProperty {
// Required method
fn calc(&self) -> Result<Vec<EmitIntensity>, AUTDInternalError>;
// Provided method
fn len(&self) -> Result<usize, 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::fpga::FPGA_CLK_FREQ/N, where N is a 32-bit unsigned integer and must be at least crate::fpga::SAMPLING_FREQ_DIV_MIN.