wm8746.h
上传用户:poi891205
上传日期:2013-07-15
资源大小:9745k
文件大小:2k
源码类别:

DVD

开发平台:

C/C++

  1. #ifndef __WM8746_H
  2. #define __WM8746_H
  3. #define WM8746_2_MUTE_ON (1<<0)
  4. #define WM8746_2_MUTE_OFF (0<<0)
  5. #define WM8746_2_DEEMPH_ON (1<<1)
  6. #define WM8746_2_DEEMPH_OFF (0<<1)
  7. #define WM8746_2_PWDN_ON (1<<2)
  8. #define WM8746_2_PWDN_OFF (0<<2)
  9. #define WM8746_2_ATC_L (1<<3) // use L vol setting 
  10. #define WM8746_2_ATC_LR (0<<3) // separate vol setting 
  11. #define WM8746_2_IZD_ON (1<<4) // infinite zero detection ON
  12. #define WM8746_2_IZD_OFF (0<<4) // infinite zero detection OFF
  13. #define WM8746_2_PL_MM (0x0<<5)
  14. #define WM8746_2_PL_LM (0x1<<5)
  15. #define WM8746_2_PL_RM (0x2<<5)
  16. #define WM8746_2_PL_CM (0x3<<5)
  17. #define WM8746_2_PL_ML (0x4<<5)
  18. #define WM8746_2_PL_LL (0x5<<5)
  19. #define WM8746_2_PL_RL (0x6<<5)
  20. #define WM8746_2_PL_CL (0x7<<5)
  21. #define WM8746_2_PL_MR (0x8<<5)
  22. #define WM8746_2_PL_LR (0x9<<5)
  23. #define WM8746_2_PL_RR (0xA<<5)
  24. #define WM8746_2_PL_CR (0xB<<5)
  25. #define WM8746_2_PL_MC (0xC<<5)
  26. #define WM8746_2_PL_LC (0xD<<5)
  27. #define WM8746_2_PL_RC (0xE<<5)
  28. #define WM8746_2_PL_CC (0xF<<5)
  29. //3
  30. #define WM8746_3_FMT_RJ (0x0<<0)
  31. #define WM8746_3_FMT_LJ (0x1<<0)
  32. #define WM8746_3_FMT_I2S (0x2<<0)
  33. #define WM8746_3_FMT_DSP (0x3<<0)
  34. #define WM8746_3_LRP_STD (0<<2)
  35. #define WM8746_3_LRP_INV (1<<2)
  36. #define WM8746_3_BCP_STD (0<<3)
  37. #define WM8746_3_BCP_INV (1<<3)
  38. #define WM8746_3_WL_16 (0<<4)
  39. #define WM8746_3_WL_20 (1<<4)
  40. #define WM8746_3_WL_24 (2<<4)
  41. #define WM8746_3_WL_32 (3<<4) // not in RJ mode
  42. #define WM8746_3_PHASE0_STD (0<<6)
  43. #define WM8746_3_PHASE1_STD (0<<7)
  44. #define WM8746_3_PHASE2_STD (0<<8)
  45. #define WM8746_3_PHASE0_INV (1<<6)
  46. #define WM8746_3_PHASE1_INV (1<<7)
  47. #define WM8746_3_PHASE2_INV (1<<8)
  48. //9
  49. #define WM8746_9_2SPD_ON (1<<1)
  50. #define WM8746_9_ZCD_DISABLE (1<<0)
  51. #define WM8746_9_2SPD_OFF (0<<1)
  52. #define WM8746_9_ZCD_ENABLE (0<<0)
  53. #endif /*__WM8746_H*/