Changed uX, uX_t sX, sX_t to uinX_t
Cleaned some PDCP/driver code types parameters and vars Please see openair2/COMMON/platform_types.h for simple coding rules. please declare prototypes of functions in .h and include .h files in where the function is used and where it is implemented. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5096 818b1a75-f10b-46b9-bf7c-635c3b92a50f
This commit is contained in:
@@ -4,14 +4,14 @@
|
||||
|
||||
void dac(double **s_re,
|
||||
double **s_im,
|
||||
u32 **input,
|
||||
u32 input_offset,
|
||||
u32 nb_tx_antennas,
|
||||
u32 length,
|
||||
uint32_t **input,
|
||||
uint32_t input_offset,
|
||||
uint32_t nb_tx_antennas,
|
||||
uint32_t length,
|
||||
double amp_dBm,
|
||||
u8 B,
|
||||
u32 meas_length,
|
||||
u32 meas_offset) {
|
||||
uint8_t B,
|
||||
uint32_t meas_length,
|
||||
uint32_t meas_offset) {
|
||||
|
||||
int i;
|
||||
int aa;
|
||||
@@ -51,13 +51,13 @@ void dac(double **s_re,
|
||||
|
||||
double dac_fixed_gain(double **s_re,
|
||||
double **s_im,
|
||||
u32 **input,
|
||||
u32 input_offset,
|
||||
u32 nb_tx_antennas,
|
||||
u32 length,
|
||||
u32 input_offset_meas,
|
||||
u32 length_meas,
|
||||
u8 B,
|
||||
uint32_t **input,
|
||||
uint32_t input_offset,
|
||||
uint32_t nb_tx_antennas,
|
||||
uint32_t length,
|
||||
uint32_t input_offset_meas,
|
||||
uint32_t length_meas,
|
||||
uint8_t B,
|
||||
double txpwr_dBm) {
|
||||
|
||||
int i;
|
||||
@@ -68,7 +68,7 @@ double dac_fixed_gain(double **s_re,
|
||||
|
||||
amp1 = 0;
|
||||
for (aa=0;aa<nb_tx_antennas;aa++) {
|
||||
amp1 += sqrt((double)signal_energy((s32*)&input[aa][input_offset_meas],length_meas) * (512.0/300.0));
|
||||
amp1 += sqrt((double)signal_energy((int32_t*)&input[aa][input_offset_meas],length_meas) * (512.0/300.0));
|
||||
}
|
||||
amp1/=nb_tx_antennas;
|
||||
|
||||
|
||||
@@ -228,8 +228,8 @@ int main(int argc, char* argv[]) {
|
||||
double path_loss_dB = -90, rx_gain_dB = 125;
|
||||
double tx_pwr, rx_pwr;
|
||||
|
||||
u32 **input = malloc(nb_antennas*sizeof(u32*));
|
||||
u32 **output = malloc(nb_antennas*sizeof(u32*));
|
||||
uint32_t **input = malloc(nb_antennas*sizeof(uint32_t*));
|
||||
uint32_t **output = malloc(nb_antennas*sizeof(uint32_t*));
|
||||
|
||||
double **s_re = malloc(nb_antennas*sizeof (double *));
|
||||
double **s_im = malloc(nb_antennas*sizeof (double *));
|
||||
@@ -255,8 +255,8 @@ int main(int argc, char* argv[]) {
|
||||
s_im[i] = (double *)malloc(length * sizeof (double ));
|
||||
r_re[i] = (double *)malloc(length * sizeof (double ));
|
||||
r_im[i] = (double *)malloc(length * sizeof (double ));
|
||||
input[i] = (u32*)malloc(length * sizeof(u32));
|
||||
output[i] = (u32*)malloc(length * sizeof(u32));
|
||||
input[i] = (uint32_t*)malloc(length * sizeof(uint32_t));
|
||||
output[i] = (uint32_t*)malloc(length * sizeof(uint32_t));
|
||||
}
|
||||
|
||||
for (i=0;i<nb_antennas;i++) {
|
||||
|
||||
Reference in New Issue
Block a user