Jef Driesen
59b123eb5c
Corrected the name of a function in the header file.
2008-07-17 05:24:58 +00:00
Jef Driesen
c40f67c557
Skip the entire header of the packet, not only the first byte.
2008-07-16 16:59:31 +00:00
Jef Driesen
a5143d8c7c
Wait a small amount of time before sending the command.
...
Without this delay, the transfer will fail most of the time.
2008-07-10 12:25:02 +00:00
Jef Driesen
d12a44c458
Always return the size of the downloaded data.
2008-07-10 08:10:04 +00:00
Jef Driesen
8a90c18a06
Port the Oceanic Atom 2 to the new api.
2008-07-08 10:11:14 +00:00
Jef Driesen
b99a32d643
Remove all remaining pieces of the legacy api from the Uwatec code.
2008-07-08 10:06:46 +00:00
Jef Driesen
080cbffe1f
Port the Uwatec Smart to the new api.
2008-07-08 10:03:51 +00:00
Jef Driesen
cf82a0a545
Port the Uwatec Memomouse to the new api.
2008-07-08 09:37:21 +00:00
Jef Driesen
644d84db7b
Port the Uwatec Aladin to the new api.
2008-07-08 09:32:45 +00:00
Jef Driesen
4ec390303e
Remove all remaining pieces of the legacy api from the Reefnet code.
2008-07-07 12:54:25 +00:00
Jef Driesen
f561e591b4
Port the Reefnet Sensus Ultra to the new api.
2008-07-07 12:51:29 +00:00
Jef Driesen
9548565220
Port the Reefnet Sensus Pro to the new api.
2008-07-07 12:48:47 +00:00
Jef Driesen
92bdb5dd1e
Remove all remaining pieces of the legacy api from the Suunto code.
2008-07-04 21:43:09 +00:00
Jef Driesen
630f32ff8e
Port the Suunto Eon to the new api.
2008-07-04 15:02:16 +00:00
Jef Driesen
d0823f6a9d
Port the Suunto Vyper2 to the new api.
2008-07-04 14:10:38 +00:00
Jef Driesen
8d3c7b29b8
Port the Suunto D9 to the new api.
2008-07-04 13:47:37 +00:00
Jef Driesen
a5fb93d199
Port the Suunto Vyper to the new api.
2008-07-04 13:35:57 +00:00
Jef Driesen
ea01b66dec
Added the first steps towards the implementation of the new api.
...
For this new api, each device will be implemented as a separate backend
for a common interface. This will make it easier to support multiple
devices in a single application.
2008-07-04 12:49:47 +00:00
Jef Driesen
3ec8bb025c
Added a constant for the size of the version data.
2008-07-04 06:37:25 +00:00
Jef Driesen
c938a89359
Write timestamps to the logfile.
2008-07-03 09:46:18 +00:00
Jef Driesen
0f625f601f
Defined a few macros for the ringbuffer code.
2008-07-03 05:26:47 +00:00
Jef Driesen
e4ab71db47
Added a more strict check on the ACK/NAK response.
2008-07-02 12:04:53 +00:00
Jef Driesen
cd20f8a02d
Split the transfer code in a handshake, version and read function.
2008-06-30 12:04:14 +00:00
Jef Driesen
03b186e88b
Treat the first byte of a packet as an ACK/NAK byte.
...
The first byte of a packet seems to be an ACK/NAK byte, rather than a
real packet header. The implementation of the transfer function is
changed to match this observation.
2008-06-30 09:22:05 +00:00
Jef Driesen
16f12123a3
Moved the handshaking to a new function and added the quit sequence.
2008-06-30 07:50:36 +00:00
Jef Driesen
734d0cede5
Added a function to read individual dives from the Oceanic Atom 2.
2008-06-24 12:28:44 +00:00
Jef Driesen
4b2a3918fd
Fixed some compiler warnings.
2008-06-20 13:43:19 +00:00
Jef Driesen
1a1807a4cc
Fixed a small error where two variables had the same name.
2008-06-20 13:22:33 +00:00
Jef Driesen
d629e02ca2
Moved all ringbuffer operations to a common location.
2008-06-20 13:20:29 +00:00
Jef Driesen
27ce6102ee
Updated the Suunto Vyper2 code to match the D9 code.
2008-06-20 12:54:34 +00:00
Jef Driesen
4142431b36
Always return an error code if the supplied memory buffer is too small.
2008-06-15 18:18:22 +00:00
Jef Driesen
330e6a07ad
Use a temporary buffer to download the data.
2008-06-15 14:10:28 +00:00
Jef Driesen
2d88237949
Simplified the exitcode macro.
2008-06-15 12:51:38 +00:00
Jef Driesen
6ce9a8e3b9
Added a 100ms delay before sending the handshake command.
2008-06-13 08:45:22 +00:00
Jef Driesen
35f6b4845e
Removed the feature test macros.
...
On Mac OS X they disable the definition of the timeval macros and on
Linux they are defined by default. Thus removing them makes everything
work on both platforms.
2008-06-12 08:19:59 +00:00
Jef Driesen
209aa53894
Added the initial implementation for the Oceanic Atom 2.
2008-06-11 15:23:12 +00:00
Jef Driesen
ab5a3ffa55
Added pkg-config support.
2008-06-05 08:44:35 +00:00
Jef Driesen
5b8410f98b
Start using autotools to build the project.
2008-06-04 13:56:41 +00:00
Jef Driesen
0312351bac
Reorganization to separate the library and the test applications.
2008-06-04 13:30:55 +00:00
Jef Driesen
df8f9e24f2
Made the discovery function static.
2008-06-04 13:18:57 +00:00
Jef Driesen
987b785de4
Make the public API return the size of the downloaded data.
...
And renamed a few variables to make the code more consistent with code
elsewhere in the library.
2008-05-23 20:36:31 +00:00
Jef Driesen
1d50bcf732
Added a public API function to set the oldest timestamp.
2008-05-23 20:31:21 +00:00
Jef Driesen
a540260f61
Added a function to read individual dives from the Reefnet Sensus Ultra.
2008-05-23 20:12:16 +00:00
Jef Driesen
e0151bacf4
Added a function to extract individual dives for the Suunto Vyper/Eon.
2008-05-21 10:53:22 +00:00
Jef Driesen
0c2444ae07
Use a dynamically allocated memory buffer.
...
Since the memory capacity of the device is unknown, a fixed size buffer
could cause problems. The public API now returns the size of the
downloaded data.
2008-05-20 09:57:14 +00:00
Jef Driesen
400143a0c4
Removed some unnecessary code.
2008-05-20 09:24:31 +00:00
Jef Driesen
857cd39c54
Simplified the error recovery by moving the code to a separate function.
2008-05-20 08:59:15 +00:00
Jef Driesen
9c30a72683
Added a public function to control the maximum number of retries.
2008-05-16 08:30:49 +00:00
Jef Driesen
21ecc37946
Separate reading and verification of the prompt byte.
2008-05-16 07:54:38 +00:00
Jef Driesen
d6f2e575d1
Moved the code to read pages and the error recovery into a new function.
2008-05-16 07:47:45 +00:00