autd3_driver/firmware/v10/fpga/
params.rs

1use autd3_core::common::mm;
2
3/// The unit of the fixed-point number used in the [`FociSTM`].
4///
5/// [`FociSTM`]: crate::datagram::FociSTM
6pub const FOCI_STM_FIXED_NUM_UNIT: f32 = 0.025 * mm;
7/// The width of the fixed-point number used in the [`FociSTM`].
8///
9/// [`FociSTM`]: crate::datagram::FociSTM
10pub const FOCI_STM_FIXED_NUM_WIDTH: usize = 18;
11
12/// The maximum buffer size of [`Modulation`].
13///
14/// [`Modulation`]: autd3_core::modulation::Modulation
15pub const MOD_BUF_SIZE_MAX: usize = 32768;
16
17/// The maximum number of foci.
18pub const FOCI_STM_FOCI_NUM_MAX: usize = 8;
19/// The maximum buffer size of [`FociSTM`].
20///
21/// [`FociSTM`]: crate::datagram::FociSTM
22pub const FOCI_STM_BUF_SIZE_MAX: usize = 8192;
23/// The maximum buffer size of [`GainSTM`].
24///
25/// [`GainSTM`]: crate::datagram::GainSTM
26pub const GAIN_STM_BUF_SIZE_MAX: usize = 1024;
27
28/// The ultrasound period count bits.
29pub const ULTRASOUND_PERIOD_COUNT_BITS: usize = 8;
30
31#[doc(hidden)]
32pub const PWE_BUF_SIZE: usize = 256;