22 lines
508 B
C
22 lines
508 B
C
#ifndef TDC_PARSER_H_
|
|
#define TDC_PARSER_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
enum {
|
|
STAT_DISCONNECTED = 0,
|
|
STAT_CONNECTING,
|
|
STAT_CONNECTED
|
|
};
|
|
|
|
void tdcparser_send_hello(void);
|
|
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);
|
|
|
|
void tdcparser_connect(char *addr_str, void (*cb)(int status));
|
|
void tdcparser_disconnect(void);
|
|
|
|
#endif /* TDC_PARSER_H_ */
|