divecomputer-core
Shared building blocks for dive computer protocols, part of divecomputer-rs.
It provides:
- every checksum and CRC used by dive computers, each named after its entry in the checksum catalogue
- SLIP framing
- the
Errortype shared by transports and protocols - the transport traits protocols are written against:
ByteStream,PacketLink,Clock RawDive, a downloaded dive with its fingerprint- the parsed dive model (
dive::Dive: header, gas mixes, tanks, samples, events) and the unit newtypes inunits(metres, °C, bar, gas percent)
| Feature | Effect |
|---|---|
serde |
serde::Serialize for the dive model; times as milliseconds, start as an ISO 8601 local date-time |
The crate is no_std, has no platform dependencies and runs natively, on embedded
targets and in WebAssembly.
use ;
assert_eq!;
assert_eq!;
Licensed under either of Apache License, Version 2.0 or MIT license at your option.