2017-12-04 18:52:02 +08:00
|
|
|
/*
|
2021-03-29 07:20:47 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
2021-03-29 07:20:47 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-12-04 18:52:02 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017-12-04 Haley the first version
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __PDM_H_
|
|
|
|
#define __PDM_H_
|
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief External function definitions
|
|
|
|
*
|
|
|
|
*/
|
2018-09-21 16:10:44 +08:00
|
|
|
int rt_pdm_init(void);
|
2017-12-04 18:52:02 +08:00
|
|
|
rt_uint8_t am_pdm_data_get(rt_uint8_t *buff, rt_uint16_t size);
|
|
|
|
void am_pdm_start(void);
|
|
|
|
void am_pdm_stop(void);
|
|
|
|
|
|
|
|
#endif // __PDM_H_
|