📄 lec_miket.h
字号:
/*------------------------------------------------------------------------*
* *
* THIS IS AN UNPUBLISHED WORK CONTAINING CONFIDENTIAL AND PROPRIETARY *
* INFORMATION. IF PUBLICATION OCCURS, THE FOLLOWING NOTICE APPLIES: *
* "COPYRIGHT 2001 MIKET DSP SOLUTIONS, ALL RIGHTS RESERVED" *
* *
*-------------------------------------------------------------------------*/
#ifndef LEC_MIKET_
#define LEC_MIKET_
#include <std.h>
#include <ilec.h>
/* statistics */
/*
Flags:
0x0001: Adapt Active
0x0002: SndOut Active
0x0004: Rcv active
0x0008: DT
0x0010: Adapt Disabled by control
0x0020: ERL Ok
0x0040: Is Tone
0x0080: Is Hi Tx
0x0F00: NLP Mode
0xF000: Adapt mode
*/
typedef struct LEC_MIKET_tStts {
unsigned short uFlags;
short sTxEn;
short sRxInEn;
short sErrEn;
short sErl;
short sErle;
} LEC_MIKET_tStts;
#define LEC_MIKET_DB_LSZ (123)
#define LEC_MIKET_SC_LSZ (234)
#define LEC_MIKET_HST_LSZ (345)
typedef struct { long a[LEC_MIKET_DB_LSZ];} LEC_MIKET_tDb;
typedef struct { long a[LEC_MIKET_SC_LSZ];} LEC_MIKET_tSc;
typedef struct { long a[LEC_MIKET_HST_LSZ];} LEC_MIKET_tHst;
/*--------------------- public vars ---------------------------------------*/
extern const IALG_Fxns LEC_MIKET_IALG;
extern const ILEC_Fxns LEC_MIKET_ILEC;
extern const ILEC_tCfg ILEC_MIKET_DefaultCfg;
/*--------------------- local vars ----------------------------------------*/
/*--------------------- local functions -----------------------------------*/
/*--------------------- public functions ---------------------------------*/
/*
* Required module finalization function : THIS FUNCTION IS EMPTY
*/
extern Void LEC_MIKET_exit(Void);
/*
* Required module initialization function: THIS FUNCTION IS EMPTY
*/
extern Void LEC_MIKET_init(Void);
/* ---- Native API ----- */
/* Initialises database. (mem[1]) */
extern void LEC_MIKET_init_db (
void *pDb,
const ILEC_tCfg *pCfg,
Int *pHst
);
/* pCfg in pStatus can point to the same config data for any number of MF
detector instances.
If RESET is not or-ed with OFF, the detector starts running.
It is not recommened to apply OFF without RESET due to
the obvious consequences of calling _control(pDb, 0); afterwards.
Asynchronous calling _control() and _process() from different tasks
is not recommended. */
extern void LEC_MIKET_control(void *pDb, Int Cmd, ILEC_Status *pStatus );
extern void LEC_MIKET_process
(void *pDb, void *pSc, Int *pRcv, Int *pSnd, Int uIsTone);
#endif /* LEC_MIKET_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -