CI130X SDK API手册  2.2.0
本手册用于描述CI130X SDK各个组件和驱动API
get_play_data.h
浏览该文件的文档.
1 
11 #ifndef _GET_PLAY_DATA_H_
12 #define _GET_PLAY_DATA_H_
13 
14 #include "sdk_default_config.h"
15 #include "audio_play_config.h"
16 
17 
19 #define GET_PLAY_DATA_QUEUE_COUNT (1)
20 
21 #define GET_PLAY_DATA_BUFF_COUNT (2)
22 
23 #define GET_PLAY_DATA_BUFF_SIZE (576U)
24 
29 enum
30 {
34 };
35 
40 typedef enum
41 {
47 
48 extern void task_get_play_data_init(void);
49 extern void task_get_play_data(void *pvParameters);
50 extern int32_t get_net_data(const char *url, uint32_t offset);
51 extern int32_t get_flash_data(uint32_t addr, uint32_t num);
52 extern int32_t get_sd_data(const char *dir,const char *name,uint32_t offset);
53 extern int32_t get_outside_data(uint32_t offset);
54 extern int32_t get_outside_v2_data(uint32_t offset);
55 extern int32_t receive_data(uint32_t *addr,uint32_t *size,uint32_t *flag);
56 extern void finsh_read_data(void);
57 extern int32_t pause_read_data(void);
58 extern int32_t continue_read_data(void);
59 extern int32_t get_pause_read_data_offset(void);
60 extern int32_t continue_data_valid(void);
62 extern uint32_t get_curr_offset(void);
63 #if AUDIO_PLAY_USE_NET
64 extern uint32_t get_net_download_offset(void);
65 #endif
66 
67 
68 #endif /*_GET_PLAY_DATA_H_*/
Definition: get_play_data.h:42
int32_t continue_read_data(void)
请求获取被打断的数据
Definition: get_play_data.c:1857
Definition: get_play_data.h:44
get_play_data_state_t get_data_task_state(void)
返回本模块任务状态
Definition: get_play_data.c:1366
int32_t get_outside_data(uint32_t offset)
Definition: get_play_data.h:33
int32_t receive_data(uint32_t *addr, uint32_t *size, uint32_t *flag)
接收数据buf地址
Definition: get_play_data.c:1281
int32_t get_net_data(const char *url, uint32_t offset)
get_play_data_state_t
数据获取task状态机
Definition: get_play_data.h:40
Definition: get_play_data.h:31
uint32_t offset
Definition: flash_update.c:82
int32_t get_sd_data(const char *dir, const char *name, uint32_t offset)
void finsh_read_data(void)
释放数据buf
Definition: get_play_data.c:1307
int32_t continue_data_valid(void)
历史数据有效性检查
Definition: get_play_data.c:1348
Definition: get_play_data.h:45
Definition: get_play_data.h:32
int32_t pause_read_data(void)
请求暂停数据并保存记录
Definition: get_play_data.c:1323
void task_get_play_data_init(void)
获取audio数据任务预初始化
Definition: get_play_data.c:1607
int32_t get_outside_v2_data(uint32_t offset)
Definition: get_play_data.h:43
void task_get_play_data(void *pvParameters)
获取播放数据任务
Definition: get_play_data.c:564
sdk配置文件
int32_t get_flash_data(uint32_t addr, uint32_t num)
请求获取flash音频数据
Definition: get_play_data.c:1644
int32_t get_pause_read_data_offset(void)
uint32_t get_curr_offset(void)
返回播放offset
Definition: get_play_data.c:1390