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

DVD

开发平台:

C/C++

  1. #ifndef __PCM1723_H
  2. #define __PCM1723_H
  3. #define PCM1723_R2_MUTE_ON (1<<0)
  4. #define PCM1723_R2_MUTE_OFF (0<<0)
  5. #define PCM1723_R2_DEM_ON (1<<1)
  6. #define PCM1723_R2_DEM_OFF (0<<1)
  7. #define PCM1723_R2_IW_16B (0<<3)
  8. #define PCM1723_R2_IW_20B (1<<3)
  9. #define PCM1723_R2_IW_24B (2<<3)
  10. #define PCM1723_R2_PL_MM (0x00<<5)
  11. #define PCM1723_R2_PL_MR (0x01<<5)
  12. #define PCM1723_R2_PL_ML (0x02<<5)
  13. #define PCM1723_R2_PL_MC (0x03<<5)
  14. #define PCM1723_R2_PL_RM (0x04<<5)
  15. #define PCM1723_R2_PL_RR (0x05<<5)
  16. #define PCM1723_R2_PL_RL (0x06<<5)
  17. #define PCM1723_R2_PL_RC (0x07<<5)
  18. #define PCM1723_R2_PL_LM (0x08<<5)
  19. #define PCM1723_R2_PL_LR (0x09<<5)
  20. // PCM1723 register 3  [rrrr_rAAi_SSDD_sALI]
  21. //
  22. // rrrrr: reserved
  23. // i=0: zero-detect off
  24. // i=1: zero-detect on
  25. // SS=00: 44.1kHz group
  26. // SS=01: 48kHz group
  27. // SS=10: 32kHz group
  28. // DD=00: normal frequency
  29. // DD=01: double frequency
  30. // DD=10: half frequency
  31. // s=0: 384fs
  32. // s=1: 256fs
  33. // A=0: separate attenuate factor
  34. // A=1: register0
  35. // L=0: LRCKIN=1 -> left
  36. // L=1: LRCKIN=0 -> left
  37. // I=0: normal format (right justify)
  38. // I=1: i2s format (left justify)
  39. //
  40. #define PCM1723_R3_FORMAT_I2S (1<<0)
  41. #define PCM1723_R3_LRP_LOW_LEFT (0<<1)
  42. #define PCM1723_R3_LRP_LOW_RIGHT (1<<1)
  43. #define PCM1723_R3_ATC_LR (0<<2)
  44. #define PCM1723_R3_ATC_BOTH (1<<2)
  45. #define PCM1723_R3_SYS_384fs (0<<3)
  46. #define PCM1723_R3_SYS_256fs (1<<3)
  47. #define PCM1723_R3_DSR_NORMAL (0<<4)
  48. #define PCM1723_R3_DSR_DOUBLE (1<<4)
  49. #define PCM1723_R3_DSR_HALF (2<<4)
  50. #define PCM1723_R3_SF_44 (0<<6) // 44.1k group
  51. #define PCM1723_R3_SF_48 (1<<6) // 48k group
  52. #define PCM1723_R3_SF_32 (2<<6) // 32k group
  53. #define PCM1723_R3_IZD_OFF (0<<8)
  54. #define PCM1723_R3_IZD_ON (1<<8) // zero-detect on
  55. #endif/*__PCM1723_H*/