qipp
2025-11-07 744722688187eb4991c72464e2bb5e06b244fee7
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
/*
 * 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(const unsigned int blockIndex);
void output_fflush(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);
//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_ */