[][src]Function autd_gain::convert_to_pwm_params

pub fn convert_to_pwm_params(amp: u8, phase: u8) -> (u8, u8)

Convert amplitude and phase of sound to duty ratio and shift duration of Pulse Width Modulation.