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 11 #ifndef __PDM_H_ 12 #define __PDM_H_ 13 14 #include <rtthread.h> 15 16 /** 17 * @brief External function definitions 18 * 19 */ 20 int rt_pdm_init(void); 21 rt_uint8_t am_pdm_data_get(rt_uint8_t *buff, rt_uint16_t size); 22 void am_pdm_start(void); 23 void am_pdm_stop(void); 24 25 #endif // __PDM_H_ 26