Struct autd3::Controller [−][src]
pub struct Controller<L: Link> { pub silent_mode: bool, pub reads_fpga_info: bool, pub force_fan: bool, // some fields omitted }
Expand description
Controller for AUTD3
Fields
silent_mode: bool
Silent mode flag. Default is true. The flags in the actual devices will be update after update_ctrl_flags or send functions is called.
reads_fpga_info: bool
If true, the devices return FPGA information in all frames. Default is false. The flags in the actual devices will be update after update_ctrl_flags or send functions is called.
force_fan: bool
If true, the fan will be forced to start. Default is false. The flags in the actual devices will be update after update_ctrl_flags or send functions is called.
Implementations
Construct controller with geometry
and open link
.
Arguments
geometry
- Geometry of the deviceslink
- Link to the device
Return FPGA information of the devices (the first bit represent whether the fan is running).
To use this function, set reads_fpga_info
true.
Update control flags
Set output delay
Arguments
delay
- delay for each transducer in units of ultrasound period (i.e. 25us).
Return firmware information of the devices
Return Spatio-temporal controller
Auto Trait Implementations
impl<L> RefUnwindSafe for Controller<L> where
L: RefUnwindSafe,
impl<L> Send for Controller<L>
impl<L> Sync for Controller<L> where
L: Sync,
impl<L> Unpin for Controller<L> where
L: Unpin,
impl<L> UnwindSafe for Controller<L> where
L: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.