pub struct Agc<T> { /* private fields */ }
Expand description
Automatic Gain Control Block
Implementations§
source§impl<T> Agc<T>where
T: Send + Sync + ComplexFloat + 'static,
impl<T> Agc<T>where T: Send + Sync + ComplexFloat + 'static,
sourcepub fn new(
squelch: f32,
max_gain: f32,
gain: f32,
adjustment_rate: f32,
reference_power: f32,
gain_locked: bool
) -> Block
pub fn new( squelch: f32, max_gain: f32, gain: f32, adjustment_rate: f32, reference_power: f32, gain_locked: bool ) -> Block
Create AGC Block
Parameter
squelch
: surpress anything below this levelmax_gain
: maximum gain settinggain
: initial gain settingreference_power
: target power levelgain_locked
: lock gain to fixed value
Message Handler
gain_locked
: setgain_locked
parameter with aPmt::Bool
.max_gain
: setmax_gain
parameter with aPmt::F32
.adjustment_rate
: setadjustment_rate
with aPmt::F32
.reference_power
: setreference_power
with aPmt::F32
.
Stream Input
in
: Input stream of items, implementingComplexFloat
Stream Output
out
: Leveled output items of same type asin
stream.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Agc<T>where T: RefUnwindSafe,
impl<T> Send for Agc<T>where T: Send,
impl<T> Sync for Agc<T>where T: Sync,
impl<T> Unpin for Agc<T>where T: Unpin,
impl<T> UnwindSafe for Agc<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more