Initial import

git-svn-id: http://moon:8086/svn/software/trunk/libsrc/radio@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2014-07-19 07:44:42 +00:00
commit 290fd5f5e0
36 changed files with 13976 additions and 0 deletions
Executable
+39
View File
@@ -0,0 +1,39 @@
// --------------------------------------------------------------
#ifndef AGC_H
#define AGC_H
#include <stdint.h>
#include "radio_types.h"
#include "statistics.h"
// --------------------------------------------------------------
// Types
// --------------------------------------------------------------
typedef struct _agc_t
{
radio_float_t w;
sl_minmax_t slMax;
} agc_t;
// --------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
// --------------------------------------------------------------
// AGC
// --------------------------------------------------------------
// Scalar version
void AGC_Init(agc_t *pObj, uint32_t windowLength, radio_float_t w_init);
void AGC_Free(agc_t *pObj);
void AGC_Train(agc_t *pObj, radio_float_t e, radio_float_t mu);
void AGC_Process(agc_t *pObj, radio_float_t x, radio_float_t mu, radio_float_t target);
radio_float_t AGC_GetWeight(agc_t *pObj);
// --------------------------------------------------------------
#ifdef __cplusplus
}
#endif // __cplusplus
// --------------------------------------------------------------
#endif // AGC_H