29 lines
834 B
C
29 lines
834 B
C
#ifndef REEFNET_SENSUSPRO_H
|
|
#define REEFNET_SENSUSPRO_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
|
|
typedef struct sensuspro sensuspro;
|
|
|
|
#define REEFNET_SENSUSPRO_MEMORY_SIZE 56320
|
|
#define REEFNET_SENSUSPRO_HANDSHAKE_SIZE 10
|
|
|
|
int reefnet_sensuspro_open (sensuspro **device, const char* name);
|
|
|
|
int reefnet_sensuspro_close (sensuspro *device);
|
|
|
|
int reefnet_sensuspro_handshake (sensuspro *device, unsigned char data[], unsigned int size);
|
|
|
|
int reefnet_sensuspro_read (sensuspro *device, unsigned char data[], unsigned int size);
|
|
|
|
int reefnet_sensuspro_write_interval (sensuspro *device, unsigned char interval);
|
|
|
|
int reefnet_sensuspro_extract_dives (const unsigned char data[], unsigned int size, dive_callback_t callback, void *userdata);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif /* REEFNET_SENSUSPRO_H */
|