[][src]Struct autd::AUTD

#[repr(C)]pub struct AUTD { /* fields omitted */ }

The structure that controls AUTDs.

Implementations

impl AUTD[src]

pub fn create() -> AUTD[src]

constructor

pub fn open<L: Link + 'static>(&mut self, link: L) -> Result<(), Box<dyn Error>>[src]

Open AUTDs

Arguments

  • link - Open device with a specific link.

Example

use autd::prelude::*;
use autd_soem_link::SoemLink;

let mut autd = AUTD::create();

autd.geometry().add_device(Vector3::zeros(), Vector3::zeros());

let ifname = "interface name";
let link = SoemLink::new(&ifname, autd.geometry().num_devices() as u16);
match autd.open(link) {
    Ok(()) => (),
    Err(e) => println!("{}", e),
}

pub fn geometry(&self) -> MutexGuard<Geometry>[src]

pub fn set_silent_mode(&mut self, silent: bool)[src]

pub fn clear(&mut self) -> Result<bool, Box<dyn Error>>[src]

pub fn calibrate(&mut self) -> Result<bool, Box<dyn Error>>[src]

pub fn close(self)[src]

pub fn is_open(&self) -> bool[src]

pub fn is_silent(&self) -> bool[src]

pub fn remaining_in_buffer(&self) -> usize[src]

pub fn stop(&mut self)[src]

pub fn append_gain(&mut self, gain: Box<dyn Gain>)[src]

pub fn append_gain_sync(&mut self, gain: Box<dyn Gain>)[src]

pub fn append_gain_sync_with_wait(
    &mut self,
    gain: Box<dyn Gain>,
    wait_for_send: bool
)
[src]

pub fn append_modulation(&mut self, modulation: Modulation)[src]

pub fn append_modulation_sync(&mut self, modulation: Modulation)[src]

pub fn flush(&mut self)[src]

pub fn firmware_info_list(&mut self) -> Vec<FirmwareInfo>[src]

impl AUTD[src]

pub fn append_stm_gains(&mut self, gains: Vec<Box<dyn Gain>>)[src]

pub fn start_stm(&mut self, freq: f64)[src]

pub fn stop_stm(&mut self)[src]

pub fn finish_stm(&mut self)[src]

impl AUTD[src]

pub fn append_sequence(&mut self, seq: PointSequence)[src]

Trait Implementations

impl Drop for AUTD[src]

Auto Trait Implementations

impl !RefUnwindSafe for AUTD

impl Send for AUTD

impl !Sync for AUTD

impl Unpin for AUTD

impl !UnwindSafe for AUTD

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V

impl<V> IntoVec<V> for V

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,