Initial commit of AESA implementation.
[jump.git] / aesa / src / Consumer.h
1 #ifndef CONSUMER_H
2 #define CONSUMER_H
3
4 #include <dol.h>
5 #include "global.h"
6
7 #define PORT_IN "data_input"
8 #define PORT_IN_DELAYED "data2_input_delayed"
9
10 typedef struct _local_states
11 {
12   ComplexNumber Channels[NUMBER_OF_DOPPLER_CHANNELS][NUMBER_OF_PULSES][NUMBER_OF_RANGE_BINS];
13   ComplexNumber Channels_Delayed[NUMBER_OF_DOPPLER_CHANNELS][NUMBER_OF_PULSES][NUMBER_OF_RANGE_BINS];
14   int channel_cntr;
15         int pulse_cntr;
16         int bin_cntr;
17         int n_iterations;
18
19         int excount;
20 #ifdef PRINT_CONSUMER
21   FILE *out;
22 #endif
23 } Consumer_State;
24
25 void Consumer_init(DOLProcess *);
26 int Consumer_fire(DOLProcess *);
27
28 #endif