/*
|
* 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_ */
|