/*
* File: mod_delay.rs
* Project: src
* Created Date: 29/08/2023
* Author: Shun Suzuki
* -----
* Last Modified: 04/09/2023
* Modified By: Shun Suzuki (suzuki@hapis.k.u-tokyo.ac.jp)
* -----
* Copyright (c) 2023 Shun Suzuki. All rights reserved.
*
*/
use crate::{datagram::*, error::AUTDInternalError, geometry::*};
/// Datagram to set modulation delay
#[derive(Default)]
pub struct ModDelay {}
impl ModDelay {
pub const fn new() -> Self {
Self {}
}
}
impl<T: Transducer> Datagram<T> for ModDelay {
type O1 = crate::operation::ModDelayOp;
type O2 = crate::operation::NullOp;
fn operation(self) -> Result<(Self::O1, Self::O2), AUTDInternalError> {
Ok((Self::O1::default(), Self::O2::default()))
}
}