Subversion Repositories HomeAutomation

Rev

Rev 869 | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /**
  2.  * @defgroup mt8870 Mitel MT8870 DTMF-receiver Library
  3.  * @code #include <drivers/DTMF/mt8870/mt8870.h> @endcode
  4.  *
  5.  * @brief Driver for MT8870 DTMF receiver
  6.  *
  7.  * Driver handle only reception of dtmf codes.
  8.  * When the pop function return DTMF_Ret_Data_avail
  9.  * data can be found in the buffer.
  10.  * The length pointer supplied with function Pop is used to
  11.  * find out the length of data.
  12.  *
  13.  * @author  Anders Runeson
  14.  * @date    2007-08-24
  15.  */
  16.  
  17. /**@{*/
  18.  
  19. #ifndef MT8870_H_
  20. #define MT8870_H_
  21.  
  22. #include <drivers/DTMF/dtmf.h>
  23. /*-----------------------------------------------------------------------------
  24.  * Defines
  25.  *---------------------------------------------------------------------------*/
  26.  
  27.  
  28.  
  29. /*-----------------------------------------------------------------------------
  30.  * Public Function Prototypes
  31.  *---------------------------------------------------------------------------*/
  32. /**
  33.  * @brief Initialize MT8870 CallerID receiver
  34.  */
  35. void mt8870_Init(void);
  36.  
  37. /**
  38.  * @brief Poll driver for status
  39.  *
  40.  * Function returns MT8870_Ret_Finished if a complete
  41.  * number is stored in buffer supplied with the Start
  42.  * function.
  43.  */
  44. DTMF_Ret_t mt8870_Pop(uint8_t *buffer, uint8_t *len);
  45.  
  46. /**@}*/
  47. #endif /*MT8870_H_*/
  48.