1#ifndef RENSSELAERMOTORSPORT_UPDATEABLE_H
2#define RENSSELAERMOTORSPORT_UPDATEABLE_H
8#define UPDATE(item_) ((item_)->updateable->update(item_))
9#define STATUS(item_) ((item_).updateable.status(&item_.updateable))
10#define ENABLE(item_) ((item_).updateable.enable(&item_.updateable))
11#define DISABLE(item_) ((item_).updateable.disable(&item_.updateable))
13#define MAX_NAME_LENGTH 32
int defaultEnable(struct Updateable *self)
Default enable function for Updateable objects.
int defaultDisable(struct Updateable *self)
Default disable function for Updateable objects.
int writeDataToFileImplementation(const char *filename, void *self)
Write data to a file.
void defaultUpdate(void *self)
Default update function for Updateable objects.
int defaultStatus(struct Updateable *self)
Default status function for Updateable objects.
void initUpdateable(Updateable *updateable, const char *name, int hz)
void(* update)(void *self)
int(* disable)(struct Updateable *self)
int(* status)(struct Updateable *self)
char name[MAX_NAME_LENGTH]
int(* enable)(struct Updateable *self)