Struct autd3::controller::Controller
source · pub struct Controller<L: Link, T: Transducer> {
pub ack_check_timeout: Duration,
pub send_interval: Duration,
pub force_fan: bool,
pub reads_fpga_info: bool,
/* private fields */
}Fields§
§ack_check_timeout: Duration§send_interval: Duration§force_fan: bool§reads_fpga_info: boolImplementations§
source§impl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
pub fn open(geometry: Geometry<T>, link: L) -> Result<Controller<L, T>>
source§impl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
pub fn geometry(&self) -> &Geometry<T>
pub fn sound_speed(&self) -> f64
pub fn set_sound_speed(&mut self, value: f64)
sourcepub fn send<'a, 'b, S: Sendable<T>>(
&'a mut self,
s: &'b mut S
) -> Sender<'a, 'b, L, T, S, S::H, S::B>
pub fn send<'a, 'b, S: Sendable<T>>(
&'a mut self,
s: &'b mut S
) -> Sender<'a, 'b, L, T, S, S::H, S::B>
sourcepub fn firmware_infos(&mut self) -> Result<Vec<FirmwareInfo>>
pub fn firmware_infos(&mut self) -> Result<Vec<FirmwareInfo>>
Return firmware information of the devices
pub fn close(&mut self) -> Result<bool>
source§impl<L: Link, T: Transducer> Controller<L, T>
impl<L: Link, T: Transducer> Controller<L, T>
Auto Trait Implementations§
impl<L, T> RefUnwindSafe for Controller<L, T>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<L, T> Send for Controller<L, T>where
T: Send,
impl<L, T> Sync for Controller<L, T>where
L: Sync,
T: Sync,
impl<L, T> Unpin for Controller<L, T>where
L: Unpin,
T: Unpin,
impl<L, T> UnwindSafe for Controller<L, T>where
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.