115 extern OFFSET_Handle
OFFSET_init(
void *pMemory,
const size_t numBytes);
158 #endif // end of _OFFSET_H_ definition
_iq value
the offset value (iq)
Contains the public interface to the first-order filter (FILTER_FO) module routines.
Contains the public interface to the types definitions.
void OFFSET_setOffset(OFFSET_Handle handle, float_t offsetValue)
Sets the offset value.
static float_t OFFSET_getOffset(OFFSET_Handle handle)
Gets the offset value.
FILTER_FO_Obj filter
the first order filter object used.
float_t value
the offset value
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.
void OFFSET_setBeta(OFFSET_Handle handle, const float_t beta_rad)
Sets the beta offset filter coefficient.
struct _OFFSET_Obj_ * OFFSET_Handle
Defines the OFFSET handle.
struct _OFFSET_ OFFSET_Obj
Defines the offset (OFFSET) object.
void OFFSET_setInitCond(OFFSET_Handle handle, const float_t initCond)
Set the initial condition of the integrator or the value of y[n-1].
FILTER_FO_Handle filterHandle
the first order filter handle.
_iq OFFSET_getBeta(OFFSET_Handle handle)
Gets the beta offset filter coefficient.
static void OFFSET_run(OFFSET_Handle handle, const float_t inputValue)
Runs an offset filter of the form y[n] = beta*x[n] + (1 - beta)*y[n-1] y -> The DC offset x -> The AD...
OFFSET_Handle OFFSET_init(void *pMemory, const size_t numBytes)
Initializes the offset.
Defines the first-order filter (FILTER_FO) object.
float float_t
Defines the portable data type for 32 bit, signed floating-point data.
Defines the offset (OFFSET) object.