2008-03-18 19:30:21 +01:00
|
|
|
#ifndef TDC_PARSER_H_
|
|
|
|
#define TDC_PARSER_H_
|
|
|
|
|
2008-03-19 02:54:27 +01:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2008-03-18 19:30:21 +01:00
|
|
|
enum {
|
|
|
|
STAT_DISCONNECTED = 0,
|
|
|
|
STAT_CONNECTING,
|
|
|
|
STAT_CONNECTED
|
|
|
|
};
|
|
|
|
|
|
|
|
void tdcparser_send_hello(void);
|
2008-03-19 02:54:27 +01:00
|
|
|
int tdcparser_send_getvars(int address);
|
|
|
|
int tdcparser_send_getvalue(int address, int id);
|
|
|
|
int tdcparser_send_setvalue(int address, int id);
|
|
|
|
int tdcparser_send_request(int address, int interval, uint32_t *bitmap);
|
2008-03-18 19:30:21 +01:00
|
|
|
|
|
|
|
void tdcparser_connect(char *addr_str, void (*cb)(int status));
|
|
|
|
void tdcparser_disconnect(void);
|
|
|
|
|
|
|
|
#endif /* TDC_PARSER_H_ */
|