2008-03-17 18:36:41 +01:00
|
|
|
#ifndef TDC_STORE_H_
|
|
|
|
#define TDC_STORE_H_
|
|
|
|
|
2008-03-19 02:54:27 +01:00
|
|
|
#include <stdint.h>
|
2008-03-18 19:30:21 +01:00
|
|
|
#include "tdc_variable.h"
|
2008-03-17 18:36:41 +01:00
|
|
|
|
2008-03-19 02:54:27 +01:00
|
|
|
struct tdc_board * tdcstore_get_board(int address);
|
2008-03-18 19:30:21 +01:00
|
|
|
struct tdc_var * tdcstore_get_var(int address, int id);
|
2008-03-17 21:16:52 +01:00
|
|
|
|
2008-03-19 02:54:27 +01:00
|
|
|
void tdcstore_create_board(int address, char *name);
|
|
|
|
|
|
|
|
int tdcstore_create_var(int address, struct tdc_var *var);
|
|
|
|
int tdcstore_update_var(int address, int id, uint8_t *data, int len);
|
|
|
|
|
|
|
|
int tdcstore_refresh_values(int address, int interval);
|
|
|
|
int tdcstore_graph_refresh(int address, int interval);
|
2008-03-18 19:30:21 +01:00
|
|
|
|
|
|
|
void tdcstore_flush(void);
|
2008-03-17 18:36:41 +01:00
|
|
|
|
|
|
|
#endif /* TDC_STORE_H_ */
|