dol: initial dol commit
[jump.git] / dol / examples / example4 / src / generator.h
1 #ifndef PRODUCER_H
2 #define PRODUCER_H
3
4 #include "constants.h"
5 #include <dol.h>
6
7 #define PORT_MATRIXA   "matrixA"
8 #define PORT_MATRIXB   "matrixB"
9 #define PORT_ZEROINPUT "zeroinput"
10
11 typedef struct _local_states
12 {
13   float matrixA[NUMBER_OF_ROWS_COLS][NUMBER_OF_ROWS_COLS];
14   float matrixB[NUMBER_OF_ROWS_COLS][NUMBER_OF_ROWS_COLS];
15   int row, col, i;
16   float zero;
17 } Input_generator_State;
18
19 void input_generator_init(DOLProcess *);
20 int input_generator_fire(DOLProcess *);
21
22 #endif