hw_ana_regs.h 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /******************************************************************************
  2. * Filename: hw_ana_regs.h
  3. * Revised: $Date: 2013-04-30 17:13:44 +0200 (Tue, 30 Apr 2013) $
  4. * Revision: $Revision: 9943 $
  5. *
  6. * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
  7. *
  8. *
  9. * Redistribution and use in source and binary forms, with or without
  10. * modification, are permitted provided that the following conditions
  11. * are met:
  12. *
  13. * Redistributions of source code must retain the above copyright
  14. * notice, this list of conditions and the following disclaimer.
  15. *
  16. * Redistributions in binary form must reproduce the above copyright
  17. * notice, this list of conditions and the following disclaimer in the
  18. * documentation and/or other materials provided with the distribution.
  19. *
  20. * Neither the name of Texas Instruments Incorporated nor the names of
  21. * its contributors may be used to endorse or promote products derived
  22. * from this software without specific prior written permission.
  23. *
  24. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  25. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  26. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  27. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  28. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  29. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  30. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  31. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  32. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  33. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  34. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  35. *
  36. ******************************************************************************/
  37. #ifndef __HW_ANA_REGS_H__
  38. #define __HW_ANA_REGS_H__
  39. //*****************************************************************************
  40. //
  41. // The following are defines for the ANA_REGS register offsets.
  42. //
  43. //*****************************************************************************
  44. #define ANA_REGS_O_IVCTRL 0x00000004 // Analog control register
  45. //*****************************************************************************
  46. //
  47. // The following are defines for the bit fields in the
  48. // ANA_REGS_O_IVCTRL register.
  49. //
  50. //*****************************************************************************
  51. #define ANA_REGS_IVCTRL_DAC_CURR_CTRL_M \
  52. 0x00000030 // Controls bias current to DAC
  53. // 00: 100% IVREF, 0% IREF bias 01:
  54. // 60% IVREF, 40% IREF bias 10: 40%
  55. // IVREF, 60% IREF bias 11: 0%
  56. // IVREF, 100% IREF bias
  57. #define ANA_REGS_IVCTRL_DAC_CURR_CTRL_S 4
  58. #define ANA_REGS_IVCTRL_LODIV_BIAS_CTRL \
  59. 0x00000008 // Controls bias current to LODIV
  60. // 1: PTAT bias 0: IVREF bias
  61. #define ANA_REGS_IVCTRL_LODIV_BIAS_CTRL_M \
  62. 0x00000008
  63. #define ANA_REGS_IVCTRL_LODIV_BIAS_CTRL_S 3
  64. #define ANA_REGS_IVCTRL_TXMIX_DC_CTRL \
  65. 0x00000004 // Controls DC bias in TXMIX
  66. #define ANA_REGS_IVCTRL_TXMIX_DC_CTRL_M \
  67. 0x00000004
  68. #define ANA_REGS_IVCTRL_TXMIX_DC_CTRL_S 2
  69. #define ANA_REGS_IVCTRL_PA_BIAS_CTRL_M \
  70. 0x00000003 // Controls bias current to PA 00:
  71. // IREF bias 01: IREF and IVREF
  72. // bias (CC2530 mode) 10: PTAT bias
  73. // 11: Increased PTAT slope bias
  74. #define ANA_REGS_IVCTRL_PA_BIAS_CTRL_S 0
  75. #endif // __HW_ANA_REGS_H__