Skip to content

EmulateGpioIn

EmulateGpioIn is a command that asserts the four GPIO input terminals of the devices from software. The effective value the FPGA sees is the logical OR of the physical terminal input and EmulateGpioIn.

EmulateGpioIn { values };
Field Type Default Description
values [bool; 4] all false Whether to assert each of inputs 0..3 (true asserts)
use autd3_rs::commands::{Clear, EmulateGpioIn, Synchronize};
use autd3_rs::geometry::{Autd3, Geometry};
use autd3_rs::Client;
use autd3_rs::udp::TransportOption;
let geometry = Geometry::new(vec![Autd3::default()]);
let option = TransportOption::default();
let mut client = Client::open(&geometry, &option).await?;
client.send(Clear).await?;
client.send(Synchronize).await?;
client.send(EmulateGpioIn {
values: [true, false, false, false],
}).await?;