#ifndef _BR_PARAMS_DEF_H #define _BR_PARAMS_DEF_H #include #define aenc_con_SEG_NUM (10u) #define TF_LEN (200u) #define SPEAKER_ERR_NUM (4u) #define MIC_NUM (4u) #define BLOCK_SIZE (32u) typedef struct { float TachoOfAmp[aenc_con_SEG_NUM]; float VarAmp[aenc_con_SEG_NUM]; float TachoOfStep[aenc_con_SEG_NUM]; float VarStepDelta[aenc_con_SEG_NUM]; float VarDelta[aenc_con_SEG_NUM]; float TachoOfLeaky[aenc_con_SEG_NUM]; float VarLeaky[aenc_con_SEG_NUM]; float TachoOfErrWei[aenc_con_SEG_NUM]; float VarErrWei[aenc_con_SEG_NUM]; }ENCLMSDebugParams_t; /* param dataset struct's size must be less than 65536 */ typedef struct { ENCLMSDebugParams_t ENCLMSDebugParams[3]; /* control order flag. */ uint32_t orderOne; uint32_t orderTwo; uint32_t orderThree; /* input and output amplifier */ uint32_t inputAmp; uint32_t outputAmp; /* control and calibration flag */ uint32_t encConFlag; uint32_t encCalFlag; uint32_t disableAllSignal; /* tf data */ float transfers[SPEAKER_ERR_NUM][MIC_NUM][TF_LEN]; float outputCheck[SPEAKER_ERR_NUM][BLOCK_SIZE]; float InputCheck[MIC_NUM][BLOCK_SIZE]; } BR_Dataset0_t; extern BR_Dataset0_t br_dataset0; #endif