autd3_driver::datagram

Trait GainContextGenerator

Source
pub trait GainContextGenerator {
    type Context: GainContext;

    // Required method
    fn generate(&mut self, device: &Device) -> Self::Context;
}
Expand description

A trait for generating a context for the gain operation.

Required Associated Types§

Source

type Context: GainContext

The type of the context that actually performs the calculation.

Required Methods§

Source

fn generate(&mut self, device: &Device) -> Self::Context

Generate a context for the given device.

Implementors§