autd3_driver::datagram

Trait Datagram

source
pub trait Datagram: Debug {
    type G: OperationGenerator;

    // Required methods
    fn operation_generator(
        self,
        geometry: &Geometry,
    ) -> Result<Self::G, AUTDInternalError>;
    fn timeout(&self) -> Option<Duration>;

    // Provided method
    fn parallel_threshold(&self) -> Option<usize> { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

Implementations on Foreign Types§

source§

impl<G1, G2, D1, D2> Datagram for (D1, D2)
where D1: Datagram<G = G1>, D2: Datagram<G = G2>, G1: OperationGenerator<O2 = NullOp>, G2: OperationGenerator<O2 = NullOp>,

source§

type G = CombinedOperationGenerator<<D1 as Datagram>::G, <D2 as Datagram>::G>

source§

fn operation_generator( self, geometry: &Geometry, ) -> Result<Self::G, AUTDInternalError>

source§

fn timeout(&self) -> Option<Duration>

source§

fn parallel_threshold(&self) -> Option<usize>

Implementors§

source§

impl Datagram for FirmwareVersionType

source§

type G = FetchFirmwareInfoOpGenerator

source§

impl Datagram for SwapSegment

source§

type G = SwapSegmentOpGenerator

source§

impl Datagram for Clear

source§

type G = ClearOpGenerator

source§

impl Datagram for Synchronize

source§

type G = SynchronizeOpGenerator

source§

impl<D: Datagram> Datagram for DatagramWithParallelThreshold<D>

source§

type G = <D as Datagram>::G

source§

impl<D: Datagram> Datagram for DatagramWithTimeout<D>

source§

type G = <D as Datagram>::G

source§

impl<D: DatagramS> Datagram for DatagramWithSegment<D>

source§

type G = <D as DatagramS>::G

source§

impl<D: DatagramS> Datagram for D

source§

type G = <D as DatagramS>::G

source§

impl<F: Fn(&Device) -> bool> Datagram for ForceFan<F>

source§

type G = ForceFanOpGenerator<F>

source§

impl<F: Fn(&Device) -> bool> Datagram for ReadsFPGAState<F>

source§

type G = ReadsFPGAStateOpGenerator<F>

source§

impl<F: Fn(&Device) -> CpuGPIOPort + Send + Sync> Datagram for CpuGPIO<F>

source§

type G = CpuGPIOOutOpGenerator<F>

source§

impl<F: Fn(&Device, GPIOOut) -> DebugType<'_> + Send + Sync> Datagram for DebugSettings<F>

source§

type G = DebugSettingOpGenerator<F>

source§

impl<FT: Fn(&Transducer) -> Phase + Send + Sync, F: Fn(&Device) -> FT> Datagram for PhaseCorrection<FT, F>

source§

type G = PhaseCorrectionOpGenerator<FT, F>

source§

impl<H: Fn(GPIOIn) -> bool + Send + Sync, F: Fn(&Device) -> H> Datagram for EmulateGPIOIn<H, F>

source§

type G = EmulateGPIOInOpGenerator<H, F>

source§

impl<H: Fn(u8) -> u8 + Send + Sync, F: Fn(&Device) -> H> Datagram for PulseWidthEncoder<H, F>

source§

type G = PulseWidthEncoderOpGenerator<H, F>

source§

impl<T: SilencerConfig> Datagram for Silencer<T>
where SilencerOpGenerator<T>: OperationGenerator,

source§

type G = SilencerOpGenerator<T>