pdm.h 475 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-12-04 Haley the first version
  9. */
  10. #ifndef __PDM_H_
  11. #define __PDM_H_
  12. #include <rtthread.h>
  13. /**
  14. * @brief External function definitions
  15. *
  16. */
  17. int rt_pdm_init(void);
  18. rt_uint8_t am_pdm_data_get(rt_uint8_t *buff, rt_uint16_t size);
  19. void am_pdm_start(void);
  20. void am_pdm_stop(void);
  21. #endif // __PDM_H_