dol: initial dol commit
[jump.git] / dol / examples / example5 / src / fft2.h
diff --git a/dol/examples/example5/src/fft2.h b/dol/examples/example5/src/fft2.h
new file mode 100644 (file)
index 0000000..79e567e
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef FFT2_H
+#define FFT2_H
+
+#include <dol.h>
+#include "global.h"
+
+#define PORT_INA  "inA"
+#define PORT_INB  "inB"
+#define PORT_OUTA "outA"
+#define PORT_OUTB "outB"
+
+typedef struct _local_states
+{
+  char id[14];
+  ComplexNumber inA, inB, outA, outB, rotated_inB, twiddle_factor;
+} Fft2_State;
+
+void fft2_init(DOLProcess *);
+int fft2_fire(DOLProcess *);
+
+#endif