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:
parent
90cad8e829
commit
098dd6f612
1 changed files with 13 additions and 13 deletions
|
@ -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_ @} */
|
Loading…
Add table
Reference in a new issue