⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 akm4516a.h

📁 OMAP1030 处理器的ARM 侧硬件测试代码 OMAP1030 是TI的双核处理器
💻 H
📖 第 1 页 / 共 2 页
字号:

//-------------------------------------------
// of AUTO_LMT_RCV_CONTROL                   
//-------------------------------------------

#define LMTE 7 // Auto Limitter Enable Flag 
               // 0: Auto limitter operation OFF 
               // 1: Auto limitter operation ON 

#define RCVE 6 // Auto Recovery Enable Flag 
               // 0: Auto recovery operation OFF
               // 1: Auto recovery operation ON. 

#define LMTH1 4 //Auto Limitter Detection Level / Auto Recovery Waiting Counter Reset Level
#define LMTH0 3 //Auto Limitter Detection Level / Auto Recovery Waiting Counter Reset Level
                // LMTH1-0  Auto Limitter Detection Level              Auto Recovery Waiting Counter Reset Level 
                // 0 0        ADC Input >-8.0dB                              -8.0dB>ADC Input> -10.0dB           
                // 0 1        ADC Input >-6.0dB                               -6.0dB>ADC Input> -8.0dB            
                // 1 0        ADC Input >-4.0dB                               -4.0dB>ADC Input> -6.0dB            
                // 1 1        ADC Input >-2.0dB                               -2.0dB>ADC Input> -4.0dB            

#define LMAT2 2 // Auto Limitter ATT Step
#define LMAT1 1 // Auto Limitter ATT Step
#define LMAT0 0 // Auto Limitter ATT Step
                // LMAT2-0 ATT STEP 
                // 0 0 0      1     
                // 0 0 1      2     
                // 0 1 0      3     
                // 0 1 1      4     
                // 1 0 0      5     
                // 1 0 1      6     
                // 1 1 0      7     
                // 1 1 1      8     


//-------------------------------------------
// of INPUT_PGA_CONTROL_LCH                  
//-------------------------------------------

#define LCDET 7   // Auto Limitter and Auto Recovery detection Flag
                  // 0: Updating IPGA value by uP writing at the semi-auto mode and the auto limitter or the auto recovery operation.
                  // 1: Complete the auto recovery operation or the auto limitter operation. Complete updating IPGA value 
                  //    by uP writing at semi-auto mode.

#define IPGL6 6   // Lch Input Analog PGA. 105 levels. 
#define IPGL5 5   // Lch Input Analog PGA. 105 levels. 
#define IPGL4 4   // Lch Input Analog PGA. 105 levels. 
#define IPGL3 3   // Lch Input Analog PGA. 105 levels. 
#define IPGL2 2   // Lch Input Analog PGA. 105 levels. 
#define IPGL1 1   // Lch Input Analog PGA. 105 levels. 
#define IPGL0 0   // Lch Input Analog PGA. 105 levels. 
                  //                  
                  // DATA MIC(db) LINE(db)  STEP LEVEL
                  // 68H  +28.0    +8.0    0.5dB 73 
                  // 67H  +27.5    +7.5    0.5dB 73 
                  // 66H  +27.0    +7.0    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 30H  0.0     -20.0    0.5dB 73 
                  // 2FH -0.5     -20.5    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 21H -7.5     -27.5    0.5dB 73 
                  // 20H -8.0     -28.0    0.5dB 73 
                  // 1FH -9.0     -29.0      1dB 24 
                  // 1EH -10.0    -30.0      1dB 24 
                  //::::::::::::::::::::::::::::::::
                  // 09H -31.0    -51.0      1dB 24 
                  // 08H -32.0    -52.0      1dB 24 
                  // 07H -34.0    -54.0      2dB 4  
                  // 06H -36.0    -56.0      2dB 4  
                  // 05H -38.0    -58.0      2dB 4  
                  // 04H -40.0    -60.0      2dB 4  
                  // 03H -44.0    -64.0      4dB 3  
                  // 02H -48.0    -68.0      4dB 3  
                  // 01H -52.0    -72.0      4dB 3  
                  // 00H  MUTE     MUTE          1  


//-------------------------------------------
// of INPUT_PGA_CONTROL_RCH                  
//-------------------------------------------

#define LCDET 7   // Auto Limitter and Auto Recovery detection Flag
                  // 0: Updating IPGA value by uP writing at the semi-auto mode and the auto limitter or the auto recovery operation.
                  // 1: Complete the auto recovery operation or the auto limitter operation. Complete updating IPGA value 
                  //    by uP writing at semi-auto mode.

#define IPGR6 6   // Rch Input Analog PGA. 105 levels. 
#define IPGR5 5   // Rch Input Analog PGA. 105 levels. 
#define IPGR4 4   // Rch Input Analog PGA. 105 levels. 
#define IPGR3 3   // Rch Input Analog PGA. 105 levels. 
#define IPGR2 2   // Rch Input Analog PGA. 105 levels. 
#define IPGR1 1   // Rch Input Analog PGA. 105 levels. 
#define IPGR0 0   // Rch Input Analog PGA. 105 levels. 
                  //                  
                  // DATA MIC(db) LINE(db)  STEP LEVEL
                  // 68H  +28.0    +8.0    0.5dB 73 
                  // 67H  +27.5    +7.5    0.5dB 73 
                  // 66H  +27.0    +7.0    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 30H  0.0     -20.0    0.5dB 73 
                  // 2FH -0.5     -20.5    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 21H -7.5     -27.5    0.5dB 73 
                  // 20H -8.0     -28.0    0.5dB 73 
                  // 1FH -9.0     -29.0      1dB 24 
                  // 1EH -10.0    -30.0      1dB 24 
                  //::::::::::::::::::::::::::::::::
                  // 09H -31.0    -51.0      1dB 24 
                  // 08H -32.0    -52.0      1dB 24 
                  // 07H -34.0    -54.0      2dB 4  
                  // 06H -36.0    -56.0      2dB 4  
                  // 05H -38.0    -58.0      2dB 4  
                  // 04H -40.0    -60.0      2dB 4  
                  // 03H -44.0    -64.0      4dB 3  
                  // 02H -48.0    -68.0      4dB 3  
                  // 01H -52.0    -72.0      4dB 3  
                  // 00H  MUTE     MUTE          1  


//-------------------------------------------
// of AUTO_RECOVERY_CONTROL_1                
//-------------------------------------------

#define WTM1 3 // Auto Recovery Waiting Time 
#define WTM0 2 // Auto Recovery Waiting Time 
               // WTM1-0         48kHz 44.1kHz 32kHz  
               // 0 0    512/fs 10.7ms 11.6ms 16.0ms  
               // 0 1   1024/fs 21.3ms 23.2ms 32.0ms  
               // 1 0   2048/fs 42.6ms 46.4ms 64.0ms  
               // 1 1   4096/fs 85.2ms 92.8ms 128.0ms 

#define RATT1 1 // Auto Recovery GAIN Step  
#define RATT0 0 // Auto Recovery GAIN Step 
                // RATT1-0 GAIN STEP 
                //  0 0        1 
                //  0 1        2 
                //  1 0        3 
                //  1 1         4

//-------------------------------------------
// of AUTO_RECOVERY_CONTROL_2                
//-------------------------------------------

#define REF6 6    // Set the Reference value at Auto Recovery Operation
#define REF5 5    // Set the Reference value at Auto Recovery Operation
#define REF4 4    // Set the Reference value at Auto Recovery Operation
#define REF3 3    // Set the Reference value at Auto Recovery Operation
#define REF2 2    // Set the Reference value at Auto Recovery Operation
#define REF1 1    // Set the Reference value at Auto Recovery Operation
#define REF0 0    // Set the Reference value at Auto Recovery Operation
                  //                  
                  // DATA MIC(db) LINE(db)  STEP LEVEL
                  // 68H  +28.0    +8.0    0.5dB 73 
                  // 67H  +27.5    +7.5    0.5dB 73 
                  // 66H  +27.0    +7.0    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 30H  0.0     -20.0    0.5dB 73 
                  // 2FH -0.5     -20.5    0.5dB 73 
                  //::::::::::::::::::::::::::::::::
                  // 21H -7.5     -27.5    0.5dB 73 
                  // 20H -8.0     -28.0    0.5dB 73 
                  // 1FH -9.0     -29.0      1dB 24 
                  // 1EH -10.0    -30.0      1dB 24 
                  //::::::::::::::::::::::::::::::::
                  // 09H -31.0    -51.0      1dB 24 
                  // 08H -32.0    -52.0      1dB 24 
                  // 07H -34.0    -54.0      2dB 4  
                  // 06H -36.0    -56.0      2dB 4  
                  // 05H -38.0    -58.0      2dB 4  
                  // 04H -40.0    -60.0      2dB 4  
                  // 03H -44.0    -64.0      4dB 3  
                  // 02H -48.0    -68.0      4dB 3  
                  // 01H -52.0    -72.0      4dB 3  
                  // 00H  MUTE     MUTE          1  
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -