1 2 3 #ifndef _PLAYER_H_ 4 #define _PLAYER_H_ 5 6 #include <stdint.h> 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 typedef enum { 13 PLAYER_MP3_WELCOME, 14 PLAYER_MP3_WAKEUP, 15 PLAYER_MP3_LIGHT_ON, 16 PLAYER_MP3_LIGHT_OFF, 17 PLAYER_MP3_MAX 18 } player_mp3_e; 19 20 typedef void (*player_cb_t)(player_mp3_e file); 21 22 int32_t player_init(player_cb_t cb); 23 24 int32_t player_play(player_mp3_e file); 25 int32_t player_wait_complete(void); 26 int32_t player_stop(void); 27 28 #ifdef __cplusplus 29 } // extern "C" 30 #endif 31 #endif 32