Data Structures | |
struct | _FILTER_NOTCH_CoeffObj_ |
Defines the notch filter coefficient (FILTER_COEFF) object. More... | |
struct | _FILTER_NOTCH_Obj_ |
Defines the notch filter (FILTER_NOTCH) object. More... | |
Typedefs | |
typedef struct _FILTER_NOTCH_CoeffObj_ | FILTER_NOTCH_CoeffObj |
Defines the notch filter coefficient (FILTER_COEFF) object. More... | |
typedef struct _FILTER_NOTCH_CoeffObj_ * | FILTER_NOTCH_Coeff_Handle |
Defines the notch filter coefficient (FILTER_NOTCH_Coeff) handle. More... | |
typedef struct _FILTER_NOTCH_Obj_ | FILTER_NOTCH_Obj |
Defines the notch filter (FILTER_NOTCH) object. More... | |
typedef struct _FILTER_NOTCH_Obj_ * | FILTER_NOTCH_Handle |
Defines the notch filter (FILTER_NOTCH) handle. More... | |
Functions | |
static float32_t | FILTER_NOTCH_get_in1 (FILTER_NOTCH_Handle handle) |
Gets the notch filter input value at time sample n-1. More... | |
static float32_t | FILTER_NOTCH_get_in2 (FILTER_NOTCH_Handle handle) |
Gets the notch filter input value at time sample n-2. More... | |
static float32_t | FILTER_NOTCH_get_out (FILTER_NOTCH_Handle handle) |
Gets the nothc filter output value at time sample n. More... | |
static float32_t | FILTER_NOTCH_get_out1 (FILTER_NOTCH_Handle handle) |
Gets the nothc filter output value at time sample n-1. More... | |
static float32_t | FILTER_NOTCH_get_out2 (FILTER_NOTCH_Handle handle) |
Gets the nothc filter output value at time sample n-2. More... | |
FILTER_NOTCH_Coeff_Handle | FILTER_COEFF_init (void *pMemory, const size_t numBytes) |
Initializes the notch filter coefficient handle. More... | |
FILTER_NOTCH_Handle | FILTER_NOTCH_init (void *pMemory, const size_t numBytes) |
Initializes the notch filter. More... | |
static void | FILTER_NOTCH_set_in (FILTER_NOTCH_Handle handle, const float32_t in) |
Sets the notch filter input value at time sample n. More... | |
static void | FILTER_NOTCH_set_in1 (FILTER_NOTCH_Handle handle, const float32_t in1) |
Sets the notch filter input value at time sample n-1. More... | |
static void | FILTER_NOTCH_set_in2 (FILTER_NOTCH_Handle handle, const float32_t in2) |
Sets the notch filter input value at time sample n-2. More... | |
static void | FILTER_NOTCH_set_out (FILTER_NOTCH_Handle handle, const float32_t out) |
Sets the notch filter output value at time sample n. More... | |
static void | FILTER_NOTCH_set_out1 (FILTER_NOTCH_Handle handle, const float32_t out1) |
Sets the notch filter output value at time sample n-1. More... | |
static void | FILTER_NOTCH_set_out2 (FILTER_NOTCH_Handle handle, const float32_t out2) |
Sets the notch filter output value at time sample n-2. More... | |
static float32_t | FILTER_NOTCH_run (FILTER_NOTCH_Handle notchHandle, FILTER_NOTCH_Coeff_Handle coeffHandle) |
Runs a notch filter of the form y[n] = a1*y[n-1] + a2*y[n-2] + b0*x[n] + b1*x[n-1] + b2*x[n-2]. More... | |
void | FILTER_NOTCH_reset (FILTER_NOTCH_Handle handle) |
Resets the notch filter. More... | |
void | FILTER_COEFF_update (FILTER_NOTCH_Coeff_Handle handle, const float32_t Ts, const float32_t freqGrid, const float32_t c2, const float32_t c1) |
Updates the notch filter numerator coefficients. More... | |
typedef struct _FILTER_NOTCH_CoeffObj_ FILTER_NOTCH_CoeffObj |
Defines the notch filter coefficient (FILTER_COEFF) object.
typedef struct _FILTER_NOTCH_CoeffObj_* FILTER_NOTCH_Coeff_Handle |
Defines the notch filter coefficient (FILTER_NOTCH_Coeff) handle.
typedef struct _FILTER_NOTCH_Obj_ FILTER_NOTCH_Obj |
Defines the notch filter (FILTER_NOTCH) object.
typedef struct _FILTER_NOTCH_Obj_* FILTER_NOTCH_Handle |
Defines the notch filter (FILTER_NOTCH) handle.
|
inlinestatic |
Gets the notch filter input value at time sample n-1.
[in] | handle | The notch filter handle |
References _FILTER_NOTCH_Obj_::in1.
|
inlinestatic |
Gets the notch filter input value at time sample n-2.
[in] | handle | The notch filter handle |
References _FILTER_NOTCH_Obj_::in2.
|
inlinestatic |
Gets the nothc filter output value at time sample n.
[in] | handle | The notch filter handle |
References _FILTER_NOTCH_Obj_::out.
|
inlinestatic |
Gets the nothc filter output value at time sample n-1.
[in] | handle | The notch filter handle |
References _FILTER_NOTCH_Obj_::out1.
|
inlinestatic |
Gets the nothc filter output value at time sample n-2.
[in] | handle | The notch filter handle |
References _FILTER_NOTCH_Obj_::out2.
FILTER_NOTCH_Coeff_Handle FILTER_COEFF_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the notch filter coefficient handle.
[in] | pMemory | A pointer to the memory for the notch filter coefficient object |
[in] | numBytes | The number of bytes allocated for the notch filter coefficient object, bytes |
FILTER_NOTCH_Handle FILTER_NOTCH_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the notch filter.
[in] | pMemory | A pointer to the memory for the notch filter object |
[in] | numBytes | The number of bytes allocated for the notch filter object, bytes |
|
inlinestatic |
Sets the notch filter input value at time sample n.
[in] | handle | The filter handle |
[in] | in | The input value at time sample n |
References _FILTER_NOTCH_Obj_::in.
|
inlinestatic |
Sets the notch filter input value at time sample n-1.
[in] | handle | The filter handle |
[in] | in1 | The input value at time sample n-1 |
References _FILTER_NOTCH_Obj_::in1.
|
inlinestatic |
Sets the notch filter input value at time sample n-2.
[in] | handle | The filter handle |
[in] | in2 | The input value at time sample n-2 |
References _FILTER_NOTCH_Obj_::in2.
|
inlinestatic |
Sets the notch filter output value at time sample n.
[in] | handle | The notch filter handle |
[in] | out | The output value at time sample n |
References _FILTER_NOTCH_Obj_::out.
|
inlinestatic |
Sets the notch filter output value at time sample n-1.
[in] | handle | The notch filter handle |
[in] | out1 | The output value at time sample n-1 |
References _FILTER_NOTCH_Obj_::out1.
|
inlinestatic |
Sets the notch filter output value at time sample n-2.
[in] | handle | The notch filter handle |
[in] | out2 | The output value at time sample n-2 |
References _FILTER_NOTCH_Obj_::out2.
|
inlinestatic |
Runs a notch filter of the form y[n] = a1*y[n-1] + a2*y[n-2] + b0*x[n] + b1*x[n-1] + b2*x[n-2].
[in] | notchHandle | The filter notch handle |
[in] | coeffHandle | The filter coefficient handle |
References _FILTER_NOTCH_CoeffObj_::a1, _FILTER_NOTCH_CoeffObj_::a2, _FILTER_NOTCH_CoeffObj_::b0, _FILTER_NOTCH_CoeffObj_::b1, _FILTER_NOTCH_CoeffObj_::b2, _FILTER_NOTCH_Obj_::in, _FILTER_NOTCH_Obj_::in1, _FILTER_NOTCH_Obj_::in2, _FILTER_NOTCH_Obj_::out, _FILTER_NOTCH_Obj_::out1, and _FILTER_NOTCH_Obj_::out2.
void FILTER_NOTCH_reset | ( | FILTER_NOTCH_Handle | handle | ) |
Resets the notch filter.
[in] | handle | The notch filter handle |
void FILTER_COEFF_update | ( | FILTER_NOTCH_Coeff_Handle | handle, |
const float32_t | Ts, | ||
const float32_t | freqGrid, | ||
const float32_t | c2, | ||
const float32_t | c1 | ||
) |
Updates the notch filter numerator coefficients.
[in] | handle | The notch filter coefficient handle |
[in] | Ts | The notch filter sampling period, sec |
[in] | freqGrid | The Nominal AC grid frequency for notch filter, Hz |
[in] | c2 | The notch filter parameter |
[in] | c1 | The notch filter parameter |