-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtundem.h
More file actions
32 lines (26 loc) · 790 Bytes
/
Copy pathtundem.h
File metadata and controls
32 lines (26 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _TUNDEM_H
#define _TUNDEM_H
#include <errno.h>
#include <stdint.h>
#include "tdp_api.h"
typedef enum _tundem_error_t
{
TUNDEM_ERROR = -1,
TUNDEM_NO_ERROR
}tundem_error_t;
typedef enum _stream_t
{
audio,
video
} stream_t;
typedef int32_t(*filter_callback_t)(uint8_t *buffer);
tundem_error_t initTunerPlayer(uint32_t freq, uint32_t band, t_Module module);
tundem_error_t deinitTunerPlayer();
tundem_error_t playStream(uint32_t PID, stream_t type, uint8_t subType);
tundem_error_t closeStream();
tundem_error_t initFilter(uint32_t PID, uint32_t tableID,
filter_callback_t callbackFunc);
tundem_error_t deinitFilter(filter_callback_t callbackFunc);
tundem_error_t volumeGet(uint32_t *volume);
tundem_error_t volumeSet(uint32_t volume);
#endif // _TUNDEM_H