Output mask

NOTE: Available since firmware v12.1.0

OutputMask can be sent to stop the output of each transducer regardless of the Intensity values of Gain, FociSTM, and GainSTM.

use autd3::prelude::*;
fn main() {
let _ =
OutputMask::new(|_dev| |_tr| false);
}
#include<autd3.hpp>
int main() {
using namespace autd3;
OutputMask([](const auto&) { return [](const auto&) { return false; }; });
return 0; }
using AUTD3Sharp;
new OutputMask(_dev => _tr => false);
from pyautd3 import OutputMask
OutputMask(lambda _dev: lambda _tr: False)

The constructor argument for OutputMask is Fn(&Device) -> Fn(&Transducer) -> bool and the output of transducers set to false will be disabled.