27 lines
942 B
C
27 lines
942 B
C
/******************************************************************************
|
|
* @file car_audio_test.h
|
|
* @brief Car audio hardware test API using the SDK key-tone sine path.
|
|
******************************************************************************/
|
|
#include <stdint.h>
|
|
#ifndef __CAR_AUDIO_TEST_H__
|
|
#define __CAR_AUDIO_TEST_H__
|
|
|
|
/**
|
|
* @brief Play the bird-call MP3 stored in the internal resource area.
|
|
*
|
|
* The API only queues a request. Playback is asynchronous in the SDK key-tone
|
|
* task; it does not wait for completion or block the caller. This test is not
|
|
* triggered automatically; call it explicitly from test code.
|
|
*
|
|
* @return 0=request queued; negative value=module unavailable/request failed.
|
|
*/
|
|
int Car_Audio_Test_Play(void);
|
|
|
|
/**
|
|
* @brief 开机状态下维护循环测试音。
|
|
* @param dt_ms 距离上次调用的毫秒数
|
|
*/
|
|
void Car_Audio_Test_Loop(uint16_t dt_ms);
|
|
|
|
#endif /* __CAR_AUDIO_TEST_H__ */
|