qipp
2025-09-16 e7ac407a6aa40e94a34a772dee14e8d5fb55c45b
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
/*
 * f2f.h
 *
 *  Created on: 2014-9-16
 *      Author: Graydon
 *      description: float data convert to fix data; fix convert to float
 */
 
#ifndef F2F_H_
#define F2F_H_
 
void output_empty(void);
void input_fflush(int sid, const unsigned int blockIndex);
void output_fflush(int sid, const unsigned int blockIndex);
void output_gain(float g);
 
void usb_input_fflush(const unsigned int blockIndex);
void usb_output_fflush(const unsigned int blockIndex);
 
void dante_output_empty(void);
void dante_input_fflush(const unsigned int blockIndex);
void dante_output_fflush(const unsigned int blockIndex);
//float* get_tx_channel(int n);
//float* get_rx_channel(int n);
 
extern float* tx_channel_ptr[];
extern float* rx_channel_ptr[];
 
#define get_tx_channel(n) tx_channel_ptr[n]
#define get_rx_channel(n) rx_channel_ptr[n]
#define exchange_ptr(in_id,out_id) \
{\
    void* ptr = rx_channel_ptr[in_id];\
    rx_channel_ptr[in_id]=tx_channel_ptr[out_id];\
    tx_channel_ptr[out_id]=ptr;\
}
//void exchange_ptr(int in_id,int out_id);
 
#endif /* F2F_H_ */