Initial commit of AESA implementation.
[jump.git] / aesa / src / Beam_Former.h
1 #ifndef BEAM_FORMER_H
2 #define BEAM_FORMER_H
3
4 #include <dol.h>
5 #include "global.h"
6
7 #define PORT_DATA_IN "data_input"
8 #define PORT_WEIGHT_IN "weight_input"
9 #define PORT_DATA_OUT "data_output"
10
11 typedef struct _local_states
12 {
13   ComplexNumber Vector_Product[NUMBER_OF_RANGE_BINS];
14     // int sample_counter;
15         int pulse_counter;
16         int n_iterations;
17     // New!
18         int range_counter;
19
20         int excount;
21         
22
23 } Beam_Former_State;
24
25 void Beam_Former_init(DOLProcess *);
26 int Beam_Former_fire(DOLProcess *);
27 void multiply_and_accumulate(ComplexNumber *, ComplexNumber *, DOLProcess * p);
28
29 #endif