127 extern OFFSET_Handle
OFFSET_init(
void *pMemory,
const size_t numBytes);
170 #endif // end of _OFFSET_H_ definition
_iq value
the offset value (iq)
Contains the public interface to the types definitions.
FILTER_FO_Obj filter
the first order filter object used.
static _iq FILTER_FO_run(FILTER_FO_Handle handle, const _iq inputValue)
Runs a first-order filter of the form y[n] = b0*x[n] + b1*x[n-1] - a1*y[n-1].
Defines the first-order filter (FILTER_FO) object.
_iq bias
the bias value (iq)
void OFFSET_setInitCond(OFFSET_Handle handle, const _iq initCond)
Set the initial condition of the integrator or the value of y[n-1].
void OFFSET_setOffset(OFFSET_Handle handle, _iq offsetValue)
Sets the offset value.
struct _OFFSET_Obj_ * OFFSET_Handle
Defines the OFFSET handle.
void OFFSET_setBeta(OFFSET_Handle handle, const _iq beta)
Sets the beta offset filter coefficient.
struct _OFFSET_ OFFSET_Obj
Defines the offset (OFFSET) object.
FILTER_FO_Handle filterHandle
the first order filter handle.
_iq OFFSET_getBeta(OFFSET_Handle handle)
Gets the beta offset filter coefficient.
OFFSET_Handle OFFSET_init(void *pMemory, const size_t numBytes)
Initializes the offset.
Defines the first-order filter (FILTER_FO) object.
static void OFFSET_run(OFFSET_Handle handle, const _iq inputValue)
Runs an offset filter of the form y[n] = beta*(x[n]+bias) + (1 - beta)*y[n-1] y -> The DC offset x ->...
static _iq OFFSET_getOffset(OFFSET_Handle handle)
Gets the offset value.
Contains the public interface to the first-order filter (FILTER_FO) module routines.
Defines the offset (OFFSET) object.