brisonus_qc_dsp_com/br_dataset_def.h
JingweiCui ff5c5db787 [Add] Modbus通信库+参数定义
通过直接修改结构体参数的地址去修改具体的变量,结构体把所有定义的参数作为一个整体管理;ModbusRTU目前支持03,06和0A功能码。
2025-01-09 18:05:09 +08:00

52 lines
1.3 KiB
C

#ifndef _BR_PARAMS_DEF_H
#define _BR_PARAMS_DEF_H
#include <stdint.h>
#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