You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

97 lines
3.9 KiB

5 years ago
  1. /*******************************************************************************
  2. *
  3. * CTS_HAL.h
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in the
  14. * documentation and/or other materials provided with the
  15. * distribution.
  16. *
  17. * Neither the name of Texas Instruments Incorporated nor the names of
  18. * its contributors may be used to endorse or promote products derived
  19. * from this software without specific prior written permission.
  20. *
  21. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. *
  33. ******************************************************************************/
  34. /***************************************************************************//**
  35. * @file CTS_HAL.h
  36. *
  37. * @brief
  38. *
  39. * @par Project:
  40. * MSP430 Capacitive Touch Library
  41. *
  42. * @par Developed using:
  43. * IAR Version : 5.10.6 [Kickstart] (5.10.6.30180)
  44. * CCS Version : 4.2.1.00004, w/support for GCC extensions (--gcc)
  45. *
  46. *
  47. * @version 1.0.0 Initial Release
  48. *
  49. * @par Supported Hardware Configurations:
  50. * - TI_CTS_RO_COMPAp_TA0_WDTp_HAL()
  51. * - TI_CTS_fRO_COMPAp_TA0_SW_HAL()
  52. * - TI_CTS_fRO_COMPAp_SW_TA0_HAL()
  53. * - TI_CTS_RO_COMPAp_TA1_WDTp_HAL()
  54. * - TI_CTS_fRO_COMPAp_TA1_SW_HAL()
  55. * - TI_CTS_RC_PAIR_TA0_HAL()
  56. * - TI_CTS_RO_PINOSC_TA0_WDTp_HAL()
  57. * - TI_CTS_RO_PINOSC_TA0_HAL()
  58. * - TI_CTS_fRO_PINOSC_TA0_SW_HAL()
  59. * - TI_CTS_RO_COMPB_TA0_WDTA_HAL()
  60. * - TI_CTS_RO_COMPB_TA1_WDTA_HAL()
  61. * - TI_CTS_fRO_COMPB_TA0_SW_HAL()
  62. * - TI_CTS_fRO_COMPB_TA1_SW_HAL()
  63. ******************************************************************************/
  64. #ifndef CAP_TOUCH_HAL
  65. #define CAP_TOUCH_HAL
  66. #include "structure.h"
  67. void TI_CTS_RO_COMPAp_TA0_WDTp_HAL(const struct Sensor *, uint16_t *);
  68. void TI_CTS_fRO_COMPAp_TA0_SW_HAL(const struct Sensor *, uint16_t *);
  69. void TI_CTS_fRO_COMPAp_SW_TA0_HAL(const struct Sensor *, uint16_t *);
  70. void TI_CTS_RO_COMPAp_TA1_WDTp_HAL(const struct Sensor *, uint16_t *);
  71. void TI_CTS_fRO_COMPAp_TA1_SW_HAL(const struct Sensor *, uint16_t *);
  72. void TI_CTS_RC_PAIR_TA0_HAL(const struct Sensor *, uint16_t *);
  73. void TI_CTS_RO_PINOSC_TA0_WDTp_HAL(const struct Sensor *, uint16_t *);
  74. void TI_CTS_RO_PINOSC_TA0_HAL(const struct Sensor *, uint16_t *);
  75. void TI_CTS_fRO_PINOSC_TA0_SW_HAL(const struct Sensor *, uint16_t *);
  76. void TI_CTS_RO_COMPB_TA0_WDTA_HAL(const struct Sensor *, uint16_t *);
  77. void TI_CTS_fRO_COMPB_TA0_SW_HAL(const struct Sensor *, uint16_t *);
  78. void TI_CTS_RO_COMPB_TA1_WDTA_HAL(const struct Sensor *, uint16_t *);
  79. void TI_CTS_fRO_COMPB_TA1_SW_HAL(const struct Sensor *, uint16_t *);
  80. #endif