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 devices
  • link - 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.

Return the link is opened.

Update control flags

Set output delay

Arguments

  • delay - delay for each transducer in units of ultrasound period (i.e. 25us).

Clear all data

Synchronize the devices

Arguments

  • config - Configuration of Modulation

Close controller

Stop outputting

Send gain and modulation to the devices

Arguments

  • g - Gain
  • m - Modulation

Send gain to the devices

Arguments

  • g - Gain

Send modulation to the devices

Arguments

  • m - Modulation

Send sequence to the devices

Arguments

  • s - Sequence

Return firmware information of the devices

Return Spatio-temporal controller

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more

Checks if self is actually part of its subset T (and can be converted to it).

Use with care! Same as self.to_subset but without any property checks. Always succeeds.

The inclusion map: converts self to the equivalent element of its superset.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.