1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

refactored cbmodel -> cbuilder_model

This commit is contained in:
Steffen Vogel 2017-02-15 17:58:15 -03:00
parent 90cad8e829
commit 098dd6f612

View file

@ -19,14 +19,25 @@
#include "list.h"
/* Forward declaration */
struct cbuilder;
extern struct list cbmodels; /**< Table of existing CBuilder models */
struct cbuilder_model {
char *name;
void (*code)();
void (*ram)();
int (*init)(struct cbuilder *cb);
int (*read)(float inputs[], int len);
int (*write)(float outputs[], int len);
};
struct cbuilder {
unsigned long step, read;
double timestep;
struct cbmodel *model;
struct cbuilder_model *model;
float *params;
int paramlen;
@ -41,15 +52,4 @@ struct cbuilder {
pthread_cond_t cv;
};
struct cbmodel {
char *name;
void (*code)();
void (*ram)();
int (*init)(struct cbuilder *cb);
int (*read)(float inputs[], int len);
int (*write)(float outputs[], int len);
};
#endif /** _NODES_CBUILDER_H_ @} */