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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| /*
| * F2F.h
| *
| * Created on: 2021Äê11ÔÂ2ÈÕ
| * Author: graydon
| */
|
| #ifndef F2F_H_
| #define F2F_H_
|
| #ifdef __cplusplus
| extern "C" {
| #endif
|
| #include "typedefs.h"
|
| typedef struct {
| s32* dataPtr[2];
| u16 slot_num;
| u16 channel_num;
| u8 rx;
| u8 enable_sec;
| u16 follow_intr_no;
| }AudioCodec;
|
| //½Ó¿ÚÊý¾ÝÀàÐÍ.
| typedef enum IntDataType {
| TDM,
| LP0,
| LP1,
| COUNT,
| }eIntDataType;
|
| uvoid SetAudioCodec(eIntDataType type , u16 codec_num , const AudioCodec* pcodec);
| uvoid SetNumOfChannels(eIntDataType type ,u16 rxNum, u16 txNum);
| uvoid SetRxChannelPtr(eIntDataType type ,u32 channel, ufloat* rxBuffer);
| uvoid SetTxChannelPtr(eIntDataType type ,u32 channel, ufloat* txBuffer);
| uvoid UpdateInput(u32 iid ,u32 index);
| uvoid UpdateOutput(u32 iid ,u32 index);
| uvoid MuteOutput();
| uvoid SetTxRxNullBufferPtr();
|
| #ifdef __cplusplus
| }
| #endif
| #endif /* F2F_H_ */
|
|